I have bind mounts configured in my /etc/fstab. The source (i.e. where the files physically exist) is on a removable USB drive.
Right now it works but I have to mount/unmount everything individually when I plug/unplug the drive. I would like to be able to have the bind mounts follow the state of of the USB drive automatically.
Is there a way?
Edit here is relevant section of fstab:
/dev/mapper/external-crypt /mount/external auto nosuid,nodev,nofail,x-systemd.device-timeout=5 0 0
/mount/external/realfolder /home/user/folder none bind,nofail 0 0
So when I run sudo mount "/mount/external" I want sudo mount /home/user/folder to be implied; likewise for umount.