[SOLVED] Don't show desktop icons for certain mounted volumes

Forum rules
Before you post please read how to get help
Post Reply
Level 2
Level 2
Posts: 70
Joined: Sat Dec 22, 2018 11:29 am
Location: UK

[SOLVED] Don't show desktop icons for certain mounted volumes

Post by iain_33 » Tue Apr 23, 2019 4:34 pm

On my system (Mint 19.1 MATE) I've got three partitions:

sda1 = /
sda2 = used for timeshift
sda4 = /data

On my desktop I've got icons for sda2 and sda4. Is there any way to hide the sda2 icon? It's no use to me, I've got no reason to go in there, but I can't find a way to hide it. I know there's an option in the desktop settings to not show icons for mounted volumes, but I still want the icon for sda4 and any other volumes that get mounted (USB sticks etc).

I've searched the forums, all I can find is viewtopic.php?t=193407 which involves putting "noauto" in fstab for that partition so it doesn't get mounted at boot, but that's no use since it needs to be mounted for timeshift, presumably if timeshift mounts it itself the icon would reappear.
Last edited by iain_33 on Fri May 24, 2019 2:24 pm, edited 1 time in total.
Linux Mint 19.1 MATE (64 bit) on a HP G70 laptop (circa 2008)
Intel Pentium Dual Core T3400 @ 2.16GHz -- 3GB RAM -- 1TB HDD
Intel Mobile 4 Series graphics -- Intel 82801I audio
Atheros AR242x/AR542x wireless network adapter

User avatar
Level 9
Level 9
Posts: 2624
Joined: Sat Jul 09, 2011 1:14 am
Location: The Hunter Valley, Australia

Re: Don't show desktop icons for certain mounted volumes

Post by kyphi » Tue Apr 23, 2019 6:31 pm

sudo mkdir /timeshift

Next, determine the UUID of the partition.

ls -l /dev/disk/by-uuid
Copy the UUID of /sda2

Edit the /etc/fstab file:

sudo nano /etc/fstab

Paste the UUID of /sda2 into fstab
UUID=xxxxxxxxxxxxxxxxxxxxx /timeshift ext4 defaults 0 0

Then save (Control+X), confirm (Y), and exit (Enter).

Since changes were made to the /etc/fstab file, these changes have to be acknowledged by the system:

sudo mount -a

Adjust ownership and permissions:

sudo chown -R iain_33:iain_33 /timeshift
sudo chmod -R 755 /timeshift

You may need to re-specify the destination in the Timeshift program.
You can do the same with your data partition.
Now the partitions will no longer appear on the desktop, they will be permanently mounted at boot and part of the File System.
Linux Mint 19.2 Cinnamon - 64bit

Post Reply

Return to “MATE”