mount crypted partition

Patrick Dupre pd520 at york.ac.uk
Sun Nov 14 17:48:26 UTC 2010


On Sun, 14 Nov 2010, Bruno Wolff III wrote:

> On Sun, Nov 14, 2010 at 16:37:04 +0000,
>  Patrick Dupre <pd520 at york.ac.uk> wrote:
>> Hello,
>>
>> I created a crypted partition and I wish to mount it during the boot.
>> I set it in the /etc/fstab
>> but I probably to load the appropriate module at the log time,
>> like dm-mod or dm-crypt ?
>> Where can I get them ?
>> How can I load them before /etc/fstab ?
>> Where can I find some doc ?
>
> You should explain more about how you created an encrypted partition.
Yes I am using luks,
I encriptyed the partition

When the machine in booted without trying to mount the encrypted 
partition,
I just make a luksOpen, and then I can mount it.
During the install, I did not require any encryption.

I set the /etc/crypttab
home-crypt	UUID=5fcf268d-4729-4c70-949d-36e979241422 	none

I do not get any complain from this.

but with:

/dev/mapper/home-crypt         /mnt/tmp                ext4 
defaults,noatime        1 2

in /etc/fstab, I cannot boot.

I got the UUID from:
blkid /dev/mapper/home-crypt


> The normal way to do this is to select to encrypt when doing an install.
> luks is used to do the encryption and prompting for a password is
> integrated with the boot process.
>

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |  Phone: (44)-(0)-1904-434384
  The University of York             |   |  Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |  email: patrick.dupre at york.ac.uk
==========================================================================


More information about the users mailing list