1.set prefix=(hdX,Y)/boot/grub
Use the values determined earlier. Example: If the Ubuntu system is on sda5, enter:set prefix=(hd0,5)/boot/grub
2.*set root=(hdX,Y)
Example:set root=(hd0,5)
3.insmod normal
Attempt to load thenormalmodule.
4.normal
Activate thenormalmodule. If successful, the GRUB 2 menu may appear.
5.set
(Optional) Review the current settings.
6.ls /boot
(Optional) Check for avmlinuzand ainitrd.imgentry.
7.insmod linux
An error message usually means the path is incorrect.
8.*linux /vmlinuz root=/dev/sdXY ro
Selects the latest kernel. Example:linux /vmlinuz root=/dev/sda5 ro
9.initrd /initrd.img
Selects the latest initrd image.
10.boot
本文提供了一套详细的步骤来帮助读者了解如何手动启动GRUB2。从设置前缀到选择内核,每一步都至关重要。文章解释了如何通过一系列命令来定位并加载必要的模块,最终引导系统进入GRUB2菜单。

4095

被折叠的 条评论
为什么被折叠?



