解决e2fsck版本太低造成的不能启动的问题:fsck.ext3:Filesystem has unsupported feature(s)

本文介绍了解决因e2fsck版本过低导致系统无法启动的问题。通过替换旧版本e2fsck文件或注释启动脚本中的fsck调用,成功修复了Fedora与Red Hat双系统环境下的启动故障。

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

我也遇到了这个问题,到网上搜到的下面这个帖子:

转载请注明原创出处:HateMath的网上田园(http://blog.vckbase.com/hatemath/

1. 症状

PC上已经已装有Fedora 4,出于开发需要又装Red ha t 9.
FC4(hda7) & RH9(hda6) 都是ext3 文件格式.
装好后配置启动菜单,然后重启进FC4,正常进入,再重启进RH9,也正常进入.

开始配置RH9,什么系统、网络、程序、多媒体、等等、等等 - --麻烦啊.
折腾好了后,重启,出现错误:
........
checking root filesystem
fsck.ext3:filesystem has unsupported feature(s) (/12)
e2fsck:get a newer version of e2fsck!

2. 解决方法

将Fedora4中的 /sbin/e2fsck 文件拷贝到RedHat9的/sbin/目录下,覆盖原来的(最好备份一下)e2fsck 文件.
重启,一切恢复正常。

3. 探询原因
RedHat9中的e2fsck版本较低。

4.闲聊
你 看,解决方法好简单啊。可是你知道吗,我搞了3个多小时。用关键词“fsck.ext3:Filesystem has unsupported feature(s) ”google到的70多个外文网页,找了几个没合适的,中文的没有。所以,这下你理解我为什么用它做随笔的标题了吧。希望对别人有用。

(完)

======================================

但是我的fc4不在真实物理盘里,是vmware直接打开vmx文件,我在出错后命令行里看到的sda也只看到了它自己的,在根目录下也只搜索到了/sbin/e2fsck,不知道用哪个来替换了。
所 以从启动脚本开始出发。看/etc/rc.d/rc.sysinit,在busybox里init命令调用到/etc/inittab会调用到/etc /rc.d/rc.sysinit,在里面搜索fsck的命令在哪里调用,既然是e2fsck版本的问题,只是检查文件系统有没有坏,那么我不要这条了, 反正如果e2fsck检查出坏了也只是提示出错,没坏检查不检查不都差不多吗,或者先去掉sysinit里fsck部分,让桌面启动起来,再下载替换掉 fsck命令也应该是可以的。

所以我注释了/etc/rc.d/rc.sysinit 第387-429行,也就是执行了fsck命令,但是不处理它的返回值,问题就解决了。
修改脚本前需要把根文件系统设置为rw,不然是readonly
mount -o remount,rw /
修改完后重启

我不明白为什么非物理盘安装的ubuntu会影响到非物理盘安装的FC4
翻译OTE: As of HBase version 2.0, the hbck tool is significantly changed. In general, all Read-Only options are supported and can be be used safely. Most -fix/ -repair options are NOT supported. Please see usage below for details on which options are not supported. ----------------------------------------------------------------------- Usage: fsck [opts] {only tables} where [opts] are: -help Display help options (this) -details Display full report of all regions. -timelag <timeInSeconds> Process only regions that have not experienced any metadata updates in the last <timeInSeconds> seconds. -sleepBeforeRerun <timeInSeconds> Sleep this many seconds before checking if the fix worked if run with -fix -summary Print only summary of the tables and status. -metaonly Only check the state of the hbase:meta table. -sidelineDir <hdfs://> HDFS path to backup existing meta. -boundaries Verify that regions boundaries are the same between META and store files. -exclusive Abort if another hbck is exclusive or fixing. Datafile Repair options: (expert features, use with caution!) -checkCorruptHFiles Check all Hfiles by opening them to make sure they are valid -sidelineCorruptHFiles Quarantine corrupted HFiles. implies -checkCorruptHFiles Replication options -fixReplication Deletes replication queues for removed peers Metadata Repair options supported as of version 2.0: (expert features, use with caution!) -fixVersionFile Try to fix missing hbase.version file in hdfs. -fixReferenceFiles Try to offline lingering reference store files -fixHFileLinks Try to offline lingering HFileLinks -noHdfsChecking Don&#39;t load/check region info from HDFS. Assumes hbase:meta region info is good. Won&#39;t check/fix any HDFS issue, e.g. hole, orphan, or overlap -ignorePreCheckPermission ignore filesystem permission pre-check NOTE: Following options are NOT supported as of HBase version 2.0+. UNSUPPORTED Metadata Repair options: (expert features, use with caution!) -fix Try to fix region assignments. This is for backwards compatiblity -fixAssignments Try to fix region assignments. Replaces the old -fix -fixMeta Try to fix meta problems. This assumes HDFS region info is good. -fixHdfsHoles Try to fix region holes in hdfs. -fixHdfsOrphans Try to fix region dirs with no .regioninfo file in hdfs -fixTableOrphans Try to fix table dirs with no .tableinfo file in hdfs (online mode only) -fixHdfsOverlaps Try to fix region overlaps in hdfs. -maxMerge <n> When fixing region overlaps, allow at most <n> regions to merge. (n=5 by default) -sidelineBigOverlaps When fixing region overlaps, allow to sideline big overlaps -maxOverlapsToSideline <n> When fixing region overlaps, allow at most <n> regions to sideline per group. (n=2 by default) -fixSplitParents Try to force offline split parents to be online. -removeParents Try to offline and sideline lingering parents and keep daughter regions. -fixEmptyMetaCells Try to fix hbase:meta entries not referencing any region (empty REGIONINFO_QUALIFIER rows) UNSUPPORTED Metadata Repair shortcuts -repair Shortcut for -fixAssignments -fixMeta -fixHdfsHoles -fixHdfsOrphans -fixHdfsOverlaps -fixVersionFile -sidelineBigOverlaps -fixReferenceFiles-fixHFileLinks -repairHoles Shortcut for -fixAssignments -fixMeta -fixHdfsHoles Replication options -fixReplication Deletes replication queues for removed peers -cleanReplicationBrarier [tableName] clean the replication barriers of a specified table, tableName is required 25/05/30 11:00:17 INFO zookeeper.ClientCnxn: Opening socket connection to server cloudcdp03.hadoop.com/172.21.35.195:2181. Will not attempt to authenticate using SASL (unknown error) 25/05/30 11:00:17 INFO zookeeper.ClientCnxn: Socket connection established, initiating session, client: /172.21.35.166:34326, server: cloudcdp03.hadoop.com/172.21.35.195:2181 25/05/30 11:00:17 INFO zookeeper.ClientCnxn: Session establishment complete on server cloudcdp03.hadoop.com/172.21.35.195:2181, sessionid = 0xff9503965e37ba94, negotiated timeout = 60000 25/05/30 11:00:17 INFO zookeeper.ZooKeeper: Session: 0xff9503965e37ba94 closed 25/05/30 11:00:17 INFO zookeeper.ClientCnxn: EventThread shut down
05-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值