a3470194
作者a3470194·2013-01-03 18:46
系统管理员·北京瑞银信管理顾问有限公司

Linu 下挂载 ntfs 格式的磁盘 转载

字数 1789阅读 2266评论 0赞 0
Linu 下挂载 ntfs 格式的磁盘:(这种方法能实现读写)
一、下载 fuse软件包。
http://fuse.sourceforge.net/网站上下载 fuse软件包。安装 fuse:
#tar -zxvf fuse-2.7…
#cd fuse-2.7…
# ./configure
# make
# make install
# modprobe fuse
(加载 fuse模块)
# echo ’modeprobefuse’ >> /etc/rc.d/rc.local
或者在 vi /etc/rc.d/rc.local 下加上 modprobe fuse(使系统启动自动加载 fuse模块)
备注:
在安装 fuse时
执行命令:./configure
.....(略)
checking if FUSE module is built into thekernel... no
checking if FUSE module is from official kernel... no
checking kernel source directory...Not found
configure: error:
*** Please specify thelocation of the kernel sourcewith
*** the '--with-kernel=SRCDIR' option
configure: error: ./configure failed for kernel 报错。要看/usr/src/kernel 下有没有你系统的内核
包。在用 rpm –qa |grep kernel 看一下 kernel-devel-2……装上了吗。
二、下载 ntfs-3g 软件包。
http://www.ntfs-3g.org/ 网站去下载一个适合系统的 ntfs-3g 的软件包。
安装 ntfs-3g 软件包
#tar -zxvf ntfs-3g----
#cd ntfs-3g--
# ./configure
# make
# make install
三.挂载 ntfs 系统:
# mkdir /data1
(创建 ntfs系统挂载点)
#mount -t ntfs-3g /dev/sdb5 /data1 (挂载 sdb5,对应的硬盘查看用 df)
#vi /etc/fstab
在最后添加一行
/dev/sdb5
/data1
ntfs-3g
defaults
0 0
(实现开机自动加载)
Linu 下挂载 ntfs 格式的磁盘:(这种方法能实现只读,不能写)
1. 查看自己系统的内核版本
#uname –a
2.在 http://sourceforge.net/project/showfiles.php?group_id=13956&package_id=24313 网页上找
到合适自己系统内核的 NTFS 模块下载:
比如我的: kernel-module-ntfs-2.6.18-128.el5xen.i686
3.安装
运行 rpm –ivh kernel-module-ntfs-2.6.18-128.el5xen-2.1.27-0.rr.10.11.i686.rpm
运行/sbin/modprobentfs 加载内核模块。
运行 dmesg | grep NTFS,可以查看 NTFS 驱动版本。
[root@localhost src]# dmesg | grep NTFS
NTFS driver 2.1.27
可以运行 cat /proc/filesystems看到已经支持 ntfs文件系统了。
出现 nodev autofs,表示已经支持 ntfs了!
4. 挂载 ntfs系统:
# mkdir /test
(创建 ntfs系统挂载点)
#mount -t ntfs-3g /dev/sdb2 /test (挂载 sdb2,对应的硬盘查看用 df)
#vi /etc/fstab
在最后添加一行
/dev/sdb2
/test
ntfs-3g
defaults
0 0
(实现开机自动加载)
5.卸载 NTFS 模块
rpm -qa|grep ntfs 查看所安装的版本
rpm -ekernel-module-ntfs-2.6.18-128.el5xen-2.1.27-0.rr.10.11.i686
即可卸载。

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

X社区推广