Initscripts with and encrypted partition

Marc Schwartz MSchwartz at mn.rr.com
Wed Oct 11 02:25:43 UTC 2006


Louis Garcia wrote:
> I just made an encrypted partition with cryptsetup which creates
> a /dev/mapper/sda5 file. I formatted this ext3, this is for my /home
> partition. Well I close the partition and rebooted, Now the system wont
> boot, it hangs at Checking filesystems: It's looking
> for /dev/mapper/sda5 which is not present.
> 
> How can the system ignore this partition? I think it part of
> initscripts. Does it look at /etc/fstab?
> 
> /dev/mapper/sda5        /home       ext3   noauto     1 2
> 
> This is not present until cryptsetup luksOpen.
> 
> Any suggestions?
> 
> -Louis 


Two things:


1. You might want to review the 'luksopen' script at the dm-crypt wiki:

http://www.saout.de/tikiwiki/tiki-index.php?page=luksopen&comzone=show#comments


and this entry by John Maher, which is specific to FC5:

http://www.saout.de/tikiwiki/tiki-index.php?page=EncryptHomeDirUsingLUKS



2. Modify the entry in /etc/fstab to

   /dev/mapper/sda5        /home       ext3   noauto     0 0


Changing the '1 2' to '0 0' will disable the boot time checking.


There is also a dedicated dm-crypt/LUKS e-mail list. More info at:

http://news.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt

HTH,

Marc Schwartz




More information about the users mailing list