Skip to contentSkip to conversation

/etc/crypttab not needed?

dm-crypt Markus Melms 3 participants 4 messages Jan 20, 2012 – Jan 28, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

what is the advantage of using /etc/crypttab?

When I was using it, I got errors during shutdown: "stopping early crypto disks failed". This sounds sensible since the root-fs is encrypted.

Now that I'm not using it, disks still get mounted on startup and the error during shutdown is gone.

Is it ok to not use /etc/crypttab? I'd rather not use it, makes it easier for me to synchronise /etc between different clients.

Thanks
Markus

My configuration: Debian Squeeze, cryptsetup 1.1.3, Kernel 2.6.32. Im booting using an initrd.
/dev/mapper/root_crypt is mounted on /
/dev/sda2 is mounted on /boot

#1 lore raw
Quoted 2 lines · Markus Melms

Is it ok to not use /etc/crypttab? I'd rather not use it, makes it easier for me to synchronise /etc between different clients.

Afaict, it'll fail the next time you'll rebuild your initrd and reboot. crypttab is used at initrd creation time in order to properly mount the root fs.

Regards,

Signature · 1 line
Yves-Alexis
#3 lore raw
In reply to Markus Melms

Am 20.01.2012 16:18, schrieb Markus Melms:

Quoted 8 lines

Hi,

what is the advantage of using /etc/crypttab?

When I was using it, I got errors during shutdown: "stopping early crypto disks failed". This sounds sensible since the root-fs is encrypted.

Quoted 5 lines

Now that I'm not using it, disks still get mounted on startup and the error during shutdown is gone.

Is it ok to not use /etc/crypttab? I'd rather not use it, makes it easier for me to synchronise /etc between different clients.

crypttab is not a part or feature of cryptsetup. Ask the Debian people about it.