Hide Unmount Button in Nemo
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
- Level 1
- Posts: 27
- Joined: Fri Aug 19, 2022 6:08 am
Hide Unmount Button in Nemo
I am looking for a way to hide the unmount button in nemo for internal disks. Any ideas? I do automated back-ups and I don't want these drives to come unmounted accidentally (I've had it happen before, rsync wrote almost 800GB to my system drive accidentally). I can always manage these drives in terminal or the disk utility when I know I want to explicitly unmount them.
Last edited by LockBot on Wed Mar 22, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Hide Unmount Button in Nemo
I don't think, that this is possible except by rewriting the source code.
But you can create mount points in /etc/fstab for every drive and add the option
But you can create mount points in /etc/fstab for every drive and add the option
nouser
for them. With this only root can unmount the drive.Re: Hide Unmount Button in Nemo
Are you mounting them in
/media
?Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
-
- Level 1
- Posts: 27
- Joined: Fri Aug 19, 2022 6:08 am
Re: Hide Unmount Button in Nemo
No, all my drives are on
/mnt
. I did see a post on superuser.com that moving from /media
to /mnt
on GNOME/Nautilus fixed it there (https://superuser.com/questions/973770/ ... -in-ubuntu), but doesn't seem to matter with Nemo.Re: Hide Unmount Button in Nemo
I'm just recording that the unmount buttons are these:
Re: Hide Unmount Button in Nemo
I suppose these buttons will not show if the volume is mounted via fstab in a way that only root can unmount.
-
- Level 1
- Posts: 27
- Joined: Fri Aug 19, 2022 6:08 am
Re: Hide Unmount Button in Nemo
Nope. Everything is mounted at
/mnt
and everything is mounted as root at start-up.Here's a portion of my fstab:
Code: Select all
/dev/mapper/vgmint-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/nvme1n1p2 during installation
UUID=********** /boot ext4 defaults 0 2
# /boot/efi was on /dev/nvme1n1p1 during installation
UUID=********** /boot/efi vfat umask=0077 0 1
/dev/mapper/vgmint-swap_1 none swap sw 0 0
/dev/disk/by-uuid/************* /mnt/Files auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/************* /mnt/Game\040Storage auto nosuid,nodev,nofail,x-gvfs-show 0 0
Re: Hide Unmount Button in Nemo
Even if the buttons are there, it does not mean you can unmount.
Instead remove the "x-gvfs-show" options from fstab and create a bookmark to these volumes instead. Volumes are then reached equally easily, and no buttons will be shown.
Instead remove the "x-gvfs-show" options from fstab and create a bookmark to these volumes instead. Volumes are then reached equally easily, and no buttons will be shown.
-
- Level 1
- Posts: 27
- Joined: Fri Aug 19, 2022 6:08 am
Re: Hide Unmount Button in Nemo
Nevermind then, I'll just consider this to a bug with cinnamon/nemo and live it.
Re: Hide Unmount Button in Nemo
It is your choice. Bookmarks are simple, though. Go to where the drive is mounted and hit Ctrl+D to create a bookmark in the left pane.AidenJames1995 wrote: ⤴Mon Sep 26, 2022 12:10 pmNevermind then, I'll just consider this to a bug with cinnamon/nemo and live it.
-
- Level 1
- Posts: 27
- Joined: Fri Aug 19, 2022 6:08 am
Re: Hide Unmount Button in Nemo
I'm aware of how to make them, just don't have the time screw around with it for 6 different drives. I actually use my system for productivity, not to screw around trying to fix things that shouldn't even be a problem to begin with.vanadium wrote: ⤴Tue Sep 27, 2022 7:18 amIt is your choice. Bookmarks are simple, though. Go to where the drive is mounted and hit Ctrl+D to create a bookmark in the left pane.AidenJames1995 wrote: ⤴Mon Sep 26, 2022 12:10 pmNevermind then, I'll just consider this to a bug with cinnamon/nemo and live it.
Re: Hide Unmount Button in Nemo
Six seconds for six drives. But again, it is entirely your call. Bookmarks are specifically made for what you want to achieve. Sometimes, the problem is with the user, not with the software.AidenJames1995 wrote: ⤴Tue Sep 27, 2022 1:47 pm I'm aware of how to make them, just don't have the time screw around with it for 6 different drives. I actually use my system for productivity, not to screw around trying to fix things that shouldn't even be a problem to begin with.
Re: Hide Unmount Button in Nemo
If I may chime in for a moment, I'm running into the same issue as OP and, when using Mint's included "Disks" program, going into the mount options for a given partition, and unchecking "Show in user interface" (which removes the aforementioned
x-gvfs-show
) and then rebooting, the internal drive/partition is still listed.This is particularly troublesome for me because I made a separate partition and mount point for /home/<user>/Documents on the primary internal drive, you know, the same physical disk that holds the root directory (aka
/
) and yet Mint seems to think that my Documents partition is its own hot-swappable SATA drive which, I assure you, it is not!Nevertheless, Mint does seem to actually allow me to unmount the Documents partition, though it does ask me for the root password first. Therefore this is still something I would like to similarly solve but, considering what I said above, it's looking like this may in fact be a bug.
EDIT: Also this occurs regardless of whether it's a desktop or laptop, though both systems I tested on lack the BIOS options to configure SATA hot-swapping like I know exists on some motherboards - the only SATA option was the usual configuring SATA as IDE, RAID, or AHCI (I say "usual" but there are some OEM desktops and/or OEM laptops that lack the AHCI setting annoyingly enough even on chipsets that definitely support AHCI, meaning it's basically ewaste in our current SSD world due to AHCI being a requirement for trim)
Last edited by NM64 on Mon Oct 03, 2022 11:41 pm, edited 7 times in total.
Re: Hide Unmount Button in Nemo
NM64...please create your own thread. given your comment about " this is on a laptop"
That alone tells me you have a different computer than the OP.
All good vibes meant, but the mods will tell you the same thing in that " no thread hijacking" is allowed. The main reason being is that your troubleshooting-to finding the final resolution= steps could end up being different.
Otherwise.it will be two different conversations within the same forum topic and would create much confusion.
Read the " how forum rules for more details " ( which no one does apparently -_- )
That alone tells me you have a different computer than the OP.
All good vibes meant, but the mods will tell you the same thing in that " no thread hijacking" is allowed. The main reason being is that your troubleshooting-to finding the final resolution= steps could end up being different.
Otherwise.it will be two different conversations within the same forum topic and would create much confusion.
Read the " how forum rules for more details " ( which no one does apparently -_- )
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
Re: Hide Unmount Button in Nemo
Good news then - it happens on desktop too! This was easy enough to test by simply removing the 2.5" SATA drive from the laptop, plugging it into a desktop motherboard's internal SATA port (and power), booting from the drive and then observing that, yes, the behavior is 100% identical.
(protip: don't do this "swapping the same drive between different PC hardware" if Nvidia GPUs are involved; also you may need to install GRUB if the OS was installed via UEFI)
Also the motherboard in question didn't have any options to configure the hot-swapping of its internal SATA ports despite this very much being a DIY motherboard that even supports the "core unlocking" that was possible on some K10 CPUs (such as my own Phenom II x2 which unlocks to a quad core without issue, yes even after lengthy and rigorous stability testing - I'm talking 24+ hours of OCCT's "large data set" with the CPU running within 5c of tjmax).
The only SATA option on both systems was the usual configuring SATA as IDE, RAID, or AHCI (I say "usual" but there are some OEM desktops and/or OEM laptops that lack the AHCI setting annoyingly enough even on chipsets that definitely support AHCI, meaning it's basically ewaste in our current SSD world due to AHCI being a requirement for trim).
(protip: don't do this "swapping the same drive between different PC hardware" if Nvidia GPUs are involved; also you may need to install GRUB if the OS was installed via UEFI)
Also the motherboard in question didn't have any options to configure the hot-swapping of its internal SATA ports despite this very much being a DIY motherboard that even supports the "core unlocking" that was possible on some K10 CPUs (such as my own Phenom II x2 which unlocks to a quad core without issue, yes even after lengthy and rigorous stability testing - I'm talking 24+ hours of OCCT's "large data set" with the CPU running within 5c of tjmax).
The only SATA option on both systems was the usual configuring SATA as IDE, RAID, or AHCI (I say "usual" but there are some OEM desktops and/or OEM laptops that lack the AHCI setting annoyingly enough even on chipsets that definitely support AHCI, meaning it's basically ewaste in our current SSD world due to AHCI being a requirement for trim).
Re: Hide Unmount Button in Nemo
The general behavior is that, by default, volumes mounted under /media or somewhere under your home directory are shown. To override that default behavior, you can addNM64 wrote: ⤴Mon Oct 03, 2022 10:02 pm If I may chime in for a moment, I'm running into the same issue as OP and, when using Mint's included "Disks" program, going into the mount options for a given partition, and unchecking "Show in user interface" (which removes the aforementionedx-gvfs-show
) and then rebooting, the internal drive/partition is still listed.
x-gvfs-hide
.Re: Hide Unmount Button in Nemo
Well that was easy enough - it "just works"! I wonder if this would solve OP's issue as well?
Are you fine with the disk itself being unlisted in Nemo's left-side bar as well as the "safely eject removable disks" panel icon menu thing?AidenJames1995 wrote: ⤴Thu Sep 22, 2022 5:43 amI am looking for a way to hide the unmount button in nemo for internal disks. Any ideas?
If so, then the simple solution configured right through the GUI (no terminal or editing of config files needed!) is to just use the GUI-based "Disks" program that comes pre-installed with Mint and takes all of like a minute to do (it probably takes more time to just read my extremely broken-out instructions).
In "Disks":
- click on your desired disk
- click on the corresponding partition
- click the gear icon located below the disk's partition layout
- click "Edit Mount Options..."
- uncheck "Use Session Defaults"
- Plan A: uncheck "Show in user interface"
- click OK and then check and see if your desired partition is now unlisted in Nemo or the like; if it is not, then continue to the next step:
- Plan B: repeat the steps above but skip step 7 (as in, do not press the "OK" button), then add
x-gvfs-hide
to the first-listed text box (it should be located directly below "Symbolic icon name") - now click OK and then check and make sure that your desired partition is now unlisted in Nemo or the like
Re: Hide Unmount Button in Nemo
That will probably not satisfy OP. OP does want buttons, however does not want to see the "eject" arrows on these buttons. The drives of OP are mounted under /mnt, so they are not shown by default. Here, they were made to show using the x-gvfs-show option.
I already proposed what you indicate, and advised to use bookmarks instead. These are functionally the same as the buttons, however without the eject buttons.
I already proposed what you indicate, and advised to use bookmarks instead. These are functionally the same as the buttons, however without the eject buttons.
Re: Hide Unmount Button in Nemo
I just realized that I'm actually doing just this for a network-attached disk that I just recently set up all of a couple of days ago. However, it seems that, as soon as I access the disk, it shows up like a USB disk with the whole "safely eject" icon and everything which is not something I desire.
Problem is, network drives don't appear in the "Disks" program, so I can't add
x-gvfs-hide
- what do?