LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Hide disk partitions on Xfce desktop: 13.37 vs. 14.0 (http://www.linuxquestions.org/questions/slackware-14/hide-disk-partitions-on-xfce-desktop-13-37-vs-14-0-a-4175429625/)

kikinovak 09-29-2012 02:19 PM

Hide disk partitions on Xfce desktop: 13.37 vs. 14.0
 
Hi,

On Slackware 13.37, I could hide disk partitions showing on my Xfce desktop by creating /etc/udev/rules.d/hide-partitions.rules and editing it like this:

Code:

KERNEL=="sda5",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda6",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda7",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda8",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda9",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda10",ENV{UDISKS_PRESENTATION_HIDE}="1"

This worked as intended, but not on Slackware 14.0 anymore. Has the syntax changed?

Cheers,

Niki

sparkyhall 09-30-2012 08:43 AM

Adding an entry for each partition into fstab does the trick, I believe the mount point has to be somewhere other than /media for this to work. I have the following for the two partitions I don't want displayed:

Code:

/dev/sda6        /mnt/sda6        ext4        defaults,noauto  0  0
/dev/sda7        /mnt/sda7        ext4        defaults,noauto  0  0


kikinovak 10-07-2012 12:55 AM

Quote:

Originally Posted by sparkyhall (Post 4793159)
Adding an entry for each partition into fstab does the trick, I believe the mount point has to be somewhere other than /media for this to work. I have the following for the two partitions I don't want displayed:

Code:

/dev/sda6        /mnt/sda6        ext4        defaults,noauto  0  0
/dev/sda7        /mnt/sda7        ext4        defaults,noauto  0  0


Thanks very much! That did the trick.

titopoquito 10-07-2012 07:52 AM

Quote:

Originally Posted by kikinovak (Post 4792659)
Hi,

On Slackware 13.37, I could hide disk partitions showing on my Xfce desktop by creating /etc/udev/rules.d/hide-partitions.rules and editing it like this:

Code:

KERNEL=="sda5",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda6",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda7",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda8",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda9",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda10",ENV{UDISKS_PRESENTATION_HIDE}="1"

This worked as intended, but not on Slackware 14.0 anymore. Has the syntax changed?

Cheers,

Niki

I have set it up with udev rules using UDISKS_IGNORE instead without fstab entries and that is also working well.


All times are GMT -5. The time now is 08:12 AM.