1

I have a problem with following crypttab echo "secret /dev/sdb8 none" > /etc/crypttab

When I do it by hand, following way everything is ok, disk is mounted:

cryptsetup luksFormat /dev/sdb8
cryptsetup luksOpen /dev/sdb8 secret
ll /dev/mapper/
mkfs.ext4 /dev/mapper/secret
mount /dev/mapper/secret /secret/

umount /secret/
cryptsetup luksClose /dev/mapper/secret

With /etc/crypttab filled as below

echo "secret /dev/sdb8       none" > /etc/crypttab

centos 7 hungs at startup. How can I debug it ? What and where should I grep ?

bastiat
  • 197
  • 1
  • 8

1 Answers1

1

The problem is that you do not need the luksClose line unless you want to stop using luks

Jim
  • 26
  • 1
  • I trust You, cause I cannot verify now if this hint works (that system is already down and I don't play with cryptsetup any more) – bastiat Apr 27 '15 at 07:06