Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev rule to hide partitions from thunar [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
graysky
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2006
Posts: 118
Location: above the flames and the ashes

PostPosted: Sun Sep 04, 2011 6:11 am    Post subject: udev rule to hide partitions from thunar [solved] Reply with quote

I found this thread and tried it, but I get no effect. In other words, these partitions are still in thunar and I can still interact with them.

Code:
# cat /etc/udev/rules.d/92-hide-partitions.rules
ACTION!="add|change", GOTO="hide_partitions_end"
SUBSYSTEM!="block", GOTO="hide_partitions_end"
KERNEL=="loop*|ram*", GOTO="hide_partitions_end"

KERNEL==”sda4“, ENV{UDISKS_PRESENTATION_HIDE}=”1″
KERNEL==”sda6“, ENV{UDISKS_PRESENTATION_HIDE}=”1″
KERNEL==”sda8“, ENV{UDISKS_PRESENTATION_HIDE}=”1″

LABEL="hide_partitions_end"


That link suggested refreshing udev via:
Code:
# udevadm trigger


Which promptly logged me out. Upon logging back in, I saw no change in the behavior. Thunar could still see the drive partitions.

EDIT: Problem was those invalid " characters in my original post which came from the link. It works now:

Code:
# 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"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum