下載兩個軟件,fuse和ntfs-3g,網址:
ntfs-3g:http://www.ntfs-3g.org/
完了後,編譯安裝:
1、先安裝fuse軟件:
[root@server1 ~]# tar -xvzf fuse-2.8.1.tar.gz
[root@server1 ~]# cd fuse-2.8.1;./configure;make;make install
2、安裝ntfs-3g軟件:
[root@server1 ~]# tar -xvzf ntfs-3g-2009.11.14.gz
[root@server1 ~]# cd ntfs-3g-2009.11.14;./configure;make;make install
3、掛在ntfs文件系統:
[root@server1 ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2610 20860402+ 8e Linux LVM
Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 1246 10008463+ 8e Linux LVM
/dev/sdb1 1 1246 10008463+ 8e Linux LVM
Disk /dev/sdc: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 4870 39118243+ 7 HPFS/NTFS
/dev/sdc1 1 4870 39118243+ 7 HPFS/NTFS
已經識別出來了。
[root@server1 ~]# mount -t ntfs-3g /dev/sdc1 /mnt/win
[root@server1 ~]# cd /mnt/win/
[root@server1 win]# ls
[root@server1 win]# touch a
[root@server1 win]# echo "Test the ntfs filesystem on linux" >a
[root@server1 win]# ls
[root@server1 win]# touch a
[root@server1 win]# echo "Test the ntfs filesystem on linux" >a
[root@server1 win]# ls -l
total 1
-rwxrwxrwx 1 root root 34 Dec 3 19:38 a
[root@server1 win]# cat a
Test the ntfs filesystem on linux
total 1
-rwxrwxrwx 1 root root 34 Dec 3 19:38 a
[root@server1 win]# cat a
Test the ntfs filesystem on linux
4、設置開機自動掛在:
編輯/etc/fstab文件,加入下面內容:
/dev/sdc1 /mnt/win ntfs-3g defaults 0 0
待下次開機時會自動掛在ntfs文件系統的。