Skip to content

Instantly share code, notes, and snippets.

@wen-long
Created July 19, 2013 09:24

Revisions

  1. wen-long created this gist Jul 19, 2013.
    42 changes: 42 additions & 0 deletions menu.lst
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    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