No init found. Try passing init=bootarg.

哥们电脑在断电后就再也没起来。报如下的错误

No init found. Try passing init=bootarg.

Ubuntu 9.10 will not boot! System froze this morning, I restarted and it is now failing to boot. Starts loading grub and I get this message:

-----------------------------------------------------------------
mount: mounting /dev/disk/by-uuid/04aa3697-7bc0-45b5-b86a-77a1e6534bd5 on /root failed: invalid argument
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /dev on /root/sys failed: no such file or directory
mount: mounting /sys on /root/sys failed: no such file or directory
mount: mounting /proc on /root/proc failed: no such file or directory
Target filesystem doesn't have /sbin/init.
No init fount. Try passing init= bootarg.

BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built in shell (ash)
Enter 'help' for a list of build in commands

--------------------------------------

解决办法。按照网上搜索的办法。只要运行fsck,检查相应的分区,修复相应的分区, 就可以了。

问题是 如果你也遇到这个问题,那么你一定也在 busyBox 环境下, 貌似是一个内置的shell环境(BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built in shell (ash)) ,那fsck命令在什么地方哪?

如果你有光盘,那就挂载它吧。里面一定有这个命令。然后,就是根据具体情况来修复了。比如哥们的电脑分区如下

sdc7 swap

sdc8 boot

adc9 home。于是fsck sdc8 和fsck sdc9,到此 问题就解决了。

但是实际情况是我们没系统盘,那么如果你硬盘上有iso镜像,也是可以的 mount 就ok了。

但实际情况是连iso都被他删除了。我只能把他的硬盘挂载在我的电脑上。因为我的电脑是centos5的,分区格式是ext2 ,ext3。因此fsck最终也只是运行 fsck.ext2 和fsck.ext3 。因此上网一查 ext4 支持 https://ext4.wiki.kernel.org/index.php/Ext4_Howto#For_people_who_are_running_RHEL 讲解的很明白了, yum install e4fsprogs 但是也是有条件的:To use it, update to 5.3 or later, boot into 2.6.18-128.el5 or higher。最终成功修复。万事大吉。

希望你们也可以解决

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值