The GNOME, runs the program gnome-volume-manager to mount devices and removable media (such as DVDs, CDs and USB flash drives) whenever they are inserted into the system.
Use gconftool-2 GNOME configuration tool to disable or enable settings related to GNOME desktop. Each preference in the GConf repository is expressed as a key-value pair. A GConf preference key is an element in the GConf repository that corresponds to an application prefer-ence. Preference keys typically have simple values such as strings, integers, or lists of strings and integers.
List current settings
Type the following command:$ gconftool-2 -R /desktop/gnome/volume_managerGnome Disable automounting
Type the following command:$ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/volume_manager/automount_media false
$ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/volume_manager/automount_drives falseThe automount drives and automount media settings should be set to false to avoid automounting. Read gconftool-2 man page for further details:
$ man gconftool-2
No comments:
Post a Comment