PC 无法启动并显示“未找到初始化”

PC 无法启动并显示“未找到初始化”

当我打开电脑时,它显示:

情况1

BusyBox v1.17.1 (ubuntu 1:1.17.1-10 ubuntu1) buil-in shell (ash)
enter 'help' for a list of built-in commands.
(initramfs)_

案例 2

在恢复模式下,它显示:

706-4e 6e-9416-17889748 bbd onb /root failed:input/output error
Begin:running/scripts/local booting...done
done.
Begin:running/scripts/local booting...mount:mounting/dev on /root/dev failed :no such file or directory
done.
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 a requested /sbin/init.
No init found. Try passing init=bootarg.

BusyBox v1.17.1 (ubuntu 1:1.17.1-10 ubuntu1) buil-in shell (ash)
enter 'help' for a list of built-in commands.
(initramfs)_
[ 34.664739] atkbd serio0: unknown key pressed (translated set2, code 0xd9 on isa0060/serio0)....

答案1

  1. 从 Ubuntu Live CD 启动;

  2. 打开/运行终端;

  3. 输入:(sudo fdisk -l获取设备名称)然后按Enter

    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: **********
    
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 30238 242886703+ 83 Linux
    /dev/sda2 30239 30401 1309297+ 5 Extended
    /dev/sda5 30239 30401 1309266 82 Linux swap / Solaris
    

    根据以上内容,我朋友的系统的设备名称为:/dev/sda1

  4. 输入:sudo fsck /dev/sda1然后按Enter

  5. 重新启动系统并正常启动。

来源

答案2

以上内容实际上并未涵盖此错误的所有基础。

您可能需要从 Live CD 启动,然后 chroot 进入系统。(bind mount /dev、mount /proc),然后运行update-grub,然后grub-install /dev/root-device

我已经多次这样做了,它确实需要变得更容易,并且当你无法运行目标的二进制文件时也可以实现,我只能通过破解 grub-mkconfig 脚本来做到这一点,这是一个 uber-PITA。

相关内容