I used to have have a bind mount which worked via /etc/fstab across a variety of different distros:
Code:
/var/tc/music /home/tc/Music none defaults,bind 0 0
After moving to Linux Mint 21.1, the above setting no longer properly bind mounts the directory. Instead it seems to do something wrong with it:
Code:
$ mount | grep Music
/dev/nvme1n1p2 on /home/tc/Music type ext4 (rw,relatime,stripe=32)
If I remove the fstab entry, I can manually bind mount the directory just fine.
Code:
mount --bind /var/tc/music /home/tc/Music
I even tried cargo culting the following undocumented settings into fstab and rebooted, and no improvement:
Code:
/var/tc/music /home/tc/Music auto bind,x-gvfs-hide,x-systemd.requires=/var 0 1
and
Code:
/var/tc/music /home/tc/Music auto bind,x-gvfs-hide,x-systemd.requires=/home 0 1
Those just cause the booting to fail by causing / to mount read-only.
One thing different is that the /home is in an OpenZFS mirror
Code:
$ mount | grep home
home on /home type zfs (rw,xattr,noacl)
$ zpool status
pool: home
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
home ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
nvme0n1p4 ONLINE 0 0 0
nvme1n1p4 ONLINE 0 0 0
I think the work-around is just to use symlinks instead of bind mounts but I would really like to figure out what the right way to bind mount in fstab is in Linux Mint 21.1