本人环境:

windows 8.1

redhat 6.5


由于装了双系统之后想在linux系统下查看windows文件,于是上网搜索了一下方法:


先安装一个包,可以源码安装也可以rpm安装


这里我先安装了一个epel到yum源


下载:如果您使用第6版企业版 Linux,请安装这个 RPM 包:  epel-release-6-8.noarch.rpm


安装ntfs-3g


yum search ntfs-3g

============================= N/S Matched: ntfs-3g =============================
ntfs-3g-devel.i686 : Development files and libraries for ntfs-3g
ntfs-3g-devel.x86_64 : Development files and libraries for ntfs-3g
ntfs-3g.i686 : Linux NTFS userspace driver
ntfs-3g.x86_64 : Linux NTFS userspace driver
ntfsprogs.x86_64 : NTFS filesystem libraries and utilities

直接安装就好了:


yum install ntfs-3g


然后把windows到盘挂载上来:


#fdisk -cul

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63   104872319    52436128+   7  HPFS/NTFS
Partition 1 does not start on physical sector boundary.
/dev/sda2       104872320   419445127   157286404    7  HPFS/NTFS
/dev/sda3   *   419446784   734017535   157285376    7  HPFS/NTFS
/dev/sda4       734017536   976773167   121377816    5  Extended
/dev/sda5       734019584   735068159      524288   83  Linux
/dev/sda6       735070208   976773119   120851456   8e  Linux LVM


/dev/sda1 就是我的C盘


#mkdir /mnt/winC

# mount -t ntfs-3g /dev/sda1 /mnt/winC/ -o iocharset=utf8

# cd /mnt/winC/
# ls
AMD                     pagefile.sys         swapfile.sys
bootmgr                 PerfLogs             System Volume Information
BOOTNXT                 ProgramData          Users
Documents and Settings  Program Files        Windows
hiberfil.sys            Program Files (x86)
Intel                   $Recycle.Bin


C盘到内容可以显示出来了。


另外,可以编辑/etc/fstab

使其开机启动


/dev/sda1 /mnt/winC ntfs-3g codepage=936,iocharset=utf8 0 0


如有错误,请指出,感谢!