貌似用-t ntfs挂载上的盘子是只读文件系统,今天查了一下ntfs文件系统的读写问题:
CentOS 5默认是不支持NTFS,网上找了些,看ntfs-3g支持读和写,装来试下效果确实不错。
1. 安装之前要先装fuse,否则ntfs-3g不能使用。
下载:
复制内容到剪贴板
代码:
http://sourceforge.net/project/showfiles.php?group_id=121684
复制内容到剪贴板
代码:
http://nchc.dl.sourceforge.net/sourceforge/fuse/fuse-2.7.4.tar.gz
安装:
复制内容到剪贴板
代码:
./configure --prefix=/usr
make
make install
2.安装ntfs-3g
下载:
复制内容到剪贴板
代码:
http://www.ntfs-3g.org/
复制内容到剪贴板
代码:
http://www.ntfs-3g.org/ntfs-3g-1.2918.tgz
安装:
复制内容到剪贴板
代码:
./configure
make
make install
3.挂载(我是把U盘格式化成NTFS格式测试的):
复制内容到剪贴板
代码:
mount -t ntfs-3g /dev/sda1 /mnt/U
4.启动系统时自动挂载:
修改/etc/fstab文件,添加:
复制内容到剪贴板
代码:
/dev/sda1 /mnt/U ntfs-3g defaults 0 0
注意,如果您看到下面消息:
复制内容到剪贴板
代码:
checking kernel source directory... Not found
configure: error:
*** Please specify the location of the kernel source with
*** the '--with-kernel=SRCDIR' option
configure: error: ./configure failed for kernel
则需要安装相应版本的kernel-devel软件包:
复制内容到剪贴板
代码:
yum -y install kernel-devel