俺乃小潜mg 发表于 2024-9-11 18:06:13

linux非正常关机操作导致挂载硬盘报mount: wrong fs type, bad option, bad superblock on xxxxxx 的

由于笔者的服务器机房电源损坏导致系统非正常关机操作导致数据盘损坏无法自动挂载,下面铁网维说下修复硬盘过程!
相关报错内容:
mount: wrong fs type, bad option, bad superblock on /dev/xvdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog – try
dmesg | tail or so
如下图:


修复文件系统:我们需要修复硬盘是/dev/xvdb1
# fsck -t ext3 /dev/xvdb1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
fsck.ext3: Superblock invalid, trying backup blocks…
/dev/xvdb1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inode 30, i_size is 140902400, should be 187166720. Fix? yes
Inode 30, i_blocks is 275480, should be 365928. Fix? yes
/dev/xvdb1: e2fsck canceled.
/dev/xvdb1: ***** FILE SYSTEM WAS MODIFIED *****
好了,到此修复成功我们重新执行mount -a重新挂载数据盘,大功告成!
页: [1]
查看完整版本: linux非正常关机操作导致挂载硬盘报mount: wrong fs type, bad option, bad superblock on xxxxxx 的