* Re: [gentoo-user] Suspend to swap on a diskless host
@ 2007-05-24 21:29 99% ` Dan Farrell
0 siblings, 0 replies; 1+ results
From: Dan Farrell @ 2007-05-24 21:29 UTC (permalink / raw
To: gentoo-user
On Wed, 23 May 2007 22:05:14 +0200
Hans-Werner Hilse <hilse@web.de> wrote:
> Hi,
>
> On Wed, 23 May 2007 11:59:23 -0500
> Dan Farrell <dan@spore.ath.cx> wrote:
>
> > I know swapon doesn't work on regular files, so to add my swap I
> > need to first use losetup to set up /dev/loop0 as my swap device.
> > Then swapon /dev/loop0 works. but how can I enable swap on loop0
> > before the initscripts boot (right now I have it done in
> > local.start). Don't I need to be able to mount the swap as swap
> > right away to resume from it? Or will it be enought to specify the
> > location? If not, is there some way to specify loop settings at
> > boot time, on the kernel command line?
>
> Check out userspace suspend (http://suspend.sf.net/). It's not in
> portage, but will do what you want since you can resume from an
> initrd. In the initrd, you can open a network connection, mount all
> that stuff (you never told where that looped file is located, so I
> guess it's on r/w NFS) and then resume. It's not implemented at the
> moment, I think, but should be easy to add ("remote suspending" is
> mentioned as an "easy" possibility).
>
> -hwh
Interesting and helpful, thanks.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-05-23 16:59 [gentoo-user] Suspend to swap on a diskless host Dan Farrell
2007-05-23 20:05 ` Hans-Werner Hilse
2007-05-24 21:29 99% ` Dan Farrell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox