You are not logged in.
Pages: 1
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
Sorry, you can't.
You can hide these only if you also disable the removable drives' display, too.
Offline
How can I go about hiding them?
Offline
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
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
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
Edited my post above with the correct code.
Offline
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
Try reloading the ruleset:
# udevadm control --reload-rules
Or try the trigger command:
# udevadm trigger
Offline
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
This thread is awesome!! I also had some partition laying around.
Offline
Pages: 1
[ Generated in 0.014 seconds, 12 queries executed - Memory usage: 554.34 KiB (Peak: 571.25 KiB) ]