下载两个软件,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文件系统的。