You are not logged in.
Pages: 1
I have set up LVM over an encrypted partition, i have created a volume group with 3 logical volumes: root, swap, home. (i have followed this guide http://www.pindarsign.de/webblog/?p=767 )
My question is:
How can i use suspension mode with my encrypted swap partition? I have searched around, but wiki talk only about suspension over a separate swap volume, my situation is a bit different.
Last edited by Kenny94 (2011-01-09 12:41:09)
Offline
I add my fstab if can clearing my situation:
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/mapper/vgroup-home /home ext3 defaults 0 1
/dev/mapper/vgroup-root / ext3 defaults 0 1
/dev/mapper/vgroup-swap swap swap defaults 0 0
/dev/sda1 /boot ext2 defaults 0 1
Offline
By "suspension mode", do you mean suspend-to-RAM? Just suspend like you would ordinarily (e.g., with pm-suspend); there's nothing special that needs to be done due to dm-crypt or LVM. This is what I do on my laptop, which has a partition setup quite similar to yours. I don't use suspend-to-disk (i.e. hibernate) myself, so I don't know if there are other issues there, since that actually involves writing to the swap partition (unlike suspend-to-RAM), but my quasi-educated guess would be that you don't need to do anything special for that, either.
Offline
Sorry, i have used wrong word, suspension (to ram) doesn't need any particular configuration; instead i would to know how configure the hibernate mode (save to disk, to swap in this case).
P.S. i have edited title of thread
Last edited by Kenny94 (2011-01-06 17:14:21)
Offline
Just using resume=/dev/mapper/vgroup-swap should do for the hibernation part. For Resuming from hibernate you have to create a "hibernation-aware" initrd. There is a "resume" hook for the initrd. Just put this after the encrypt and lvm2 hooks in your mkinitcpio.conf and rebuild the initrd. After this it should work.
My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP
Offline
Just using resume=/dev/mapper/vgroup-swap should do for the hibernation part. For Resuming from hibernate you have to create a "hibernation-aware" initrd. There is a "resume" hook for the initrd. Just put this after the encrypt and lvm2 hooks in your mkinitcpio.conf and rebuild the initrd. After this it should work.
Thanks, you help me a lot
Offline
Pages: 1