I just installed Ubuntu 12.04 on my notebook having kept an old luks encrypted partition on my drive. This partition shows up in the file manager an can be mounted from there into /media/[UUID]. Now I would like to mount this partition during system boot. For that I added

/dev/mapper/cryptohome /home xfs errors=remount-ro 0 2

to my /etc/fstab and

cryptohome UUID=[...] none luks

to my /etc/crypttab

During boot I am asked for the luks password upon which the /dev/mapper/cryptohome is ready.

While I enter the password the mount command seems to be executed concurrently. This leads to a failed mount. I am able to mount /dev/mapper/cryptohome manually shortly after the automatic mount failes.

How can I make mount aware that it needs to wait until the luks password is entered successfully?

Thanks, Philipp

  • Are you using LVM on top of the dm-crypt device? – gertvdijk Jan 8 '13 at 19:34

I would recommend you to use a app called “Storage Device Manager”. It automatically mounts the device at boot without any hassle for me. maybe that can work for you. Full article about it can be read here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.