linux xfs文件系统故障修复,Linux 下XFS 文件系统修复指导书

这篇博客介绍了在Linux系统中遇到XFS文件系统故障时如何进行修复。在修复过程中,使用fsck工具检查文件系统,发现超级块损坏,尝试使用备用超级块。然而,超级块仍然无效,提示可能需要运行e2fsck并指定备用超级块。在后续的修复阶段,发现了实时位图和总结inode的不一致,进行了相应的重置。最后,由于文件系统中有待回放的重要元数据更改,需要挂载文件系统来播放日志,然后在重新运行xfs_repair之前卸载。如果无法挂载,可以使用-L选项销毁日志并尝试修复,但需要注意这可能导致数据丢失。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

fsck from util-linux 2.23.2

e2fsck 1.42.9 (28-Dec-2013)

ext2fs_open2: Bad magic number in super-block

fsck.ext2: Superblock invalid, trying backup blocks...

fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a correct ext2

filesystem. If the device is valid and it really contains an ext2

filesystem (and not swap or ufs or something else), then the superblock

is corrupt, and you might try running e2fsck with an alternate superblock:

e2fsck -b 8193

phase l - find and verify superblock

bad primary superblock - bad magic number

attempting to find secondary superblock

.........................................................................................................................................................................................................

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值