怎么设置不加载 WIN下的盘

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
auty
帖子: 19
注册时间: 2009-03-18 12:52

怎么设置不加载 WIN下的盘

#1

帖子 auty » 2009-04-29 21:33

我的UB,是9.04
WIN的盘有C D E
在UB中能认出来,并能改动文件。
打每次打开这些盘时,会自动加到桌面。

1. 我不想在UB下能改WIN下的文件,特别是系统C盘。
2. D E盘也不想加载到桌面。


怎么设置?
头像
kia
帖子: 144
注册时间: 2007-11-05 15:55

Re: 怎么设置不加载 WIN下的盘

#2

帖子 kia » 2009-04-29 21:43

代码: 全选

sudo gedit /etc/fstab
将其中C,D,E的项目,估计是 /dev/sda1 sda2,sda3所在的行,
用#注释,或者直接删除,然后再保存就行了
auty
帖子: 19
注册时间: 2009-03-18 12:52

Re: 怎么设置不加载 WIN下的盘

#3

帖子 auty » 2009-04-29 22:23

#注释后,就直接在UB下认不出来 了。

我想保留E,但不让其加载到桌面,有办法吗?

内容如下:
改什么地方?
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda11 during installation
UUID=574125cf-fb82-4e8d-9b5c-03e771dccfaa / ext4 relatime,errors=remount-ro 0 1
# /boot was on /dev/sda10 during installation
UUID=88b4e707-a055-4010-8dbf-7d70550a59ba /boot ext4 relatime 0 2
# /home was on /dev/sda8 during installation
UUID=ef6770ad-1a3f-4f73-8667-b211c2c4eefb /home ext4 relatime 0 2
# /var was on /dev/sda9 during installation
UUID=462613b1-36d7-4da8-8e53-d9522d15b76b /var ext4 relatime 0 2
# swap was on /dev/sda7 during installation
UUID=fcd15ee6-7c84-41aa-be38-701d8bfc4255 none swap sw 0 0
头像
justinux
帖子: 80
注册时间: 2008-10-10 21:32

Re: 怎么设置不加载 WIN下的盘

#4

帖子 justinux » 2009-04-30 17:05

把挂载点改在别处(比如/mnt)下面应该就看不见了吧。
参考我的>.<

代码: 全选

/dev/sda5	/mnt/mvp	ntfs	defaults	0	2
CPU: AMD Barton 2600+
主板: EPOX 8RDA3+
内存: Kingstone DDR400 512MB x 2
显卡: R9550(128MB)
硬盘: Seagate 250GB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ubuntu 10.04
Opera 10
头像
link_01
帖子: 1024
注册时间: 2008-11-05 13:24

Re: 怎么设置不加载 WIN下的盘

#5

帖子 link_01 » 2009-04-30 17:14

正常时候是不自动挂载的,自己设置的吧
笔记
-------------------------------------
http://blog.163.com/wqt_1101
回复