Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-01-21 11:20:00

frits43
Member
Registered: 2013-07-05
Posts: 4

hide unmounted partitions

Hi,

XFCE works great. However, I do have a wish. I have several hard drives in my system, with several unused/unmounted partitions. These partitions always show up on my desktop. I would like to hide these (but not the partitions of devices I plug-in). Can this be done?

Thanks

Last edited by frits43 (2014-01-21 16:49:37)

Offline

#2 2014-01-21 11:38:40

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,388

Re: hide unmounted partitions

If you're using UDEV, the following rule should help.

/etc/udev/rules.d/99-hide-disks.rules

KERNEL=="sda1", ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda2", ENV{UDISKS_PRESENTATION_HIDE}="1"

...or:

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

...depending on the version.

Reboot or run "sudo udevadm trigger" to get it to take effect.

NOTE: Change sda1 and sda2 to match the partitions that you want to hide. Add/remove lines as needed.

Last edited by ToZ (2014-01-21 11:40:15)

Offline

#3 2014-01-21 16:44:56

frits43
Member
Registered: 2013-07-05
Posts: 4

Re: hide unmounted partitions

The first ruleset did the trick. Thank you!

Offline

Board footer

Powered by FluxBB