LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 09-27-2010, 03:40 AM   #1
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Rep: Reputation: 16
How can I suspend & hibernate with encrypted lvm?


Hello all,
I followed this guide ,most excellent, I might add, to setup encrypted lvm on my laptop. I am attempting to follow the new pm-utils guide dated August 2010 in order to enable suspend to ram and or hibernate on my laptop. My five questions are enumerated and as follows:

(1) Since I have two swap partitions, how will I know if either one is big enough? Does the encrypted lvm create a bigger swapspace requirement?

(2) I do not know the command to list the size of a vgroup although I have resized them. What is the command to list a vgroup's size?

(3) Does the PM-utils guide apply to encrypted lvm?

(4) Normally, at startup, the system ask for the password to unlock the /dev/mapper. Then the system boots into run level three and awaits a valid login user-name and password. Will the suspend to ram or swap (hibernate) create a situation where I've successfully suspended to ram or to swap, but I cannot boot out of suspend or hibernate due to the system prompting for a username when it should be prompting for the password to the /dev/mapper?

(5) On the kernel line, can I assume that the "resume=/dev/mapper/blah-blah/xxx" goes between the current roo=xxx and "ro vga=788"
Thanks in advance for any help

Last edited by yanfaun; 09-27-2010 at 03:43 AM.
 
Old 09-27-2010, 09:44 AM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
You should be able to suspend just fine, here's a decent article on hibernate http://wiki.archlinux.org/index.php/...o-disk_support (I've never tried it though... I have full disk encryption, but I've always just stuck to suspend.)
 
Old 09-28-2010, 02:49 AM   #3
yanfaun
Member
 
Registered: Nov 2009
Distribution: Arch Linux
Posts: 123

Original Poster
Rep: Reputation: 16
Thanks for the response!However, the link does not answer all of my questions.
My instincts were correct. One cannot just add suspend and then add hibernate parameters to the kernel line if one's disk is encrypted. From your link: "To be able to resume after suspending the computer to disk (hibernate), it is required to keep the swap filesystem intact. Therefore, it is required to have a presistent LUKS swap partition, which can be stored on the disk or input manually at startup. Because the resume takes place before the crypttab can be used, it is required to create a hook in mkinitcpio.conf to open the swap LUKS device before resuming."
>
More questions in addition to above:
>
(1) Apparently, I have to edit the kernel again, if I want to hibernate, true?

(2) What is the minimum size of the swap partition when enabling hibernate on luks encrypted lvm?

(3) Also, to enable suspend to ram as you have, did you edit your kernel (new hooks?)
(4) Dido for the kernel line of your grub menu, or the append or kernel line in limited I mean Lilo?

Last edited by yanfaun; 09-28-2010 at 08:32 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate&Suspend questions linus72 Linux - General 1 09-03-2010 12:12 PM
[SOLVED] Can't suspend or hibernate 0zMe Slackware 5 06-27-2010 02:43 PM
Thinkpad SL500 | Arch Linux | suspend &*hibernate problem XG0x0F Linux - Laptop and Netbook 1 08-07-2009 11:27 PM
Hibernate/Suspend issues on opensuse10.2 with swap on LVM tea of evil Suse/Novell 3 03-26-2007 12:14 PM
Arch LVM, suspend and hibernate on laptops preeth26 Arch 0 10-25-2006 06:14 PM


All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration