Centos 挂载windows分区 出现mount: unknown filesystem type 'ntfs' 挂载大于2T硬盘

今天帮客户挂载一个USB 移动硬盘4T,NTFS格式,遇到了一些问题,总结记录如下,

系统

#fdisk -l

有看到一个4T硬盘

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 4000.8 GB, 4000787029504 bytes
256 heads, 63 sectors/track, 484501 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0fecfae6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      266306  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.

 

 

挂载移动硬盘: 
      # mount –t ntfs /dev/sdc1 /mnt/windows
      mount: unknown filesystem type ‘ntfs’ 
      提示无法识别NTFS格式的分区。 

解决办法: 
      通过使用 ntfs-3g 来解决。 
      打开ntfs-3g的下载点http://www.tuxera.com/community/ntfs-3g-download/ ,将最新稳定(当前最新版本为ntfs-3g_ntfsprogs-2016.2.22)下载到CentOS,执行以下命令安装: 
      1) 编译安装 ntfs-3g:

# tar zxvf  ntfs-3g_ntfsprogs-2016.2.22.tgz

# cd ntfs-3g_ntfsprogs-2016.2.22

#./configure

#make

#make install

在网上找了,方法一样安上 还是不能挂载,最后在官方站 找到方法了,如下:

[root@localhost ~]# mount -t ntfs-3g /dev/sdc1 /mnt/windows 

NTFS signature is missing.
Failed to mount '/dev/sdc1': 无效的参数
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

又报错了,

 

-------------------------------------------------------------------------

试着查看4T硬盘分区#lsblk

NAME                        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdc                           8:32   0   3.7T  0 disk
|-sdc1                        8:33   0   128M  0 part
`-sdc2                        8:34   0   3.7T  0 part /mnt/windows  分区是在sdc2上
sda                           8:0    0 111.3G  0 disk
|-sda1                        8:1    0   500M  0 part /boot
`-sda2                        8:2    0 110.8G  0 part
  |-VolGroup-lv_root (dm-0) 253:0    0    50G  0 lvm  /
  |-VolGroup-lv_swap (dm-1) 253:1    0   7.8G  0 lvm  [SWAP]
  `-VolGroup-lv_home (dm-2) 253:2    0    53G  0 lvm  /home
sdb                           8:16   0  10.9T  0 disk
`-sdb1                        8:17   0  10.9T  0 part /fairpur
sr0                          11:0    1  1024M  0 rom 

 

 

[root@localhost ~]# mount -t ntfs-3g /dev/sdc2 /mnt/windows 

成功,可以看到数据了

这样就可以挂载了,如果想开机启动 ,就挂载上的话,编辑/etx/fstat 文件

如下,如果只是想拷贝一下数据就不用加自启动了:

/dev/sdc2     /mnt/windows    ntfs-3g        defaults 0 0

 最后可以用mount /mnt/windows  检测下 fstab 文件修改是否有错

 

 

拷贝数据 

#cp -r -f /mnt/windows/*  /www/  拷贝(并覆盖不提示)

如这里有提示还是要输入Y 一个一个覆盖 输入

# vi ~/.bashrc
在alias cp='cp -i'前加上"#"注释掉这行,:wq!保存推出,然后重新登陆就可以了。

查看某文件夹文件大小

#du -h --max-depth=1 /mnt/windows/images

356M    /mnt/windows/images/201608
116M    /mnt/windows/images/201609
1.5M    /mnt/windows/images/avatar
8.3G    /mnt/windows/images/buy
581G    /mnt/windows/images/content
193G    /mnt/windows/images/thumb
783G    /mnt/windows/images/  这个文件夹总计783G

可以用来对比拷贝过去的数据 有没有完成对比

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值