Thanks, fccoelho!
Improved solution which asks your passphrase until sucessfull mount:

== 2.a) mount by device file: ==
DEVICE=/dev/sda6
while [ ! -e /dev/mapper/cryptohome ]; do
zenity --entry --hide-text --text="Enter your passphrase:" | cryptsetup 
luksOpen $DEVICE cryptohome
done
mount /dev/mapper/cryptohome /home

== 2.b) mount by UUID: ==
UUID=36f9e0ca-4da0-479d-be24-a45c7f7d106d
while [ ! -e /dev/mapper/cryptohome ]; do
zenity --entry --hide-text --text="Enter your passphrase:" | cryptsetup 
luksOpen `readlink -f /dev/disk/by-uuid/$UUID` cryptohome
done
mount /dev/mapper/cryptohome /home

-- 
passphrase for encrypted home partition not being read
https://bugs.launchpad.net/bugs/484272
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to