suspend-to-disk with suspend2 and swap on LVM - Works!

Dick Davies rasputnik at gmail.com
Tue Aug 15 18:54:59 UTC 2006


Thanks Alexander - I was one of the people trying to get
suspend (hibernate, actually) to lvm swap working.

Tried what you suggested but it still didn't work.
Some questions:

Are you on Dapper?
Are you hibernating or suspending?
Doesn't 'kopt=....' do nothing (until you run update-grub at least)?
What package provides /etc/hibernate/suspend2.conf

The reason I'm asking is if I'd done the below,
I'd still be suspending to /dev/hda6 - since it still exists (and I'm
assuming the kopt line is a null-op).

On 15/08/06, Alexander Skwar <listen at alexander.skwar.name> wrote:
> Hi!
>
> I can't find the correct thread anymore, but somebody wanted to
> know, if it's possible to do suspend-to-disk with suspend2
> and have it use a swap "partition" which is on LVM.
>
> I just tested, and this works. To get it to work, I didn't have
> to do anything special.
>
> In /boot/grub/menu.lst, I added to the
>
> # kopt=...
>
> line:
>
>         resume2=swap:/dev/sys/Swap
>
> The line reads:
>
> # kopt=root=/dev/mapper/sys-URoot ro resume=/dev/hda6 resume2=swap:/dev/sys/Swap
>
> In /etc/fstab, I added:
>
> /dev/sys/Swap       none            swap            sw                      0 0
>
> In /etc/hibernate/suspend2.conf I set:
>
> SuspendDevice swap:/dev/sys/Swap
>
> In all those places where there is now /dev/sys/Swap, I used to have
> /dev/hda6. So, I didn't have to do anything special at all.

-- 
Rasputin :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/




More information about the ubuntu-users mailing list