在 centos 下挂载ntfs分区

来源:互联网 发布:置信度传播算法介绍 编辑:程序博客网 时间:2024/06/07 03:14

centos默认不能挂载ntfs分区。

解决方法:

1、安装ntfs-3g,下载地址http://www.tuxera.com/community/ntfs-3g-download/

2、安装之后,使用命令fdisk -l 看你想挂载得ntfs分区。

[root@localhost jale]# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0xf0b1ebb0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         249     1998848   82  Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2             250       38913   310566913    f  W95 Ext'd (LBA)
/dev/sda5            6529       18310    94632288+   7  HPFS/NTFS
/dev/sda6           18311       32289   112286286    7  HPFS/NTFS
/dev/sda7           32290       38913    53204992   83  Linux
/dev/sda8             250        6528    50435072   83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 15.5 GB, 15496445952 bytes
1 heads, 36 sectors/track, 840736 cylinders
Units = cylinders of 36 * 512 = 18432 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd1c4d1c4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *       18888      840736    14793280    c  W95 FAT32 (LBA)

比如我想挂载/dev/sda5这个分区

[root@localhost jale]# mkdir /media/windows
[root@localhost jale]# mount -t ntfs-3g /dev/sda5 /media/windows/
这样就挂载成功了




原创粉丝点击