【已解决】Ubuntu:Target file system doesn‘t have sbininit启动错误,利用fsck修复分区

tech2026-01-13  13

Ubuntu启动时候错误,导致服务启动不了:

mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /dev on /root/dev 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 file system doesn't have /sbin/init No init found. Try passing init= bootarg Busybox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash) Enter 'help' for a list of built-in commands (initramfs) _

原因: 由于异常断电或是其他原因,再次启动时,导致文件系统出现了问题,不能挂载

解决:制作一个启动盘Slax,然后fsck修复分区

下载Slax:http://www.slax.org/zhCN/download.php,我选择的64位下载U盘启动盘制作工具:https://pan.baidu.com/s/1NrXVG6pdpcMfmKVzYQZhYQ 提取码:t3v9格式化U盘,制作启动盘,选择完后开始 双击/slax/boot/bootinst.bat创建向导,成功后就可以了 设置服务器的BIOS启动项,选择USB,进入slax打开终端命令行,输入 fdisk -l ,回车,查看系统盘放在哪个目录,这个自行判断吧,没有拍图。假如系统所在分区是在sda1,那么执行 fsck /dev/sda1出现 Free blocks count wrong for group #3(31232, counted=31224). Fix? y 回车 根据实际情况,可能还需要再执行几次fsck,直到最后提示“clean”为止,表示该文件系统已经完好无损:重启服务器,发现系统已经恢复
最新回复(0)