小编And*_*rej的帖子

定期内核更新后卡在 GRUB 命令提示符下

我正在运行 Debian Wheezy。更新管理器建议安装内核更新。更新后,我重新启动系统,但没有列出所有内核(引导加载程序),而是给了我一个 GRUB 命令提示符:

grub>
Run Code Online (Sandbox Code Playgroud)

我该怎么办?在此先感谢您的指点。

PS也许它会很有用:

grub> ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (hd1)
Run Code Online (Sandbox Code Playgroud)

我的解决方案

使用 Live CD 启动。打开终端并挂载根分区(仔细检查您是否挂载了正确的分区):

mount /dev/sda1 /mnt
Run Code Online (Sandbox Code Playgroud)

还挂载:

mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount  -t proc /proc /mnt/proc
Run Code Online (Sandbox Code Playgroud)

(检查您是否挂载了正确的分区:打开 nautilus 并导航到/mnt)。

执行:

chroot /mnt
Run Code Online (Sandbox Code Playgroud)

最后运行:

update-grub
Run Code Online (Sandbox Code Playgroud)

exit从终端退出 ( ) 并重新启动。

linux boot debian grub kernel

5
推荐指数
1
解决办法
2万
查看次数

标签 统计

boot ×1

debian ×1

grub ×1

kernel ×1

linux ×1