Mount a LUKS partition at boot
        Posted  
        
            by 
                Adam Matan
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by Adam Matan
        
        
        
        Published on 2011-01-11T10:18:49Z
        Indexed on 
            2011/01/11
            10:59 UTC
        
        
        Read the original article
        Hit count: 349
        
Hi,
I have installed an Ubuntu machine with two encrypted LUKS partitions: one for / and one for /home.
I've reinstalled the machine to upgrade to 10.04. Again, the / is installed using LUKS, and I'm able to mount the /home using:
mkdir /media/home
sudo cryptsetup luksOpen /dev/sda2 home
sudo mount -t ext3 /dev/mapper/home /media/home
The problem is, this cryptfs mapper disappears after boot, so I putting the appropriate line in fstab fails.
How do I set the cryptfs to prompt for password and unlock the drive at boot?
Thanks,
Adam
© Ask Ubuntu or respective owner