CentOS 5.4 挂载Windows 分区FAT32/NTFS格式的方法

来源:互联网 发布:sql架构 编辑:程序博客网 时间:2024/05/21 01:54
[root@localhost ~]# yum install ntfs-3g
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fuse-ntfs-3g.i386 0:2009.4.4-2.el5.rf set to be updated
--> Processing Dependency: fuse >= 2.6.3 for package: fuse-ntfs-3g
--> Running transaction check
---> Package fuse.i386 0:2.7.4-8.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package            Arch       Version                 Repository          Size
================================================================================
Installing:
fuse-ntfs-3g       i386       2009.4.4-2.el5.rf       Dag                385 k
Installing for dependencies:
fuse               i386       2.7.4-8.el5             163-com-base        83 k

Transaction Summary
================================================================================
Install      2 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 468 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): fuse-2.7.4-8.el5.i386.rpm                         |  83 kB     00:00    
(2/2): fuse-ntfs-3g-2009.4.4-2.el5.rf.i386.rpm           | 385 kB     00:14    
--------------------------------------------------------------------------------
Total                                            22 kB/s | 468 kB     00:21    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : fuse                                                     1/2
Installing     : fuse-ntfs-3g                                             2/2

Installed:
fuse-ntfs-3g.i386 0:2009.4.4-2.el5.rf                                        

Dependency Installed:
fuse.i386 0:2.7.4-8.el5                                                      

Complete!
[root@localhost ~]# fdisk -l

Disk /dev/hdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1309    10514511    c  W95 FAT32 (LBA)
/dev/hdc2            1310        3274    15783862+   7  HPFS/NTFS
/dev/hdc3            3275        9729    51849787+   f  W95 Ext'd (LBA)
/dev/hdc5            3275        9729    51849756    7  HPFS/NTFS

Disk /dev/hdd: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1          13      104391   83  Linux
/dev/hdd2              14         144     1052257+  82  Linux swap / Solaris
/dev/hdd3             145        9733    77023642+  83  Linux
[root@localhost ~]# mkdir /mnt/myhdc5
[root@localhost ~]# mount -t ntfs-3g /dev/hdc5 /mnt/myhdc5
[root@localhost ~]# mkdir /mnt/myhdc1
[root@localhost ~]# mount -t vfat /dev/hdc1 /mnt/myhdc1
[root@localhost ~]#

原创粉丝点击