Centos 挂载NTFS格式硬盘

本文介绍在CentOS系统中挂载NTFS格式硬盘的方法。包括使用fdisk命令查看硬盘信息、安装ntfs-3g软件包以及具体挂载步骤。
  • 背景说明
  • 挂载方法

 

一、背景说明

 

    近日在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

 

至此、完成。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值