GRUB2 General menuentry Construction Rules(from ubuntu docs)

来源:互联网 发布:经传全套指标公式源码 编辑:程序博客网 时间:2024/06/05 05:33
  • The first line must start with menuentry and end with {

  • The area between the quotation symbols is what will appear on the GRUB 2 menu. Edit as desired.
  • The last line of the menuentry must be }

  • Do not leave empty spaces at the end of lines

  • The set root= line should point to the GRUB 2 /boot location ( (hdX,Y) )

  • The search line's --set has been replaced in GRUB 1.99 (Ubuntu 11.04 and later) with --set-root=. Using --set will generate a non-fatal error message which displays very briefly before the menu appears.

  • The root reference in in the linux line 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 ).