# # DO NOT EDIT THISFILE # # It is automatically generated by /usr/local/sbin/update-grub using templates # from/usr/local/etc/grub.d and settings from/usr/local/etc/default/grub # ### BEGIN /usr/local/etc/grub.d/00_header ### set default=0 set timeout=5 set root=(hd0,9) terminal console ### END /usr/local/etc/grub.d/00_header ### ### BEGIN /usr/local/etc/grub.d/10_hurd ### ### END /usr/local/etc/grub.d/10_hurd ### ### BEGIN /usr/local/etc/grub.d/10_linux ### menuentry "GNU/Linux, linux 2.6.31" { linux (hd0,9)/boot/vmlinuz-2.6.31 root=/dev/sda9 ro initrd (hd0,9)/boot/initrd-2.6.31.img } menuentry "GNU/Linux, linux 2.6.31 (single-user mode)" { linux (hd0,9)/boot/vmlinuz-2.6.31 root=/dev/sda9 ro single initrd (hd0,9)/boot/initrd-2.6.31.img } menuentry "GNU/Linux, linux 2.6.29.4-167.dt7.i586" { linux (hd0,9)/boot/vmlinuz-2.6.29.4-167.dt7.i586 root=/dev/sda9 ro initrd (hd0,9)/boot/initrd-2.6.29.4-167.dt7.i586.img } menuentry "GNU/Linux, linux 2.6.29.4-167.dt7.i586 (single-user mode)" { linux (hd0,9)/boot/vmlinuz-2.6.29.4-167.dt7.i586 root=/dev/sda9 ro single initrd (hd0,9)/boot/initrd-2.6.29.4-167.dt7.i586.img } menuentry "Windows XP" { set root=(hd0,1) chainloader +1 } ### END /usr/local/etc/grub.d/10_linux ###
其中:
1 2 3 4
menuentry"Windows XP" { set root=(hd0,1) chainloader +1 }