Skip to main content
added 457 characters in body; added 2 characters in body
Source Link
JanC
  • 1.4k
  • 7
  • 8

One possibility is to add your own udev rule for this partition, that overrides the default ones. On Ubuntu 10.04 /lib/udev/rules.d/80-udisks.rules has some default rules that make udisks ignore some partitions (e.g. partitions that are known to be rescue partitions etc.) which might be an inspiration...

On Ubuntu 10.04 your own rules should go into /etc/udev/rules.d/ (see the README there).

After some experimenting, the following seems to work:

ENV{ID_FS_UUID}=="6b7f8268-c6a2-4265-9563-78f808b3c1cd", ENV{UDISKS_PRESENTATION_HIDE}:="1" 

Put that line in a *.rules file that has a name that lexically follows the rules file that contains the normal udisk-related rules. Easiest to do that is to start it with a higher number (so I used 81 to make sure it overrides the rules in 80-*). Of course use whatever UUID your partition has.

On another distro those things might be located differently, but the basics should be the same...

One possibility is to add your own udev rule for this partition, that overrides the default ones. On Ubuntu 10.04 /lib/udev/rules.d/80-udisks.rules has some default rules that make udisks ignore some partitions (e.g. partitions that are known to be rescue partitions etc.) which might be an inspiration...

On Ubuntu 10.04 your own rules should go into /etc/udev/rules.d/ (see the README there).

On another distro those things might be located differently, but the basics should be the same...

One possibility is to add your own udev rule for this partition, that overrides the default ones. On Ubuntu 10.04 /lib/udev/rules.d/80-udisks.rules has some default rules that make udisks ignore some partitions (e.g. partitions that are known to be rescue partitions etc.) which might be an inspiration...

On Ubuntu 10.04 your own rules should go into /etc/udev/rules.d/ (see the README there).

After some experimenting, the following seems to work:

ENV{ID_FS_UUID}=="6b7f8268-c6a2-4265-9563-78f808b3c1cd", ENV{UDISKS_PRESENTATION_HIDE}:="1" 

Put that line in a *.rules file that has a name that lexically follows the rules file that contains the normal udisk-related rules. Easiest to do that is to start it with a higher number (so I used 81 to make sure it overrides the rules in 80-*). Of course use whatever UUID your partition has.

On another distro those things might be located differently, but the basics should be the same...

Source Link
JanC
  • 1.4k
  • 7
  • 8

One possibility is to add your own udev rule for this partition, that overrides the default ones. On Ubuntu 10.04 /lib/udev/rules.d/80-udisks.rules has some default rules that make udisks ignore some partitions (e.g. partitions that are known to be rescue partitions etc.) which might be an inspiration...

On Ubuntu 10.04 your own rules should go into /etc/udev/rules.d/ (see the README there).

On another distro those things might be located differently, but the basics should be the same...