|
本帖最后由 cchessbd 于 2013-5-11 11:02 编辑
参看我的grub菜单吧,mbr采用wee或grldr ,可以用pauly大的bootice写入
增加以下文件(default文件用于硬盘,可保存上次的选项,不过此分区会被隐藏。u盘可要可不要。)
/boot/default
/boot/grub/grldr
/grldr
#password --md5 $1$qM1n/$b7DVx3WMmvrcVq8UTI9sn1
timeout 5
default 4
rootnoverify
cat --length=0 /boot/default && default /boot/default && checkrange 0x07,0x0c,0x0b parttype && parttype 0x12
cat --length=0 /boot/grub/UNIFONT.HEX && font /boot/grub/UNIFONT.HEX
graphicsmode -1 640 480 24:32
terminal --font-spacing=0:6
title [0] Swap (hd0) (hd1)
errorcheck off
map (hd0) (hd1) && map (hd1) (hd0) && map --rehook
find --set-root --devices=h /menu.lst && configfile /menu.lst
find --set-root --devices=h /boot/grub/menu.lst && configfile /boot/grub/menu.lst
errorcheck on && commandline
title [1] Windows 系统一
fallback 4
cat --length=0 /boot/default && savedefault
checkrange 0x07,0x0c,0x0b parttype (hd0,1) && hide (hd0,1)
checkrange 0x07,0x0c,0x0b parttype (hd0,2) && hide (hd0,2)
checkrange 0x17,0x1c,0x1b parttype (hd0,0) && unhide (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader /bootmgr || chainloader /ntldr
title [2] Windows 系统二
fallback 4
cat --length=0 /boot/default && savedefault
checkrange 0x07,0x0c,0x0b parttype (hd0,0) && hide (hd0,0)
checkrange 0x07,0x0c,0x0b parttype (hd0,2) && hide (hd0,2)
checkrange 0x17,0x1c,0x1b parttype (hd0,1) && unhide (hd0,1)
rootnoverify (hd0,1)
makeactive
chainloader /bootmgr || chainloader /ntldr
title [3] RAMOS.IMG 内存系统
fallback 6
cat --length=0 /boot/default && savedefault
find --set-root --devices=h /RAMOS.IMG
map --mem /RAMOS1.IMG (hd0) || map --mem /RAMOS.IMG (hd0)
checkrange 0x07,0x0c,0x0b parttype (hd0,0) && hide (hd0,0)
checkrange 0x07,0x0c,0x0b parttype (hd0,1) && hide (hd0,1)
checkrange 0x07,0x0c,0x0b parttype (hd0,2) && hide (hd0,2)
checkrange 0x07,0x0c,0x0b parttype (hd0,3) && hide (hd0,3)
map (hd0) (hd1)
map --hook
rootnoverify (hd0,0)
chainloader /ntldr
title [4] TANGOPE 维护系统
fallback 5
f6img /BOOT/SRS
map --mem /BOOT/TANGOPE.ISO (hd32)
map --hook
cat --length=0 /boot/default || map (hd0) (hd1) && map (hd1) (hd0) && map --rehook
rootnoverify (hd32)
chainloader ()
title [5] 一键GHOST (ACT_LP)
find --set-root /BOOT/IMGS/WUYOU.GZ
map --mem /BOOT/IMGS/WUYOU.GZ (fd0)
map --hook
write --offset=11 (fd0)/DOS/DIY.BAT SET gPR=-quiet -noide
write --offset=132 (fd0)/CONFIG.SYS 2,0\n
rootnoverify (fd0)
chainloader +1
title
fallback 4
find --set-root /boot/slitaz/bzImage
kernel /boot/slitaz/bzImage rw root=/dev/null vga=normal autologin && initrd /boot/slitaz/rootfs.gz
|
|