Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-04-04 13:02:12

ineuw
Member
From: Québec, Canada
Registered: 2015-11-24
Posts: 98

Hiding unused drives in Thunar

I have a number of empty NTSF partitions which are not in use, and are omitted from fstab. Is it possible to hide them from the Thunar sidebar?


Linux Mint Cinnamon 21.3

Offline

#2 2016-04-04 15:28:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: Hiding unused drives in Thunar

Try using udev rules to hide these partitions from your DE.

Create the file /etc/udev/rules.d/99-hide-partition.rules with the following content:

KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
KERNEL=="sdb2", ENV{UDISKS_IGNORE}="1"

...change "sda1" and "sda2" to match the partitions that you want to hide. Add more lines if you need them.

Then re-load the udev rules:

sudo udevadm trigger

...and close and restart Thunar. If Thunar is running in daemon mode, you might need to restart that process as well (or log out and back in again).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-04-04 23:48:45

ineuw
Member
From: Québec, Canada
Registered: 2015-11-24
Posts: 98

Re: Hiding unused drives in Thunar

Thanks again ToZ.


Linux Mint Cinnamon 21.3

Offline

#4 2016-04-05 01:05:08

Sideburns
Member
From: Trinidad, CO
Registered: 2011-03-30
Posts: 467
Website

Re: Hiding unused drives in Thunar

Another way to do this is to add them to /etc/fstab, and include noauto in the options.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

Board footer

Powered by FluxBB