Skip to content

Instantly share code, notes, and snippets.

@wen-long
Created July 19, 2013 18:26
Show Gist options
  • Save wen-long/6041297 to your computer and use it in GitHub Desktop.
Save wen-long/6041297 to your computer and use it in GitHub Desktop.
fontfile /boot/fonts.gz
splashimage /boot/X.XPM.GZ
color white/light-blue yellow/cyan light-gray/magenta white/light-red
title 多系统安装 YUMI(可用)(U盘第一分区 PBR)
rootnoverify (hd0,0)
chainloader +1 //同chainloader (hd0,0)+1
title win8 (hd1,0)
rootnoverify (hd1,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 ARCH LINUX (hd2)
rootnoverify (hd2,0) //在 GRUB 能访问的磁盘区之外,必需
chainloader (hd2)+1
title XUbuntu (hd2,3)
rootnoverify (hd2,3)
chainloader (hd2,3)+1
title Archlinux grub (kernel & initrd)
root (hd2,0)
kernel (hd2,0)/vmlinuz-linux ro root=/dev/sda3
initrd (hd2,0)/initramfs-linux.img
//title 寻找 bootmgr 并启动(win7,8)(可用)
//find --set-root /bootmgr
//chainloader /bootmgr
title 打开命令行
commandline
title 重启
reboot
title 关机
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