Skip to content

Instantly share code, notes, and snippets.

@wen-long
Created December 8, 2013 14:02
Show Gist options
  • Save wen-long/7857975 to your computer and use it in GitHub Desktop.
Save wen-long/7857975 to your computer and use it in GitHub Desktop.
正在使用的menu
fontfile /boot/fonts.gz
splashimage /boot/X.XPM.GZ
//color white/light-blue yellow/cyan light-gray/magenta white/light-red
default 0
timeout 3
title win8
rootnoverify (hd0,0)
chainloader +1 //同chainloader (hd1,0)+1
//title 直接从 hd0 的 MBR 启动
//chainloader (hd0)+1 //无需rootnoverify (hd0,0)
//title 直接从 hd1 的 MBR 启动
//rootnoverify (hd1,0) //在 GRUB 能访问的磁盘区之外,必需
//chainloader (hd1)+1
title ubuntu
rootnoverify (hd1,0) //在 GRUB 能访问的磁盘区之外,必需
chainloader (hd1,0)+1
//title Archlinux grub (kernel & initrd)
//root (hd1,0)
//kernel (hd1,0)/vmlinuz-linux ro root=/dev/sda3
//initrd (hd1,0)/initramfs-linux.img
//title 寻找 bootmgr 并启动(win7,8)(可用)
//find --set-root /bootmgr
//chainloader /bootmgr
title reboot
reboot
title halt
halt
//title XP ntldr
//chainloader (hd1,0)/ntldr
//
//title XP io.sys
//chainloader (hd1,0)/io.sys
//title XP
//
//title XP bootmgr
//chainloader (hd1,0)/bootmgr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment