I wanted to see this device listed in nemo’s sidepanel, but I couldn’t do it. The default location for this drive was /run/media/user/V. I’ve moved it to /srv/nfs/V and linked to the previous location but I don’t see it in the Devices list on nemo sidepanel, so I have difficulty accessing it, since I have to click File System -> srv -> nfs -> V every time I want to open it. How to show drive mounted in custom location on nemo sidepanel?
❯ sudo mkdir -p /srv/nfs/V
❯ sudo chmod ugo+rwx /srv/nfs/V
❯ sudo umount /run/media/user/V
❯ lsblk -no UUID /dev/sdd1
61aea4de-aa02-4f6d-b77d-dc0b09eac2ca
❯ sudo blkid
/dev/sdd1: LABEL="V" UUID="61aea4de-aa02-4f6d-b77d-dc0b09eac2ca" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="823000c4-e3eb-434a-a5f9-009571ecd1c8"
❯ sudo cat /etc/systemd/system/srv-nfs-V.mount
[Unit]
Description=My shared partition
[Mount]
What=/dev/disk/by-uuid/61aea4de-aa02-4f6d-b77d-dc0b09eac2ca
Where=/srv/nfs/V
Type=nfs
Options=defaults,rw,noatime
[Install]
WantedBy=multi-user.target
❯ sudo cat /etc/systemd/system/srv-nfs-V.automount
[Unit]
Description=Automount shared partition
ConditionPathExists=/srv/nfs/V
[Automount]
Where=/srv/nfs/V
TimeoutIdleSec=10
[Install]
WantedBy=multi-user.target
❯ sudo systemctl enable --now srv-nfs-V.automount
❯ ls -l /srv/nfs/V
ls: cannot open directory '/srv/nfs/V': No such device
❯ sudo rm /etc/systemd/system/*mount
❯ sudo cat /etc/fstab
UUID=61aea4de-aa02-4f6d-b77d-dc0b09eac2ca /srv/nfs/V ext4 defaults,noatime 0 0
❯ sudo mount -a
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
❯ sudo systemctl daemon-reload
❯ sudo mount -a
❯ ls -l /srv/nfs/V
total 24
❯ sudo ln -s /srv/nfs/V /run/media/user/V
OK I normally install Nemo to have easy access as root when I need it in a file manager and I typically don’t mess with it other than to access the file(s) I want. I just launched it and rightclicked Master Backup 2 in the side panel, create bookmark, then once the bookmark was created rightclicked that and renamed it test. Is that pretty much what you’re looking for?
Install Gnome-Disk it’s the easiest to move mounts without having to edit files.
Once installed
open nemo
copy the drive address aka location
launch disk
click on the drive there
unmount if mounted
click the gear icon under the drive
select edit mount options
toggle off user session defaults
check mount at startup
paste the copied address into the box that reads mount point replacing the text already there
click ok and enter your pass word if prompted
now click the arrow to the left of the gears icon to mount the drive, enter your password if asked
File managers usually automatically show partitions in their side pane when mounted to /media/*, /mnt/* or /run/media/*.
If you want to use another mount point and still have it show in the side pane, you need to add the x-gvfs-show mount option.