LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1613|回复: 16

请教,开机不自动挂载WINDOWS硬盘的方法。

[复制链接]
发表于 2010-4-13 15:00:09 | 显示全部楼层 |阅读模式
我的系统debian 5.0 testing,lxde,pcman下会显示WINDOWS的硬盘,双击后会自动挂载,请问怎么设置能不在pcman里显示出来WINDOWS的盘?因为挂上后是可写的,怕一不小心弄坏了。我在网上搜了一下午,怎么也找不到,记得以前这里有个贴子写过这方面的内容,可是现在却找不到了。。。。
发表于 2010-4-13 15:19:12 | 显示全部楼层
pcman没用过,不知道你的/etc/fstab里有没有挂载windows分区的行,有的话,注释掉看看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-13 17:03:56 | 显示全部楼层
# /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/sda6 during installation
UUID=19a0b41d-3292-438f-9235-86f7562e9f30 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda7 during installation
UUID=3c50fc4e-6f4a-43b8-b2f3-763a6805da8e /home           ext4    defaults        0       2
# swap was on /dev/sda8 during installation
UUID=16ca8560-1e06-45a6-8362-5de08b7e7348 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

这是我的fstab文件,以前的很简单,现在的都看不懂了。。。。
回复 支持 反对

使用道具 举报

发表于 2010-4-13 22:48:16 | 显示全部楼层
Post by 风化狼;2082603
# /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/sda6 during installation
UUID=19a0b41d-3292-438f-9235-86f7562e9f30 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda7 during installation
UUID=3c50fc4e-6f4a-43b8-b2f3-763a6805da8e /home           ext4    defaults        0       2
# swap was on /dev/sda8 during installation
UUID=16ca8560-1e06-45a6-8362-5de08b7e7348 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

这是我的fstab文件,以前的很简单,现在的都看不懂了。。。。
你的fstab并没又挂载win分区,
试试运行gconf-editor设置/apps/nautilus/desktop/volumes_visible键为false。
回复 支持 反对

使用道具 举报

发表于 2010-4-13 23:22:53 | 显示全部楼层
都是pmount这个软件惹的祸
你要么把这个软件删除了
要么怎么设置一下吧
pmount:
  1. mount removable devices as normal user
  2. pmount is a wrapper around the standard mount program which permits normal
  3. users to mount removable devices without a matching /etc/fstab entry. This
  4. provides a robust basis for automounting frameworks like GNOME's Utopia
  5. project and confines the amount of code that runs as root to a minimum.
  6. This package also contains a wrapper "pmount-hal" which reads some
  7. information like device labels and mount options from hal and passes
  8. them to pmount. Install the package "hal" if you want to use this
  9. feature.
  10. If a LUKS capable cryptsetup package is installed, pmount is able to
  11. transparently mount encrypted volumes.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-14 10:02:32 | 显示全部楼层
谢谢各位回复,看来这东西不好搞。。。。
回复 支持 反对

使用道具 举报

发表于 2010-4-14 10:22:19 | 显示全部楼层
卸载那个pmount软件都不行么?
回复 支持 反对

使用道具 举报

发表于 2010-4-14 10:28:12 | 显示全部楼层
把windows所有分区写进fstab,不过参数用noauto。试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-14 19:18:38 | 显示全部楼层
没有pmount

yourfried,你这招比较独特,我试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-4-14 19:53:18 | 显示全部楼层
比较杯具,以上方法全部无效。

linux智能化程度越来越高了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表