udev rules: hide arrays and array members from nautilus

Hello All,

In the not so distant past, I was able to hide arrays/encrypted arrays from nautilus with udev rules as follows:

Code:

HIDE Encrypted “dm” partitions from nautilus

SUBSYSTEM==“block”, KERNEL==“dm-*”, ENV{ID_FS_USAGE}==“crypto”, ENV{DKD_PRESENTATION_HIDE}=“1”

NOTE: not needed by Fedora

HIDE all other local disks as they are controlled by md-raid or adaptec

controller … they are all array members

SUBSYSTEM==“block”, KERNEL==“sd*”, ENV{ID_BUS}==“ata”, ENV{DKD_PRESENTATION_HIDE}=“1”

This worked in OpenSUSE 11.2; it does not work in either FC13 or OS11.3

Any thoughts, ideas, insights, and easy solutions appreciated!

… still having fun!

oxala

OpenSUSE 11.3 uses udisks, (formerly DeviceKit), so the rules need to change slightly to allow for this.

Similar thread here.

There it is suggested to use

SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_BUS}=="ata", ENV{UDISKS_PRESENTATION_HIDE}="1" 

Hello Deano,

Thank you very much! That covers 90% … e.g. nautilus no longer shows a “disk” for every raid-member partition on my 6 drives … urg … I wish OpenSUSE would hide raid members by default.

Now that I know UDISKS_PRESENTATION_HIDE is the correct variable … the rest is just a little udevadm poking around …

:smiley:

Thanks for the update. Good result!