当我以正常模式或运行级别1引导我的机器时,它会抛出以下错误,并且我无法启动机器:
checking filesystems
/dev/MyGroup/LogVol00: UNEXPECTED INCONSISTENCY; RUN fsck MANNUALLY
(i.e., without -a or -p options)
\*** An error occured during the file system check
\*** Dropping you to a shell; the system will reboot
\*** when you leave the shell
Give root password for maintenance (or type Control-D to continue):我输入密码并运行fsck和e2fsck,但两者都给出了相同的错误格式,如下所示:
(Repair filesystem) 1 # fsck
fsck 1.39 (29-May-2006)或
(Repair filesystem) 1 # e2fsck -y /dev/MyGroup/LogVol00
e2fsck 1.39 (29-May-2006)
/dev/MyGroup/LogVol001: clean, 141289/1402144 files, 804207/1400832 blocks
e2fsck 1.39 (29-May-2006)
The filesystem size of the device is 131072 blocks
Either the superblock or the partition table is likely to be corrupt!现在,我决定按以下方式使用备用超级块:
(Repair filesystem) 6 #dumpe2fs /dev/MyGroup/LogVol00 | grep -i superblock若要通过替代超级块修复文件系统,请使用以下命令:
(Repair filesystem) 7 #e2fsck -f -b 8193 /dev/MyGroup/LogVol00在使用所有备用超级块之后,我将得到如下所示的相同错误消息:
e2fsck 1.39 (29-May-2006)
/dev/MyGroup/LogVol00: recovering journel
e2fsck: unable to set superblock flags on /dev/MyGroup/LogVol00:如何解决这类问题?
发布于 2010-12-01 12:39:16
您没有提到在重新启动并获得错误之前正在进行配置更改。如果你在做改变,那可能会给你一个线索,让你知道该去哪里找。但是,假设这只是在没有更改任何配置的情况下发生的。
首先,您可能有一个真正的磁盘问题。的输出。
dmesg命令,并查看在运行e2fsck命令后是否会列出任何问题。
如果没有显示任何可能的原因,那么检查逻辑卷的状态。使用
lvdisplay /dev/MyGroup/LogVol00这将列出许多事情。特别是查看输出中的LV写访问、LV状态和"LV大小“条目。只读访问或错误的分区大小会导致事情出错。
https://unix.stackexchange.com/questions/4467
复制相似问题