grub条目示例

https://wiki.archlinux.org/index.php/GRUB#Install_to_disk


/boot/grub/menu.lst
default=0

timeout=5



title  Arch Linux Stock Kernel

root   (hd0,0)

kernel /vmlinuz-linux root=/dev/sda2 ro

initrd /initramfs-linux.img



title  Arch Linux Stock Kernel Fallback

root   (hd0,0)

kernel /vmlinuz-linux root=/dev/sda2 ro

initrd /initramfs-linux-fallback.img

/boot/grub/grub.cfg
set default='0'; if [ x"$default" = xsaved ]; then load_env; set default="$saved_entry"; fi

set timeout=5



menuentry 'Arch Linux Stock Kernel' {

  set root='(hd0,1)'; set legacy_hdbias='0'

  legacy_kernel   '/vmlinuz-linux' '/vmlinuz-linux' 'root=/dev/sda2' 'ro'

  legacy_initrd '/initramfs-linux.img' '/initramfs-linux.img'

}



menuentry 'Arch Linux Stock Kernel Fallback' {

  set root='(hd0,1)'; set legacy_hdbias='0'

  legacy_kernel   '/vmlinuz-linux' '/vmlinuz-linux' 'root=/dev/sda2' 'ro'

  legacy_initrd '/initramfs-linux-fallback.img' '/initramfs-linux-fallback.img'

}

你可能感兴趣的:(grub)