Linux—挂载移动硬盘文件系统修复
1. 报错
如题,之前将移动硬盘挂载在Debian服务器和Ubuntu台式机上,在Debian中操作生成了一下md5文件的text文本,想要删除时出现下面报错:
ls: cannot access merge.raw.SNP.vcf.gz.tbi.md5.txt: Input/output error
ls: cannot access merge.vcf.gz.md5.txt: Input/output error
ls: cannot access merge.vcf.gz.tbi.md5.txt: Input/output error
ls: cannot access P01.md5sum.sh: Input/output error
ls: cannot access P01.md5sum.sh.md5.txt: Input/output error
查询发现是文件系统损坏:
This means your filesystem is damaged, Input/Output errors
during filesystem access attempts generally mean hardware issues.
2. 解决方法
将硬盘从服务器卸载下来,插入Windows 10电脑(联想小新pro 13),弹窗时选择扫描修复,稍等片刻即可恢复正常。这时,问题文件被清理,注意操作过程中数据是否丢失,我的没问题。
以上,记录一下。
参考
https://unix.stackexchange.com/questions/292507/rm-cannot-remove-input-output-error-in-part-of-folder-in-a-permanently-mounted