LinuxSir.cn,穿越时空的Linuxsir!

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

FC7_自动挂载NTFS 分区的奇怪问题-->>>

[复制链接]
发表于 2007-8-6 14:32:11 | 显示全部楼层 |阅读模式
正确执行 sudo yum install fuse fuse-libs ntfs-3g
并且在 /mnt 下创建了 相应挂载点 c_system d_program e_work f_enter_backup
修改了fstab如下:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/sda1 /mnt/c_system ntfs-3g rw,defaults,umask=0000 0 0
/dev/sda5 /mnt/d_program ntfs-3g rw,defaults,umask=0000 0 0
/dev/sda6 /mnt/e_work ntfs-3g rw,defaults,umask=0000 0 0
/dev/sda7 /mnt/f_enter_backup ntfs-3g rw,defaults,umask=0000 0 0

开机时挂载失败,但是关机时关闭自动挂载会成功。

开机的 messgae 日志:

Aug  6 22:16:25 localhost kernel:  =======================
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:12): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:13): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:14): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:15): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:16): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:17): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:18): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:19): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:20): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409771.199:23): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_ubject_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409773.199:24): avc:  denied  { search } for  pid=1192 comm="rhgb" name="root" dev=dm-0 ino=2186881 scontext=system_u:system_r:rhgb_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: No dock devices found.
Aug  6 22:16:25 localhost kernel: input: Power Button (FF) as /class/input/input4
Aug  6 22:16:25 localhost kernel: ACPI: Power Button (FF) [PWRF]
Aug  6 22:16:25 localhost kernel: input: Power Button (CM) as /class/input/input5
Aug  6 22:16:25 localhost kernel: ACPI: Power Button (CM) [PWRB]
Aug  6 22:16:25 localhost kernel: ibm_acpi: ec object not found
Aug  6 22:16:25 localhost kernel: device-mapper: multipath: version 1.0.5 loaded
Aug  6 22:16:25 localhost kernel: EXT3 FS on dm-0, internal journal
Aug  6 22:16:25 localhost kernel: kjournald starting.  Commit interval 5 seconds
Aug  6 22:16:25 localhost kernel: EXT3 FS on sda8, internal journal
Aug  6 22:16:25 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode.
Aug  6 22:16:25 localhost kernel: fuse init (API version 7.8)
Aug  6 22:16:25 localhost kernel: audit(1186409775.699:25): avc:  denied  { search } for  pid=1309 comm="mount.ntfs-3g" name="mnt" dev=dm-0 ino=3198721 scontext=system_u:system_r:mount_ntfs_t:s0 tcontext=system_u:object_r:mnt_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409775.699:26): avc:  denied  { search } for  pid=1315 comm="mount.ntfs-3g" name="mnt" dev=dm-0 ino=3198721 scontext=system_u:system_r:mount_ntfs_t:s0 tcontext=system_u:object_r:mnt_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409775.699:27): avc:  denied  { search } for  pid=1316 comm="mount.ntfs-3g" name="mnt" dev=dm-0 ino=3198721 scontext=system_u:system_r:mount_ntfs_t:s0 tcontext=system_u:object_r:mnt_t:s0 tclass=dir
Aug  6 22:16:25 localhost kernel: audit(1186409775.699:28): avc:  denied  { search } for  pid=1317 comm="mount.ntfs-3g" name="mnt" dev=dm-0 ino=3198721 scontext=system_u:system_r:mount_ntfs_t:s0 tcontext=system_u:object_r:mnt_t:s0 tclass=dir

手动挂在 mount -a 成功!
太郁闷了。。。
发表于 2010-2-5 12:10:35 | 显示全部楼层
你的fstab文档明显是改错了。
把/dev/sda1 /mnt/c_system ntfs-3g rw,defaults,umask=0000 0 0
改成 /dev/sda1 /mnt/c_system ntfs-3g defaults 0 0
就OK。
回复 支持 反对

使用道具 举报

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

本版积分规则

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