`

Centos 挂载NTFS格式硬盘

 
阅读更多
  • 背景说明
  • 挂载方法

 

一、背景说明

 

    近日在centos主机上挂载一块硬盘,使用mount后提示mount: unknown filesystem type 'ntfs'可知此块硬盘是ntfs格式的,那么只能通过mount -t选项来指定硬盘类型为nfs。

 

 

二、挂载方法

 

1.使用fdisk命令查看硬盘名称

# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 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: 0x9467bbdf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       12774   102400000   83  Linux
/dev/sda3           12774       60802   385780736   82  Linux swap / Solaris

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0x66666666

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       30401   244196001    7  HPFS/NTFS

 可见我们需要挂载的硬盘是/dev/sdb1

 

 

2.安装ntfs支持

http://www.tuxera.com/community/ntfs-3g-download/网站下载最新的ntfs-3g源码包。

 

安装ntfs-3g

# tar -zxvf ntfs-3g_ntfsprogs-2013.1.13.gz
# cd ntfs-3g_ntfsprogs-2013.1.13
# ./configure
# make
# make install

 

 

3.挂载ntfs硬盘

# mkdir /windows
# mount -t ntf3-3g /dev/sdb1 /windows

 

至此、完成。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics