Results 1 to 4 of 4

Thread: udev rules: hide arrays and array members from nautilus

  1. #1

    Question 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

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,994
    Blog Entries
    1

    Default Re: udev rules: hide arrays and array members from nautilus

    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

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

  3. #3

    Default Re: udev rules: hide arrays and array members from nautilus

    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 ...


  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,994
    Blog Entries
    1

    Default Re: udev rules: hide arrays and array members from nautilus

    Thanks for the update. Good result!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •