You are not logged in.
Pages: 1
Hi, i use archlinux on may laptop with a encrypted /home partition.
I only reboot it for kernel, graphics driver, or other system update and use hibernate (via uswsusp and hibernate-script) in every other case.
The /home partition is still opened when i resume, but thats what i want to change.
What is the easiest or smartest way to run luksSuspend on hibernate and luksResume on resume?
Should I use a initrd hook or hibernate-script in some way?
How comes I can't find anything about this in the wiki, the forums or with my favourite search engine?
Did i get something wrong and this isn't a problem or do most people simply shut down their laptop?
i'm sorry for my poor english wirting skills…
Offline
You can encrypt the swap partition with a passphrase and open it with the encrypt hook in the initrd.
In the wiki is discussed in System_Encryption_with_LUKS#With_suspend-to-disk_support
Offline
But that would decrease performance/increase hibernate time if a use a strong encryption algorithm or decrease security if I go with fast but less safe encryption.
Any other idea?
This wiki article was the reason i thought about the initd. Is it possible to apply the same method to other partitions, like /home?
Last edited by andy123 (2012-05-13 13:04:19)
i'm sorry for my poor english wirting skills…
Offline
If you're not encrypting your swap then you're vulnerable as it will contain parts of (or maybe all of some) files from the encrypted partition, so even if you manage to unmount your encrypted partitions during suspend you'd still be leaving yourself somewhat open as any unencrypted copies of files that were in ram will be (unencrypted) on disk.
Obviously you need to make a trade-off between security and convenience depending on who or what you're protecting against.
Personally, my laptop has encrypted root, home and swap which allows a reasonably secure hibernate. I then frequently negate most of that security by using suspend to ram since the only threat I'm concerned about is the laptop being stolen and someone running some kind of info harvester against the hard drive. As your average laptop thief isn't going to have a handy bottle of liquid nitrogen and other specialised hardware to perform a cold boot attack I'm not that worried about the data in RAM but I am careful about anything (like swap) which might survive a power off.
Offline
But that would decrease performance/increase hibernate time if a use a strong encryption algorithm or decrease security if I go with fast but less safe encryption.
Did you actually test how much slower it is on your machine?
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
no… but i will test it soon an post my results…
I tested hibernate with firefox, eclipse and libreoffice running. It took approximately 42 seconds from executing "hibernate" to poweroff.
I will measure resuming tomorrow.
PS: I formatted the swap-partition with "cryptsetup luksFormat" and no other parameters, the ones given in wiki didn't work for me.
If there are a lot of spelling mistakes i'm sorry but I worte this with my geeksphone ![]()
Last edited by andy123 (2012-05-13 21:44:45)
i'm sorry for my poor english wirting skills…
Offline
Pages: 1