Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-08-14 11:45:21

graysky
Member
Registered: 2011-08-14
Posts: 26

[Solved] Thunar - only show mounted partitions

Currently, both the Thunar browser window and the desktop list all of my hdd partitions (most of which I do not want my users to be able to mount because they are other linux partitions).  If I click on one of them, they get mounted.  My goal is to make thunar's sidebar and the desktop only show mounted partitions.  How can I achieve this?

Offline

#2 2011-08-15 18:58:03

herd
Member
From: Germany
Registered: 2006-05-18
Posts: 143
Website

Re: [Solved] Thunar - only show mounted partitions

Sorry, you can't.
You can hide these only if you also disable the removable drives' display, too.

Offline

#3 2011-08-15 18:58:43

graysky
Member
Registered: 2011-08-14
Posts: 26

Re: [Solved] Thunar - only show mounted partitions

How can I go about hiding them?

Offline

#4 2011-08-15 19:53:58

Havoc
Member
Registered: 2011-02-20
Posts: 34

Re: [Solved] Thunar - only show mounted partitions

This was my reason to remove Thunar as well and use XFE. I think it is a serious issue but no-one seems to care.

Offline

#5 2011-09-04 05:52:52

graysky
Member
Registered: 2011-08-14
Posts: 26

Re: [Solved] Thunar - only show mounted partitions

EDIT: This does it!

# cat /etc/udev/rules.d/hide-partitions.rules 
KERNEL=="sda3",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda4",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda6",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda8",ENV{UDISKS_PRESENTATION_HIDE}="1"

Last edited by graysky (2011-09-10 22:56:34)

Offline

#6 2011-09-10 21:50:01

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

Re: [Solved] Thunar - only show mounted partitions

Back when I first changed from Gnome to XFCE, Fedora 14 provides XFCE 4.6, so that's what I used.   I had things set up so that unmounted partitions didn't show on the desktop and when I migrated from one DE to the other, nothing changed.  Now, I've upgraded my desktop to 4.8, and all of my unmounted partitions are on the desktop, forcing the icons I want there to the wrong positions.  If Thunar was able to do this in 4.6, it should also be able to in 4.8.


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

Offline

#7 2011-09-10 22:56:44

graysky
Member
Registered: 2011-08-14
Posts: 26

Re: [Solved] Thunar - only show mounted partitions

Edited my post above with the correct code.

Offline

#8 2011-09-11 00:21:40

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

Re: [Solved] Thunar - only show mounted partitions

I created the file, logged out and back in, but no change.  I do hope I don't need to reboot, as I don't like rebooting if I don't have to.  Here's the contents of the file:

[joe@khorlia ~]$  cat /etc/udev/rules.d/hide-partitions.rules
# Created on 9/10/11 to force XFCE 4.8 to hide all unmouned partitions
KERNEL=="sdb6",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb7",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb8",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb9",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb10",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb11",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb12",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sdb13",ENV{UDISKS_PRESENTATION_HIDE}="1"

And, before you ask, I checked with /etc/fstab to make sure I had the proper names for the partitions.


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

Offline

#9 2011-09-11 08:41:12

graysky
Member
Registered: 2011-08-14
Posts: 26

Re: [Solved] Thunar - only show mounted partitions

Try reloading the ruleset:

# udevadm control --reload-rules

Or try the trigger command:

# udevadm trigger

Offline

#10 2011-09-11 15:08:18

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

Re: [Solved] Thunar - only show mounted partitions

Thanx.  The first command didn't seem to have any effect so I tried the second.  All except one vanished, and that's one that I'd mounted at one point.  Will play around further when I've got time.  Still, there should be an easier way to make it do what it did in 4.6.

Edit:

I just checked, and found that the partition that still showed wasn't one of the ones I'd listed.  A quick edit and all's swell.

Last edited by Sideburns (2011-09-12 05:03:27)


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

Offline

#11 2011-09-15 12:32:52

the98
Member
Registered: 2009-11-10
Posts: 62

Re: [Solved] Thunar - only show mounted partitions

This thread is awesome!! I also had some partition laying around.

Offline

Board footer

Powered by FluxBB