在电脑上安装了两个系统。xp与cnetos5.3 desktop。在centos下要访问windows xp分区的内容。由于centos5默认不支持ntfs分区。需要安装ntfs-3g来实现对ntfs文件系统的支持。
要安装软件包:
1.fuse-2.8.1.tar.gz( http://fuse.sourceforge.net/
2.ntfs-3g-2009.4.4.tgz( http://www.ntfs-3g.org/
安装:
1.安装fuse
#tar zxfv fuse-2.8.1.tar.gz
#cd  fuse-2.8.1
#./configure  (我安装的centos没有gcc,提示错误。使用yum install gcc。安装gcc)
#make
#make install
2.安装ntfs-3g
#tar zxfv ntfs-3g-2009.4.4.gz
#cd ntfs-3g-2009.4.4
#./configure
#make
#make install
 
查看xp分区在,我的硬盘分区,C盘安装xp,D盘放置文件文件系统是NTFS,E盘是FAT32。centos5.3安装剩余的空间,
查看硬盘信息
# fdisk -l
Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1275    10241406    7  HPFS/NTFS
/dev/hdc2            1276        4864    28828642+   f  W95 Ext'd (LBA)
/dev/hdc5            1276        3451    17478688+   7  HPFS/NTFS
/dev/hdc6            3452        4081     5060443+   b  W95 FAT32
/dev/hdc7            4082        4798     5759271   83  Linux
/dev/hdc8            4799        4863      522081   82  Linux swap / Solaris

我们的硬盘是IDE接口,hdc1是xp分区,hdc2是扩展分区,hdc5是xp的D盘,hdc6是FAT32文件系统。其中hdc7、hdc8是centos的/ 分区、swap分区。
 
挂载NTFS分区
# mount -t ntfs-3g /dev/hdc5 /mnt/D盘
#mount -t ntfs-3g /dev/hdc1 /mnt/C
#df -h
文件系统              容量  已用 可用 已用% 挂载点
/dev/hdc7             5.4G  2.8G  2.4G  55% /
tmpfs                 252M     0  252M   0% /dev/shm
/dev/hdc5              17G   14G  3.4G  81% /mnt/D盘
/dev/hdc1             9.8G  4.1G  5.8G  42% /mnt/C
 
#cd /mnt/C
#ls
 Documents and Settings  
Program Files             
WINDOWS
 IO.SYS      RECYCLER
boot.ini    
System Volume Information
hiberfil.sys          
MSDOS.SYS  
pagefile.sys