Главная » Linux » Hide Unmounted Partitions in "Places" menu Ubuntu Karmic

Hide Unmounted Partitions in "Places" menu Ubuntu Karmic

21:10

# we only care about block devices
ACTION!="add|change", GOTO="hide_partitions_end"
SUBSYSTEM!="block", GOTO="hide_partitions_end"
KERNEL=="loop*|ram*", GOTO="hide_partitions_end"

################################################## ############################

# Floppy Drive which should not display
KERNEL=="fd0", ENV{ID_DRIVE_FLOPPY}="1", ENV{DKD_PRESENTATION_HIDE}="1"

# Partition sda2 that we want to hide from gnome
KERNEL=="sda2", ENV{DKD_PRESENTATION_HIDE}="1"

# Partition sda3 that we want to hide from gnome
KERNEL=="sda3", ENV{DKD_PRESENTATION_HIDE}="1"

################################################## ############################

LABEL="hide_partitions_end"


(c)