在Ubuntu 10.04中,系统发现U盘、移动硬盘,只是一个提示,需要用户到“计算机”中打开U盘。。但是10.10中只要U盘、移动硬盘一插入电脑。系统就直接打开U盘、移动硬盘了。如何修改才能使系统不自动打开U盘、移动硬盘,而是由用户到计算机中双击U盘、移动硬盘磁盘打开。
下面就把我自己的做法说一下:
在终端输入:
gconf-editor
在出来的界面中依次找到:
/apps/nautilus/preferences/media_automount
/apps/nautilus/preferences/media_automount_open
这两个选项,把勾勾去掉就可以了,根据里面的描述:
第一个选项是是否自动挂载,第二个是是否自动打开。
Ubuntu 11.10
If there is a line in /etc/fstab
related to that drive, remove it.
The file is read only for all users other that root
.
To edit it use the command gksu gedit /etc/fstab
, but make a copy of the file before editing, and do not touch nothing other than removing that line.
To disable USB automount in Ubuntu 11.10 (with Gnome 3), launch dconf-editor
(package dconf-tools
) and uncheck the following entries:
- org.gnome.desktop.media-handling automount
- org.gnome.desktop.media-handling automount-open