You are not logged in.
Pages: 1
I have a luks encrypted external drive for backups. I have added a keyfile to one of the slots. The file is:
/crypto_keyfile.binThe name of the luks container will be ext1
I don't want the device automatically unlocked or mounted at boot since it isn't always connected. I want my scripted backups to unlock/mount/run_script/unmount/lock.
I have this in my crypttab (I use UUIDs in the actual file)
ext1 /dev/sdX /crypto_keyfile.bin noautofstab has an entry for /dev/mapper/ext1 with a mountpoint of /ext1 and "noauto" set in options.
I've tried doing
mount /ext1thinking crypttab would be read and the drive unlocked and mounted, but this isn't the case.
What is my setup missing?
Offline
make sure the UUID your using in crypttab is for the luks container and not the partition inside, here is an example:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1 crypto_LUKS 2 <UUID for luks containerr>
└─storage ext4 1.0 storage <UUID for ext4 partition> 69G 69% /path/to/mountjust a stab in the dark
Offline
Try
noauto,x-systemd.automount,x-systemd.mount-timeout=30in fstab.
Offline
Pages: 1