I am completely new to systemd though, and really struggling to set up some mount points. Here are some of the problematic entries in fstab:
Code: Select all
/dev/mapper/cryptdata-2tb /home/niowluka/Videos btrfs subvol=videos,defaults,noatime,noexec,user,comment=x-gvfs-hide 0 0
/dev/mapper/cryptdata-2tb /mnt/archive/music btrfs subvol=music,defaults,noatime,noexec,user,noauto,comment=x-gvfs-show,comment=x-gvfs-name=Archive\040Music 0 0
/dev/mapper/cryptdata-8tb /mnt/archive/videos ext4 defaults,noatime,noexec,user,noauto,comment=x-gvfs-show,comment=x-gvfs-name=Archive\040Video 0 0
UUID=68233986-c957-427a-af4e-e5208bf08e20 /mnt/debian/root btrfs subvolid=5,defaults,noatime,ssd,compress=lzouser,noauto,comment=x-gvfs-show,comment=x-gvfs-name=Debian\040Root 0 0
Line 2 doesn't mount at boot (noauto), shows up nicely in nautilus and thunar side pane (x-gvfs), but mounting from there fails with '... already mounted on ...' error. I tried adding x-systemd.automount, but that's just causing it to mount at boot, and also creating my own .automount unit (with After=local-fs.target to not mount at boot), but it fails to mount with the same error.
I can mount it with 'mount /mnt/archive/music' from CLI before I try to do it from the file manager, but if I do it after I get the same error in CLI (presumably because of generated .mount and .automount units). FAIL
Line 3 doesn't mount at boot (noauto), shows up nicely in nautilus and thunar side pane, and I can mount it from there, but it asks for password, even though user is specified. Another problem is that after unmounting it seems to close/remove the devmapper device ... Again, all works fine from CLI before I do anything in the file manager FAIL
Line 4 doesn't mount at boot (noauto), shows up nicely in nautilus and thunar side pane (x-gvfs), but mounting it fails with 'only permitted for root', i.e. why doesn't it ask for password ? FAIL
How can I set up those mount points to not mount at boot, but be easily mountable (right click - mount) from nautilus or thunar ?