移动硬盘突然在ubuntu中无法访问了,解决方法

我的硬盘是被格式化成NTFS格式了,借给同事一顿操作之后,插我电脑上就突然无法访问了,只能看到ubuntu识别到了设备/dev/sda1

使用root权限也无法挂载,报错如下:

shell 复制代码
sudo mount /dev/sda1 /media/xxx/External
$MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sda1': 输入/输出错误
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.

可以看到$MFTMirr does not match $MFT,这是这块硬盘无法访问的主要问题。是$MFT文件出现了问题,在windows下面可以使用chkdsk工具进行修复,在ubuntu下可以使用ntfsfix进行修复。

shell 复制代码
xxxx@xxxx-ubuntu:~$ sudo ntfsfix /dev/sda1 

Mounting volume... $MFTMirr does not match $MFT (record 0).
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.

使用该sudo ntfsfix /dev/sda1 该命令修复过后,硬盘就能正常打开了

相关推荐
阿星_6 分钟前
Linux Ubuntu 查看 SQLite 工具
linux·ubuntu·sqlite
疯狂成瘾者7 分钟前
海康威视 WSS 视频取流原理:6014/559 端口、Nginx 代理与 TLS 证书问题
运维·nginx·音视频
ruxshui11 分钟前
Hadoop 生产运维实战手册
大数据·运维·hadoop
Lsetea40 分钟前
OpenSSL的checkhost显示不匹配却退出0:名称检查与证书验收
linux·https·shell·ssl证书·openssl
张文君1 小时前
Ubuntu iSCSI CHAP认证与Win11挂载
linux·运维·ubuntu
一直C1 小时前
嵌入式 Linux 驱动开发学习笔记:中断、等待队列与工作队列
linux·驱动开发·嵌入式硬件·学习·imx6ull
程序员-Benothing1 小时前
Linux防火墙配置教程:iptables、firewalld、nftables、ufw
linux·运维·服务器
齐鲁大虾1 小时前
如何通过 CUPS Web 界面(http://localhost:631)安装打印机驱动
linux
Black蜡笔小新1 小时前
中央厨房配餐看不见风险高?EasyCVR可视化监管方案设计
运维·安全·easycvr
木雷坞1 小时前
Docker Compose端口映射排查:用port和inspect定位网页访问失败
运维·docker·容器