(01) Linux Support NTFS 安裝筆記
官方網站:Linux NTFS file system support
http://sourceforge.net/projects/linux-ntfs/
檢查系統核心版本
[root@localhost ~]# uname -r -p
2.6.18-92.1.10.el5 i686
下載對應的系統核心版本到桌面
Download
http://sourceforge.net/project/showfiles.php?group_id=13956
Kernel NTFS Module --> el5 2.6.18-92.1.10 -->
kernel-module-ntfs-2.6.18-92.1.10.el5-2.1.27-0.rr.10.11.i686.rpm
[root@localhost ~]# cd ~/Desktop
[root@localhost Desktop]# rpm -ivh
kernel-module-ntfs-2.6.18-92.1.10.el5-2.1.27-0.rr.10.11.i686.rpm
將 NTFS 模組載入到系統核心中
[root@localhost Desktop]# /sbin/modprobe ntfs
查看 NTFS 模組是否被正確的載入
[root@localhost Desktop]# dmesg | grep NTFS
NTFS driver 2.1.27 [Flags: R/W MODULE].
如果有出現以上訊息就是有支援 NTFS 磁區了
也可以使用 cat /proc/filesystems 來確認是否支援 NTFS
接著掛載你要載入的 NTFS 磁區
[root@localhost Desktop]# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 15 120456 83 Linux
/dev/sda2 7650 30401 182755440 f W95 Ext'd (LBA)
/dev/sda3 16 487 3791340 82 Linux swap / Solaris
/dev/sda4 488 7649 57528765 83 Linux
/dev/sda5 7650 30401 182755408+ 7
HPFS/NTFS
Partition table entries are not in disk order
[root@localhost Desktop]# cd /mnt
[root@localhost media]# mkdir data
掛載 NTFS 磁區
[root@localhost media]# mount -t ntfs /dev/sda5 /mnt/data/
[root@localhost media]# ls data
HPA5080TWA0.GHO HP_WinXP_Driver System Volume Information
[root@localhost media]#
檢查是否掛載成功
[root@localhost media]# df -h
檔案系統 容量 已用 可用 已用% 掛載點
/dev/sda4 54G 3.0G 48G 6% /
/dev/sda1 114M 22M 87M 20% /boot
/dev/sda5 175G 2.8G 172G 2% /mnt/data
[root@localhost media]#
讓開機時自動掛載 NTFS 磁區
[root@localhost media]# vi fstab
/dev/sda5 /mnt/data ntfs
auto,defaults 0 2
|
|