[Bug 235679] Re: Asks for same password twice
Hi, you can create a so called "key derrivation". An opened hard disk will be the key for the next one (which has two keys from then on, your passphrase and the key derrived from the first hard disk). A good article can be found here: http://wiki.ubuntuusers.de/LUKS/Schl%C3%BCsselableitung Here's a summary from [2] what to do: ## --- Start here -- ## # become root $ sudo -s # create ram device to store the derrived key from the first hdd. # first_device is the first device you enter your password for. # taget_device is any device (but NOT swap!). # just repeat for each target device. $ mkdir /mnt/ram && mount -t ramfs -o size=1m ramfs /mnt/ram && chmod 600 /mnt/ram $ /lib/cryptsetup/scripts/decrypt_derived > /mnt/ram/tmp.key && cryptsetup luksAddKey /mnt/ram/tmp.key && rm /mnt/ram/tmp.key $ umount /mnt/ram && rmdir /mnt/ram # then tell luks to use the derrived key $ vim /etc/crypttab # and enter this line, without thte quotation marks # for the second, third etc. device only! not for the first one or swap! # mapping-name target-device device_the_key_is_derrived_from keyscript_and_extra_options " UUID= luks,keyscript=/lib/cryptsetup/scripts/decrypt_derived" # for swap write " UUID= /dev/urandom luks,swap" # then do $ update-initramfs -u -k all ## --- finished -- ## For your swap device, please use /dev/urandom as key file (3rd parameter). This way you will always encrypt the swap file differently, which is a encryption plus. Also add "swap" to the options (4th parameter). [1] Now you did the following: 1.) For devices with same password you are only asked once for the password 2.) For your swap partition, you use a random key for extra security Solved for me. Please tell me if it works for you, too. References: [1] http://linux.die.net/man/5/crypttab [2] http://wiki.ubuntuusers.de/LUKS -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
I confirm under Lucid on amd64. I noticed the first character isn't captured, hence why you have to enter it twice. -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
Let's just skip the geekspeak. Unbuntu 8.04 simply will not boot passwords. I have uninstalled and reinstalled. I have no more time to waste on this. It does not matter if terminal or normal login mode is used, UBUNTU 8.04 simply does not allow log-ins. This is Betaware, or maybe even Malware. 7.10 never had these problems. 8.04 is garbageware. -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
okay, this looks like a genuie bug to me then. Confirming for now, but I didn't look in the actual code yet. Thanks for reporting! ** Changed in: cryptsetup (Ubuntu) Importance: Undecided => Low Status: Incomplete => Confirmed -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
OK, i'll explain as simple as I know how, since you seem to have trouble reading my comments... I have to linux partitions on my laptop: /dev/sda5, this is an encrypted volume and it is eventually mounted as swap space. /dev/sda6, this is an encrypted volume and eventually maps to / Each encrypted volume is given a different passphrase. (Why would i use the same password twice if something like LVM exists?) The root filesystem (/dev/sda6) is obviously luksopen'ed and mounted first. Then it switches back to a console, does stuff and says something along the lines of: [...] * Starting remaining crypto-disks..." Enter LUKS passphrase: key slot 0 unlocked. command successful. * /dev/mapper/sda5_crypt contains data, but still a valid filesystem [[ the actual message is lengthier, but it boils down to this ]] * Staring remaining crypto-disks..." Enter LUKS passphrase: key slot 0 unlocked command successful. * /dev/mapper/sda5_crypt contains data, but still a valid filesystem [...] -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
boot logging is broken AFAIUI, for details see bug #98955. do you have the same or different passwords for root and your swap partition? If they are the same, I'd say this is a duplicate report of bug #139057. ** Changed in: cryptsetup (Ubuntu) Assignee: Reinhard Tartler (siretart) => (unassigned) -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
No, I only have 2 filesystems (shame on me, i know) A root filesystem (/dev/sda6) and a swap filesystem (/dev/sda5). As laid out, the root filesystem is luksopen'ed from usplash (asking the password only once) and then it asks me the password for the swap partition twice (And yes I did fill in the correct password in both occasions. Eg: If i wanted to i could make cryptsetup ask me the password for the swap filesystem up to 6 times) Now could you please tell me how to turn boot logging on so that I can post the messages that cryptsetup gives me here. Thanks. -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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
[Bug 235679] Re: Asks for same password twice
So do you have 2 diferent filesystems encrypted with the same password? If yes, why don't you use encrypted LVM instead? ** Changed in: cryptsetup (Ubuntu) Assignee: (unassigned) => Reinhard Tartler (siretart) Status: New => Incomplete -- Asks for same password twice https://bugs.launchpad.net/bugs/235679 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