感谢支持
我们一直在努力

64位 CentOS 6.0 挂载NTFS分区

安装了个64位 CentOS 6.0系统在虚拟机里面,想将win7下的ntfs分区挂载到CentOS中来使用。结果CentOS 6.0没有像Fedora 15那样可以用mount -t ntfs来直接挂载。于是到网上找到了方法。

1,下载rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm包
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


2,更新包
rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


3,下载fuse-ntfs-3g
yum update fuse-ntfs-3g


4,安装
yum -y install fuse-ntfs-3g


5,挂载
mount /dev/sdb5 /media


以下是实际安装过程的详细情况!


——————————安装前无法挂载————————————–


[root@localhost 桌面]# fdisk /dev/sdb -l

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 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: 0x26eb26ea

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        3917    31463271   2d  Unknown
/dev/sdb2            3918        6527    20963328   2d  Unknown
Partition 2 does not end on cylinder boundary.
/dev/sdb3            6528      121601   924331905    f  W95 Ext’d (LBA)
/dev/sdb5            6528       45690   314576766    7  HPFS/NTFS
/dev/sdb6           45691       84853   314576766   2d  Unknown
/dev/sdb7           84854      121601   295178278+  2d  Unknown
[root@localhost 桌面]# mount /dev/sdb5 /media/
mount: unknown filesystem type ‘ntfs’
[root@localhost 桌面]# mount -t ntfs /dev/sdb5 /media/
mount: unknown filesystem type ‘ntfs’


———下载rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm包————
[root@localhost network-scripts]#  wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


–2011-11-07 21:40:32–  http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm



正在解析主机 packages.sw.be… 78.46.17.228



正在连接 packages.sw.be|78.46.17.228|:80… 已连接。



已发出 HTTP 请求,正在等待回应… 301 Moved Permanently



位置:http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm [跟随至新的 URL]



–2011-11-07 21:40:35–  http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm



正在解析主机 pkgs.repoforge.org… 78.46.17.228



正在连接 pkgs.repoforge.org|78.46.17.228|:80… 已连接。



已发出 HTTP 请求,正在等待回应… 302 Found



位置:http://rpmforge.sw.be/RedHat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm [跟随至新的 URL]



–2011-11-07 21:40:40–  http://rpmforge.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm



正在解析主机 rpmforge.sw.be… 78.46.17.228



正在连接 rpmforge.sw.be|78.46.17.228|:80… 已连接。



已发出 HTTP 请求,正在等待回应… 301 Moved Permanently



位置:http://tree.repoforge.org/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm [跟随至新的 URL]



–2011-11-07 21:40:45–  http://tree.repoforge.org/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm



正在解析主机 tree.repoforge.org… 78.46.17.228



正在连接 tree.repoforge.org|78.46.17.228|:80… 已连接。



已发出 HTTP 请求,正在等待回应… 301 Moved Permanently



位置:http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm [跟随至新的 URL]



–2011-11-07 21:40:48–  http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm



正在解析主机 apt.sw.be… 193.1.193.67



正在连接 apt.sw.be|193.1.193.67|:80… 已连接。



已发出 HTTP 请求,正在等待回应… 200 OK



长度:12700 (12K) [application/x-redhat-package-manager]



正在保存至: “rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm”




100%[======================================>] 12,700      4.64K/s   in 2.7s   




2011-11-07 21:41:16 (4.64 KB/s) – 已保存 “rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm” [12700/12700])

安装rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 包———–

[root@localhost network-scripts]# rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm



warning: rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY



Preparing…                ########################################### [100%]



   1:rpmforge-release       ########################################### [100%]




———————用yum来自动搜寻下载fuse-ntfs-3g———————–



[root@localhost network-scripts]# yum update fuse-ntfs-3g



Loaded plugins: fastestmirror, refresh-packagekit



Determining fastest mirrors



Could not retrieve mirrorlist http://apt.sw.be/RedHat/el6/en/mirrors-rpmforge error was



14: PYCURL ERROR 7 – “”



 * base: mirrors.sin1.sg.voxel.net



 * extras: mirrors.sin1.sg.voxel.net



 * updates: mirrors.sin1.sg.voxel.net



base                                                     | 3.7 kB     00:00    



http://mirrors.sin1.sg.voxel.net/CentOS/6.0/os/x86_64/repodata/265ef017ca113fd1d2d17e161666da3470802c741e71fa1a3d349b9152938d12-primary.sqlite.bz2: [Errno 12] Timeout on http://mirrors.sin1.sg.voxel.net/centos/6.0/os/x86_64/repodata/265ef017ca113fd1d2d17e161666da3470802c741e71fa1a3d349b9152938d12-primary.sqlite.bz2: (28, ”)



Trying other mirror.



base/primary_db                                          | 4.2 MB     01:35    



extras                                                   | 3.0 kB     00:03    



extras/primary_db                                        | 1.9 kB     00:00    



rpmforge                                                 | 1.1 kB     00:00    



rpmforge/primary                                         | 1.4 MB     13:35    



rpmforge                                                              4089/4089



updates                                                  | 3.5 kB     00:08    



updates/primary_db                                       | 3.3 MB     10:35    



Setting up Update Process



Package(s) fuse-ntfs-3g available, but not installed.



No Packages marked for Update




————————–安装fuse-ntfs-3g————————————–
[root@localhost network-scripts]# yum -y install fuse-ntfs-3g
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirrors.sin1.sg.voxel.net
 * extras: mirrors.sin1.sg.voxel.net
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.sin1.sg.voxel.net
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package fuse-ntfs-3g.x86_64 0:2010.10.2-1.el6.rf set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package            Arch         Version                   Repository      Size
================================================================================
Installing:
 fuse-ntfs-3g       x86_64       2010.10.2-1.el6.rf        rpmforge       627 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 627 k
Installed size: 1.6 M
Downloading Packages:
fuse-ntfs-3g-2010.10.2-1.el6.rf.x86_64.rpm               | 627 kB     00:16    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : fuse-ntfs-3g-2010.10.2-1.el6.rf.x86_64                   1/1

Installed:
  fuse-ntfs-3g.x86_64 0:2010.10.2-1.el6.rf                                     

Complete!


———————————安装后挂载成功———————————–
[root@localhost 桌面]# mount /dev/sdb5 /media/
[root@localhost 桌面]# mount -l |grep sdb5
/dev/sdb5 on /media type fuseblk (rw,allow_other,blksize=4096)
[root@localhost 桌面]# ls /media/
78da053529cfdb32b48507fde9352b15  setup_8.2.0.2001i.exe
Baofeng2011.exe                   setup.exe
checksum.txt                      StormMedia
error.html                        System Volume Information
…………..


大功告成!

赞(0) 打赏
转载请注明出处:服务器评测 » 64位 CentOS 6.0 挂载NTFS分区
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏