禁用 Ubuntu 自动挂载功能
来源:互联网 发布:网页游戏推荐知乎 编辑:程序博客网 时间:2024/05/17 07:18
在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
但是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
0 0
- 禁用 Ubuntu 自动挂载功能
- 禁用 Ubuntu 自动挂载功能(自动挂老是引起死机。。。。)
- Ubuntu开机自动禁用无线网络
- 禁用Windows XP的自动播放功能
- 禁用XP四大自动播放功能
- 禁用input自动完成功能,不显示
- 禁用Windows系统的自动播放功能
- 禁用VS2012的自动下载符号功能
- 禁用DataGridView的自动排序功能
- 如何禁用Oracle AWR自动采样功能
- 禁用Visual Studio的自动保存功能
- IIS 禁用自动目录列表功能
- Flume-ng禁用自动加载配置文件功能
- webstorm如何禁用自动保存功能?
- Flume-ng禁用自动加载配置文件功能
- Ubuntu 16.04如何禁用IPv6功能
- ubuntu 14.04 禁用u盘自动打开
- ubuntu防火墙在系统启动时自动禁用
- vmware下centos克隆功能对网络的设置
- File文件操作
- [DGMGRL]Dgmgrl管理Dataguard(3) 草稿
- tabbar显示原图
- UVa10720 ( Graph Construction)(判断是否可化为简单图)
- 禁用 Ubuntu 自动挂载功能
- 以这篇文章,结束我的前端职业
- ubuntu eigen 安装与使用
- uva 575
- 视频容器格式与编码格式简介
- perl相关
- zeromq-4.1.2在windows下的编译
- Python 读写txt文件中文简单处理
- Memcached(分布式内存对象缓存系统)