elementary OS7 Ubuntu 22.04中硬盘挂载报错

elementary OS7 Ubuntu 22.04中硬盘挂载报错

背景

上周末安装elementaryos7的过程中将windows10的引导文件搞丢了,这两天准备修复一下,保险期间将固态硬盘上的文件备份到移动硬盘上,备份过程中出现报错的问题,再次点击也提示挂载错误,手动命令行挂载错误依旧。随即又取了一块移动硬盘继续备份,备份过错中同样的问题再次出现,觉得这个可能是个共性问题,需要处理一下了。

挂载异常硬盘查看

手动创建目录挂载

bash 复制代码
sudo mkdir -p /mnt/mydisk
sudo mount /dev/sdd2 /mnt/mydisk

异常输入出

bash 复制代码
$MFTMirr does not match $MFT (record 0).
Failed to mount '/dev/sdd2': 输入/输出错误
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.

目标

将移动硬盘接入电脑正常使用

思路

根据提示信息查找问题原因

linux 系统上,在复制移动文件时,磁盘、U盘等外接硬件设备,异常掉落(接口松动、中断),再次挂载硬盘时就会出现错误提示,硬盘分区的$MFT文件出现问题。

解决方法使用ntfsfix 工具修复

解决方法

使用命令修复,如果提示没有该命令,

bash 复制代码
ntfsfix /dev/sdb1
bash: ntfsfix: command not found...

使用命令行安装该工具

bash 复制代码
# centos
yum install ntfsfix
# ubuntu
sudo apt install ntfsfix

修复命令

说明: /dev/sdd2为本机的错误硬盘,根据自己的实际硬盘信息输入实际值。如果不知道硬盘盘符使用lsblk命令查看

bash 复制代码
sudo ntfsfix /dev/sdd2
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/sdd2 was processed successfully.

修复完毕后,再次打开硬盘,硬盘正常打开,可以对硬盘中的文件进行操作。

以上为硬盘挂载时报错的处理过程。

相关推荐
棒棒的唐30 分钟前
armbian平台ubuntu环境下telnet安装及启动,给pantherX2增加一个应急通道
linux·运维·armbian·telnetd
bug攻城狮31 分钟前
CentOS 7 设置静态 IP 地址
linux·tcp/ip·centos
纳切威40 分钟前
CentOS 7部署Zabbix5.0
linux·运维·centos·zabbix
sunshine-sm43 分钟前
CentOS Steam 9安装 MySQL 8
linux·运维·服务器·数据库·mysql·centos·centos stream
bug攻城狮44 分钟前
CentOS 7 快速检查软件包是否已安装的5种方法
linux·运维·centos
男孩李1 小时前
浅谈代理流程自动化 (APA)
运维·人工智能·自动化
尚久龙1 小时前
安卓学习 之 用户登录界面的简单实现
android·运维·服务器·学习·手机·android studio·安卓
high20112 小时前
【 运维相关】-- HTTP 压测/负载发生器之新秀 oha
运维·网络协议·http
DONG9992 小时前
ubuntu 22 安装轻量级桌面Xfce并使用xrdp远程桌面连接
linux·运维·ubuntu
呆萌小新@渊洁2 小时前
linux升级系统,重启出现Minimal BASH-like line editingis supported
linux·服务器