在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
本文详细介绍了在Ubuntu11.10中,如何通过gconf-editor编辑配置文件来阻止系统自动打开插入的U盘、移动硬盘,让用户手动在计算机中双击磁盘图标进行打开。
&spm=1001.2101.3001.5002&articleId=6796955&d=1&t=3&u=5f4e943e97204676bebdf4a91240432e)
315

被折叠的 条评论
为什么被折叠?



