Skip to content

Instantly share code, notes, and snippets.

@bitdust
Created December 13, 2014 08:33
Show Gist options
  • Save bitdust/3a54ec3db8b3b8148079 to your computer and use it in GitHub Desktop.
Save bitdust/3a54ec3db8b3b8148079 to your computer and use it in GitHub Desktop.
可引导iso文件(PE,liveCD)的grub目录文件
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.
#
# It must be UTF-8 encoding for multi-lingual support. Font lines can be
# appended to the file. The font lines should be in the unifont.hex format.
color blue/green yellow/red white/magenta white/magenta
timeout 30
## menu border color
color border=0xEEFFEE
## set vbe mode
graphicsmode -1 640:800 480:600 24:32 || graphicsmode -1 -1 -1 24:32
## set unifont
font /boot/unifont.hex.gz
default /default
## Menu AutoNumber
write 0x8274 0x2001
title Win8PE53标准版.iso
find --set-root --ignore-floppies --ignore-cd /boot/Win8PE53标准版.iso
map /boot/Win8PE53标准版.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2
title 天意U盘维护系统技术员版V2.1.iso
find --set-root --ignore-floppies --ignore-cd /boot/天意U盘维护系统技术员版V2.1.iso
map /boot/天意U盘维护系统技术员版V2.1.iso (0xff)
map --hook
chainloader (0xff)
savedefault --wait=2
title ubuntu-14.04.1-desktop-amd64.iso
find --set-root --ignore-floppies --ignore-cd /boot/Ubuntu/ubuntu-14.04.1-desktop-amd64.iso
kernel /boot/Ubuntu/vmlinuz.efi boot=casper iso-scan/filename=/boot/Ubuntu/ubuntu-14.04.1-desktop-amd64.iso
initrd /boot/Ubuntu/initrd.lz
boot
title reboot (重启)
reboot
title halt (关机)
halt
title commandline
commandline
# In the end, font lines for unicode chars in unifont.hex format.
# It should include all unicode chars used in the above menu code.
# Surely normal ASCII chars are not necessary to be included here.
0000:0000000000000000000000000000000000000000000000000000000000000000
6807:100011FC10001000FC0013FE3020382055285524922412221422102010A01040
51C6:01404120212023FE022016201BFC1220222023FCE2202220222023FE22000200
7248:0808481C49E0490049007DFC41444144794449284928491049104A284A448C82
5929:00003FF80100010001000100FFFE01000280028004400440082010102008C006
610F:01003FF808200440FFFE00001FF010101FF010101FF002005104511290120FF0
76D8:020004001FF011101090FFFE10101210215040203FF8244824482448FFFE0000
7EF4:10A01090208025FE4510FB1015FC21104110FDFC411001101D10E1FE41000100
62A4:10401020102011FEFD021102110215FE19023100D10011001200120054002800
7CFB:00F83F000400082010403F800100061018087FFC010409201110210845040200
7EDF:10401020202023FE4840F888110423FE4092F890409000901912E112420E0400
6280:10201020102013FEFC201020102015FC18843088D04810501020105051882606
672F:01000120011001107FFC03800540054009201110210841048102010001000100
5458:00001FF0101010101FF000003FF82008200821082108210802C004301808E004
91CD:001000F83F000100FFFE01001FF011101FF011101FF001003FF80100FFFE0000
542F:010000801FFC1004100410041FFC10001000100017FC24042404440487FC0404
5173:10100810082000003FF8010001000100FFFE010002800280044008203018C006
673A:100011F011101110FD10111031103910551055109110111211121212120E1400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment