Bootstrap

Ubuntu12.04下禁止U盘等设备自动挂载和打开

有时候需要禁止U盘等设备的自动挂载,在Ubuntu12.04下方法:

进入系统终端,ctrl+alt+T或者gnome-terminal,禁止自动挂载:

$ gsettings setorg.gnome.desktop.media-handling automount false

禁止自动挂载并打开

$ gsettings setorg.gnome.desktop.media-handling automount-open false

允许自动挂载

$ gsettings set org.gnome.desktop.media-handlingautomount true

允许自动挂载并打开

$ gsettings setorg.gnome.desktop.media-handling automount-open true

;