移动硬盘突然在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 该命令修复过后,硬盘就能正常打开了

相关推荐
未济14 小时前
linux 配置环境变量
linux
傲世仙尊14 小时前
目录即文件-Ext文件系统收尾篇
linux·c语言
虎头金猫14 小时前
4K 视频总卡在公网带宽?用 N1 + OpenList 把网盘播放链路重新理顺
运维·服务器·网络·python·容器·beautifulsoup·pandas
_艾伦 耶格尔.16 小时前
进程间通信
linux
AI职业加油站16 小时前
AI智能体应用工程师证书:政策红利下的职业新风口
大数据·运维·人工智能·学习·职场发展
Liuqy-0516 小时前
Linux IO编程——静态库、动态库
linux
此冬歌咏17 小时前
K8s 节点故障实战:优雅驱逐 31 秒,硬故障 331 秒,以及那个永远 Pending 的 Pod
运维·k8s
彧azz17 小时前
Linux 环境下 Redis 学习总结:数据类型、持久化、锁、事务、主从与缓存问题
linux·redis·笔记·学习·面试
-梅17 小时前
linux(8) 软硬链接
linux·运维·服务器
AIgorithmGEEK18 小时前
[Linux]线程三部曲(上):一个执行流的诞生——从操作系统一路拆到 pthread_create
linux·线程·pid