Skip to content

Instantly share code, notes, and snippets.

@wen-long
Created July 19, 2013 09:24
Show Gist options
  • Save wen-long/6037875 to your computer and use it in GitHub Desktop.
Save wen-long/6037875 to your computer and use it in GitHub Desktop.
fontfile /boot/fonts.gz
splashimage /boot/kawayi.gz
title YUMI(可用)
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 直接从 hd2 的 MBR 启动(可用)
rootnoverify (hd2,0) //在 GRUB 能访问的磁盘区之外,必需
chainloader (hd2)+1
title 寻找 bootmgr 并启动(win7,8)(可用)
find --set-root /bootmgr
chainloader /bootmgr
title commandline
commandline
title restart
reboot
title poweroff
halt
title ARCH LINUX grub (kernel & initrd)
root (hd2,0)
kernel /vmlinuz-linuz ro root=/dev/sda3
initrd /initramfs-linux.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment