本人的台式机上安装了双系统Windows + CentOS 6.4,由于几乎所有的资料都存放在Windows上,并且Windows的分区都是NTFS格式的,所以想在Linux上直接看Windows上的资料,故在网上查找了一些资料,安装了一些软件完成了在CentOS(ext4)上看Windows上的资料的愿望!
下面是整个操作过程:
第一步,做预备工作,下载rpmforge文件包:
引用
#wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
第二步,安装rpmforge:
引用
#chmod +x rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
#rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
第三步,安装fuse-ntfs-3g文件包,该包可以在CentOS上看Windows NTFS文件系统上的wenjian:
引用
#yum install fuse-ntfs-3g
[root@JackyChen src]#yum install fuse-ntfs-3g
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* contrib: dl.google.com
* extras: mirrors.grandcloud.cn
* rpmforge: ftp.neowiz.com
* updates: mirrors.grandcloud.cn
base | 3.7 kB 00:00
contrib | 951 B 00:00
contrib/primary | 1.9 kB 00:00
contrib 3/3
extras | 3.5 kB 00:00
google | 951 B 00:00
google-chrome | 951 B 00:00
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 2.6 MB 01:31
updates | 3.4 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fuse-ntfs-3g.x86_64 0:2013.1.13-2.el6.rf will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
fuse-ntfs-3g x86_64 2013.1.13-2.el6.rf rpmforge 483 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 483 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64.rpm | 483 kB 00:14
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64 1/1
Verifying : fuse-ntfs-3g-2013.1.13-2.el6.rf.x86_64 1/1
Installed:
fuse-ntfs-3g.x86_64 0:2013.1.13-2.el6.rf
Complete!
然后就可以以root的身份打开windows的分区了:
查看硬盘上的的所有分区:
引用
#fdisk -l
Disk /dev/sda: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb3e1b3e1
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3917 31463271 7 HPFS/NTFS
/dev/sda2 3918 60801 456920730 f W95 Ext'd (LBA)
/dev/sda5 3918 7834 31463271 7 HPFS/NTFS
/dev/sda6 7835 16971 73392921 7 HPFS/NTFS
/dev/sda7 16972 30025 104856223+ 7 HPFS/NTFS
/dev/sda8 30026 43079 104856223+ 7 HPFS/NTFS
/dev/sda9 43080 43105 204800 83 Linux
/dev/sda10 43105 43889 6291456 82 Linux swap / Solaris
/dev/sda11 43889 60801 135852032 83 Linux