Article 6F7MD Slackware with LVM/LUKS and Auto mount VeraCrypt with Crypttab

Slackware with LVM/LUKS and Auto mount VeraCrypt with Crypttab

by
dPrints
from LinuxQuestions.org on (#6F7MD)
I can not seem to get crypttab to auto-mount a veracrypt volume at boot.

I was able to successfully install Slackware 15 with lvm/luks. I added a new 16tb hard drive to my server and wanted to create a VeraCrypt encrypted volume that would auto mount after boot. To explain what I have:
- bios boot partition found on /dev/sda1
- the EFI system is found on /dev/sda2
- luks password to decrypt /dev/sda3 (all this works like a charm) I have /dev/slackusr/swap and /dev/slackusr/root.

I added the 16tb drive and used gdisk to create /dev/sdb1 ( I used veracrypt to create a volume with a key file and no password.

My crypttab contains only:
Code:hd00 /dev/sdb1 /dev/null tcrypt-veracrypt,tcrypt-keyfile=/etc/keys/key1.binMy fstab has this added:
Code:/dev/mapper/hd00 /media/hd00 ext4 defaults 0 0Of course this is not working for me and it is taking more time to trouble shoot with little documentation found and the only way I know to test it is by rebooting my server. (I would love to know how to test this without reboot!)

I would really appreciate some help even if its a better more efficient way to achieve my goal.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments