歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> RHEL5下mount NTFS分區

RHEL5下mount NTFS分區

日期:2017/2/28 16:15:48   编辑:Linux教程

一、首先檢查下系統內核版本
[root@localhost ~]#uname -rp
2.6.18-128.el5 i686

二、下載適合內核版本的軟件包
到http://rpm.pbone.net搜索下載,或者到http://www.linux-ntfs.org下載

我的內核是2.6.18-128.el5 下載kernel-module-ntfs-2.6.18-128.el5 i686

三、安裝Rpm包
[root@localhost ~]#rpm -ivh kernel-module-ntfs-2.6.18-128.el5-2.1.27-0.rr.10.11.i686.rpm

四、將ntfs模塊加載到內核中
[root@localhost ~]#modprobe ntfs

檢查ntfs是否被正確加載
[root@localhost ~]#dmesg | grep NTFS
NTFS driver 2.1.27 [Flags: R/W MODULE].

如果出現上面的信息應該是被正確的加載了。

五、Mount查看硬盤上ntfs分區
[root@localhost ~]#mount -t ntfs /dev/sdb5 /media/tools/

查看下:

[root@chinarhcx ~]# df -h
文件系統 容量 已用 可用 已用% 掛載點
/dev/mapper/vg_chinarhcx-lv_root
4.9G 764M 3.9G 17% /
/dev/mapper/vg_chinarhcx-lv_home
9.7G 151M 9.1G 2% /home
/dev/mapper/vg_chinarhcx-lv_usr
4.9G 2.8G 1.9G 61% /usr
/dev/mapper/vg_chinarhcx-lv_web
9.7G 151M 9.1G 2% /web
/dev/mapper/vg_chinarhcx-lv_data
20G 173M 19G 1% /home/data
/dev/sda3 99M 13M 82M 14% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/sdb5 50G 25G 25G 50% /media/tools

這樣可以在RHEL5下使用NTFS分區格式下的文件了。

補充:對於沒有找到合適內核版本的linux,例如RHEL5.4及以後的版本,采用如下辦法

1、下載ntfs-3g
http://www.tuxera.com/community/ntfs-3g-download/
2、編譯安裝
tar -xvzf ntfs-3g-***.tar.gz
  cd ntfs-3g-***
  ./configure
  make
  make install
3、掛載NTFS分區
mount -t ntfs-3g /dev/sdb5 /mnt
現在NTFS已經支持讀寫了。

Copyright © Linux教程網 All Rights Reserved