工作中挂在windows硬盘的时遇到错误,记录下来以供学习的人参考。
下载ntfs-3g软件:
1
|
yum
install
ntfs* -y
|
挂在ntfs硬盘:
1
2
3
4
5
6
7
|
[root@iZ28wzpkmmqZ ~]
# mount -t ntfs-3g /dev/xvdb1 /opt/
NTFS signature is missing.
Failed to
mount
'/dev/xvdb1'
: Invalid argument
The device
'/dev/xvdb1'
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?
|
提示硬盘错误,修复一下:
1
2
3
4
5
6
7
8
9
10
11
|
[root@iZ28wzpkmmqZ ~]
# ntfsfix /dev/xvdb1
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
Unrecoverable error
Volume is corrupt. You should run chkdsk.
|
磁盘还是错误,错误提示建议用chkdsk修复:
因为硬盘是别人在阿里云上打的快照然后发给我的,我也没在windows上测试是否正常。现在不得不把这块硬盘挂到windows上了,检查果然有问题,然后修复了一下。
重新挂到linux下,正常。
本文转自 王家东哥 51CTO博客,原文链接:http://blog.51cto.com/xiaodongge/1845547