LinuxSir.cn,穿越时空的Linuxsir!

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

FC6不能自动挂载ntf分区

[复制链接]
发表于 2006-10-30 13:44:51 | 显示全部楼层 |阅读模式
yum Extender安装了ntfs-3g,系统启动到udev有错误的信息,似与fuse有关,ntfs分区不能自动挂载,可进入系统后用ntfs-3g挂载却没问题,如果不卸载关机则有出错提示,但不太懂英文。出错信息看不懂。
于是删除了fuse和ntfs-3g自己编译,编译fuse时,执行make最后的信息为
make[1]: Leaving directory `/temp/ntfs-3g/fuse-2.6.0/example'
make[1]: Entering directory `/temp/ntfs-3g/fuse-2.6.0'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/temp/ntfs-3g/fuse-2.6.0'

执行make check出错:
[lrz@localhost fuse-2.6.0]$ make check
Making check in kernel
make[1]: Entering directory `/temp/ntfs-3g/fuse-2.6.0/kernel'
make[1]: *** 没有规则可以创建目标“check”。 停止。
make[1]: Leaving directory `/temp/ntfs-3g/fuse-2.6.0/kernel'
make: *** [check-recursive] 错误 1

不过安装完fuse和ntfs-3g进入系统时udev处没出错的信息了,可是仍不能自动挂载,只能手动mount。关机时也自动卸载也有出错信息。
请问有没有办法解决。
thank you
发表于 2006-10-30 13:48:10 | 显示全部楼层
你yum install kmod-ntfs吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-30 13:56:00 | 显示全部楼层
这个好象要加yum源啊,我加了个livna源,可是它提示要下载更新内核,我看它下载的内核版本与我现在用的一样,感觉有点问题。没其它办法了吗
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-30 14:23:01 | 显示全部楼层
假如不能解决,我想自己编译一下内核,可记得以前打开过FC5的内核源码的rpm包,里面除了内核的源码包外还有很多的补丁,想问一下,这些补丁怎样打,内核我在RH9时自己编译过,可FC6的补丁不会打。
谢谢!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-30 19:49:56 | 显示全部楼层
自己顶一下。
回复 支持 反对

使用道具 举报

发表于 2006-10-30 21:28:15 | 显示全部楼层
看看这个吧http://www.linuxsir.cn/bbs/showthread.php?t=278449
我就是按照这个做的移动硬盘的NTFS就能自动挂载了还可以写入的!
回复 支持 反对

使用道具 举报

发表于 2006-10-30 22:50:52 | 显示全部楼层
Post by lurz
yum Extender安装了ntfs-3g,系统启动到udev有错误的信息,似与fuse有关,ntfs分区不能自动挂载,可进入系统后用ntfs-3g挂载却没问题,如果不卸载关机则有出错提示,但不太懂英文。出错信息看不懂。
于是删除了fuse和ntfs-3g自己编译,编译fuse时,执行make最后的信息为
make[1]: Leaving directory `/temp/ntfs-3g/fuse-2.6.0/example'
make[1]: Entering directory `/temp/ntfs-3g/fuse-2.6.0'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/temp/ntfs-3g/fuse-2.6.0'

执行make check出错:
[lrz@localhost fuse-2.6.0]$ make check
Making check in kernel
make[1]: Entering directory `/temp/ntfs-3g/fuse-2.6.0/kernel'
make[1]: *** 没有规则可以创建目标“check”。 停止。
make[1]: Leaving directory `/temp/ntfs-3g/fuse-2.6.0/kernel'
make: *** [check-recursive] 错误 1

不过安装完fuse和ntfs-3g进入系统时udev处没出错的信息了,可是仍不能自动挂载,只能手动mount。关机时也自动卸载也有出错信息。
请问有没有办法解决。
thank you



禁止SELinux
vi /etc/selinux/config
设置
SELINUX=disabled
回复 支持 反对

使用道具 举报

发表于 2006-10-31 08:37:06 | 显示全部楼层
1.运行:
#yum install ntfs-3g
2.以root身份新建文件/sbin/mount.ntfs
代码:
#!/bin/sh export LANG=en_US.UTF-8 exec /sbin/mount.ntfs-3g "$@"

然后执行
代码:
#chmod a+x /sbin/mount.ntfs
3.#尝试挂载本地ntfs,
#mkdir /mnt/c
#mount -t ntfs-3g -o nls=utf8,umask=000 /dev/hda1 /mnt/c
依次添加就是了.
4.自动挂载在/etc/fstab中加入类似:
/dev/hda1 /mnt/c ntfs-3g defaults 0 0
依此添加就OK了.

然后..嘿嘿,就可以完美的对NTFS分区读写了!
回复 支持 反对

使用道具 举报

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

本版积分规则

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