Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Please use this thread for discussion regarding
https://help.ubuntu.com/community/En...hEncryptedSwap
Support threads should be posted in normal forums.
Thank you.
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Thanks for the guide, I followed it including regenerating the initramfs, but when rebooting and entering the password on boot, it says
Quote:
"cryptsetup: unknown fstype, bad password or options?"
when entering the right password.
The following works with no problem after the system boots
Code:
/sbin/cryptsetup luksOpen /dev/sda7 cryptswap1
But the code in /usr/share/initramfs-tools/scripts/local-top/cryptroot goes inside the if block at #314
Code:
if [ -z "$FSTYPE" ] || [ "$FSTYPE" = "unknown" ]; then
message "cryptsetup: unknown fstype, bad password or options?"
udev_settle
$cryptremove
continue
fi
and shows the above message.
Apparently the script isn't recognizing the encrypted filesystem, but I have no idea why.
I am on ubuntu 12.04 (Linux aularon-laptop 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux).
If there's anything I can try to troubleshoot the problem/solve it? :confused:
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Great guide!
But I have a problem: after password query appears system continues to boot and there is no ability to enter the password.
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Quote:
Originally Posted by
zuker
Great guide!
But I have a problem: after password query appears system continues to boot and there is no ability to enter the password.
Please start a thread in the normal forums for your issue :)
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
after applying this steps I need to enter the pass-phrase each time the swap is being mounted or just first time?
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Hello,
how can I revert the use of a fixed passphrase to a random one?
I guess I shoud follow the instructions in the wiki and change something at the step
Code:
sudo cryptsetup luksFormat --cipher aes-cbc-essiv:sha256 --verify-passphrase --key-size 256 /dev/sdXN
?
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Quote:
Originally Posted by
stylishkoala
after applying this steps I need to enter the pass-phrase each time the swap is being mounted or just first time?
Quote:
Originally Posted by
JonasHagen
Hello,
how can I revert the use of a fixed passphrase to a random one?
I guess I shoud follow the instructions in the wiki and change something at the step
Code:
sudo cryptsetup luksFormat --cipher aes-cbc-essiv:sha256 --verify-passphrase --key-size 256 /dev/sdXN
?
This area is for discussing the relevant wiki page(s) and not for support. For that please post in the relevant subforum.
Regards
404
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Curiously, how much memory you have, and how big the swap space you have here?
Can I have 4GB memory DIM and with 2GB swap space to enable Hibernate?
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Thanks for the guide. It was very helpful. There was just one extra thing I had to add in order for the passphrase prompt to always show up during start-up. In /etc/default/grub I edited GRUB_CMDLINE_LINUX_DEFAULT to look like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cryptopts=target=cryptswap1,source=/dev/sda6 resume=swap:/dev/mapper/cryptswap1"
Re: Discussion - https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap
Quote:
Originally Posted by
thelinuxkidd
Thanks for the guide. It was very helpful. There was just one extra thing I had to add in order for the passphrase prompt to always show up during start-up. In /etc/default/grub I edited GRUB_CMDLINE_LINUX_DEFAULT to look like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cryptopts=target=cryptswap1,source=/dev/sda6 resume=swap:/dev/mapper/cryptswap1"
I should mention two other things:
1. I only got hibernate to work with tuxonice.
2. By adding the line in the quote to /etc/default/grub (and then rebuilding with upgrade-grub2) I didn't need to edit /usr/share/initramfs-tools/scripts/local-top/cryptroot as mentioned in the guide at the beginning of this thread.
Linux dist: Ubuntu 12.04
Linux kernel: 3.2.0-44-generic-tuxonice
System: Thinkpad T430s