解决ubuntu根文件系统启动时遇到的kernel panic问题中 no working init found

在我使用网上的根文件系统制作的ubuntu文件,启动过程中遇到了这样一个麻烦

 Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

经过查找发现,Ubuntu18以后的版本,并不会自带sbin/init等初始化启动文件,而我使用的内核版本为linux-5.19,启动的是system V的启动,所以需要在根文件系统中自行加入。
需要进入根文件系统进行安装systemd
命令如下
apt-get update -y apt-get install -y systemd
安装成功后发现,sbin/init出现了。

更正一下
apt update
apt-get install -y init

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
当你在启动过程遇到"Kernel panic - not syncing: No working init found"错误时,这通常表示系统无法找到有效的初始化程序(init)。这可能是由于文件系统损坏、启动参数错误或引导配置问题引起的。你可以尝试以下解决方法: 1. 确保你的文件系统正确配置并没有损坏。你可以使用文件系统检查工具(如fsck)来检查和修复文件系统错误。 2. 检查引导参数是否正确设置。你可以尝试通过传递init=选项给内核来解决问题。这可以在启动时的bootloader配置文件进行设置,或者在启动时手动输入。具体的设置方法可以参考Linux文档的相关指导。 3. 检查引导配置是否正确。有时,引导配置文件的错误也会导致该错误。你可以检查引导配置文件(如grub.cfg)initrd和root选项,确保它们指向正确的文件和分区。 4. 如果你在虚拟机遇到此错误,你可以尝试创建一个新的兼容性虚拟机或使用另一个vmx文件来修复问题。 综上所述,当遇到"Kernel panic - not syncing: No working init found"错误时,你可以通过检查文件系统、引导参数和引导配置来解决问题。如果是在虚拟机遇到此错误,你可以尝试创建新的虚拟机或使用其他vmx文件来解决问题。希望这些方法能对你有所帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [解决ubuntu文件系统启动时遇到kernel panic问题 no working init found](https://blog.csdn.net/weixin_45591821/article/details/127120316)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [petalinux启动报错:Kernel panic - not syncing: No working init found. Try passing init= option to ...](https://blog.csdn.net/buster0o/article/details/130083503)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [虚拟机黑屏end kernel panic - not syncing两种解决方式.docx](https://download.csdn.net/download/yqc0704/12083970)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值