bind mount overlays main mount of logical volume/partition
gnome-disk-utility 3.36.3 UDisks 2.8.4 (built against 2.8.4) on UBUNTU Desktop 20.04 LTS
i once configured multiple drives/lvm volumes so they will automount on system boot to ...
- /
- /raid1/
- /ssd/
- /backups/
... using gnome disks only.
Every physical and logical volume has been properly shown within gnome disks, until i added a "bind mount" for my /home/ to my /etc/fstab today. That is, i have my /home/ reside on a "data volume" ( /raid1/ , NOT on the ROOT FS itself). To achieve that without a symlink (/home) i switched using "bind mount" instead. (see man mount for --bind).
see my /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=xxxxxxxxxxx / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=xxxxxx /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
/dev/disk/by-label/3TB-backups /backups auto nosuid,nodev,nofail 0 0
/dev/disk/by-label/RAID1-1TB /raid1 auto nosuid,nodev,nofail 0 0
/dev/disk/by-label/SSD /ssd auto nosuid,nodev,nofail,lazytime 0 0
# bind mount /home dir
/raid1/home /home none bind
This works well. "mount" shows everything like this:
sudo mount -t ext4,xfs
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/mapper/vg_ssdtmp-lvol0 on /ssd type ext4 (rw,nosuid,nodev,relatime,lazytime)
/dev/mapper/VG--RAID1-lvol0 on /raid1 type ext4 (rw,nosuid,nodev,relatime)
/dev/mapper/VG--RAID1-lvol0 on /home type ext4 (rw,nosuid,nodev,relatime)
/dev/sde1 on /backups type xfs (rw,nosuid,nodev,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota)
So even i am unable to see here that /home/ is just a "bind mount", at least it shows up separate.
gnome disks on the other hand ONLY knows the "bind mount" to me as a drive/volume. unable to tell that the LV is primarily mounted at /raid1/ and that /home/ is just a "bind mount". For that LV used ONLY ONE ENTRY is shown within gnome disks.
I would expect gnome disks to show the "main mount" as usual + show the "bind mount" somehow as well, but NOT COMBINED into one entry.
regards Axel