You are not logged in.

#1 2012-04-23 15:34:15

quayasil
Member
Registered: 2008-11-09
Posts: 92

Hiding disks/partitions with udev stopped working!

I used to place a file `/etc/udev/rules.d/99-hide-partitions.rules' with the content:

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

which makes partitions other than sda3 invisible for my desktop users. After today's upgrade (gnome libraries) it stopped working. Any idea how to fix it or make it some other way?
Best regards,
/m

Offline

#2 2012-04-23 16:58:56

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Hiding disks/partitions with udev stopped working!

Try using UDISKS_IGNORE instead.


Burninate!

Offline

#3 2012-04-23 18:17:07

quayasil
Member
Registered: 2008-11-09
Posts: 92

Re: Hiding disks/partitions with udev stopped working!

Thanks! It works!

BTW: cause the `UDISKS_PRESENTATION_HIDE' is commonly used in numerous examples/howtos it worked till now and the use of this is quite common -- may I suggest some small announcement or sth like this for that change?

Offline

#4 2012-04-29 14:10:50

graysky
Member
From: The worse toilet in Scotland
Registered: 2008-12-01
Posts: 8,647
Website

Re: Hiding disks/partitions with udev stopped working!

Something happened recently that caused xfce4/openbox to ignore this udev rule that had been working for months.  The rule keep my desktop clean by not displaying icons for the corresponding drive partitions.  Now, I have 4 icons on my desktop which I cannot remove.  Advice is appreciated.

# 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"

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#5 2012-04-29 14:49:39

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 812

Re: Hiding disks/partitions with udev stopped working!

check this:
https://bugs.archlinux.org/task/29235
Last comment will give you the solution smile

Offline

#6 2012-04-29 15:21:59

graysky
Member
From: The worse toilet in Scotland
Registered: 2008-12-01
Posts: 8,647
Website

Re: Hiding disks/partitions with udev stopped working!

Thanks, solved it.  I requested a merge with https://bbs.archlinux.org/viewtopic.php?pid=1091530.

https://wiki.archlinux.org/index.php/Xf … _xfdesktop

# cat /etc/udev/rules.d/hide-partitions.rules 
KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda2", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda3", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda4", ENV{UDISKS_IGNORE}="1"

EDIT: updated to reflect proper syntax.

Last edited by graysky (2015-05-05 19:35:35)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Online

#7 2012-04-29 18:22:49

fsckd
Forum Moderator
Registered: 2009-06-15
Posts: 3,574

Re: Hiding disks/partitions with udev stopped working!

graysky wrote:

I requested a merge

Done
Original thread by graysky, "/etc/udev/rules.d/hide-partitions.rules - not honored"


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB