I have encrypted luks partition. Key file is located on USB flash drive. I also created copy of that flash drive to another flash. How I can add two mount points in
/etc/fstab that points to same target directory. Booth flash drives to server not connected at same time. I just want to setup system that I can replace USB flash if it fails and system boots up correctly.
cryptolvm /dev/disk/by-uuid/a172345c-c0bd-1234-abcd-3febeeef9730 /media/sdb1/keyfile luks
/etc/fstab (USB part of)
#kingston 16GB UUID=622548b9-2223-4444-1234-5f61228bfa1c /media/sdb1 ext3 ro,nosuid,nodev,nofail,x-gvfs-show 0 0 # Adata 16GB UUID=7342c8a5-4321-1111-1234-34742b566af1 /media/sdb1 ext3 ro,nosuid,nodev,nofail,x-gvfs-show 0 0
At this moment when server boots it show errors:
1) systemd-fstab-generator: failed to create mount unit file /run/systemd/generator/media-sdb1.mount, as it already exists. Duplicate entry in /etc/fstab? 2) dependency failed for /media/sdb1