How to disable auto mounting a removable media on KDE in Red Hat Enterprise Linux6?
Environment
- Red Hat Enterprise Linux 6
- KDE
Issue
- How do I disable auto mounting a removable media on KDE in Red Hat Enterprise Linux6?
Resolution
The notification at the time of the disk insertion and auto-mounting are realized since hald-addon-storage
generated from hald watches the removable storage such as CD/DVD or USB memory.
To Follow the steps:
-
Modify the following line in
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
.-- /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi -- (...skip...) <match key="volume.fsusage string="filesystem""> <!-- Here follow volumes we specifically want to ignore - it is the --> <!-- responsibility of software higher in the stack (e.g. gnome-vfs ) --> <!-- amd mount programs (e.g. Mount() on HAL) to respect volume.ignore --> <merge key="volume.ignore">true</merge> <<==change from "false" to "true" (...skip...)
-
Restart haldaemon service.
# service haldaemon restart
You can disable the auto mounting by this way, but the notification at the time of the media insertion are carried out as usual.
To disable the notification, move /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
to an other directory or change the file suffix.
-
Change the file suffix.
# cd /usr/share/hal/fdi/policy/10osvendor/ # mv 20-storage-methods.fdi 20-storage-methods.fdi.bak
-
Restart haldaemon service.
# service haldaemon restart
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments