-
The first line must start withmenuentryand end with{
- The area between the quotation symbols is what will appear on the GRUB 2 menu. Edit as desired.
-
The last line of themenuentrymust be}
-
Donotleave empty spaces at the end of lines
-
Theset root=line should point to the GRUB 2 /boot location ( (hdX,Y) )
-
Thesearchline's--sethas been replaced in GRUB 1.99 (Ubuntu 11.04 and later) with--set-root=. Using--setwill generate a non-fatal error message which displays very briefly before the menu appears.
-
Therootreference in in thelinuxline should point to the system partition.
- If GRUB 2 cannot find the referenced kernel, try replacing the UUID with the device name (example: /dev/sda6 ).
GRUB2 General menuentry Construction Rules(from ubuntu docs)
最新推荐文章于 2021-06-11 22:50:50 发布
本文介绍了GRUB2启动菜单的配置方法,包括菜单条目的编辑、根分区设置及内核引用方式等内容。若GRUB2无法定位内核文件,则可用设备名替代UUID。
1756

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



