GRUB2 General menuentry Construction Rules(from ubuntu docs)

本文介绍了GRUB2启动菜单的配置方法,包括菜单条目的编辑、根分区设置及内核引用方式等内容。若GRUB2无法定位内核文件,则可用设备名替代UUID。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • 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 ).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值