|
2#
楼主 |
发表于 2013-1-23 11:49:07
|
只看该作者
---------------------------menu.lst-------------------------------------
default 3
timeout 2
#color black/black red/black
title RAMOS
find --set-root /sys/RAMOS.IMG
map --mem /sys/RAMOS.IMG (hd0)
map --hook
rootnoverify (hd0,0)
chainloader +1
title puppy
find --set-root /sys/puppy/vmlinuz
kernel /sys/puppy/vmlinuz
initrd /sys/puppy/initrd.gz
boot
title pe
find --set-root /sys/pe.iso
map --mem /sys/pe.iso (0xff)
map --hook
chainloader (0xff)
title vboot
find --set-root /vbootldr
kernel /vbootldr
title vhd8
find --set-root /bootmgr
chainloader /bootmgr
-----------------------------grub.cfg------------------------------------------------------------
menuentry "XP VHD" {
vboot harddisk="(hd0,2)/sys/WINXP.VHD"
}
menuentry "fedora-13-i686.vhd" {
insmod vhd
vhd vhd0 (hd0,2)/sys/fedora-13-i686.vhd --partitions
linux (vhd0,1)/boot/vmlinuz-2.6.33.3-85.fc13.i686 root=/dev/sda2 vloop=/sys/fedora-13-i686.vhd vlooppart=p1 quiet splash
initrd (vhd0,1)/boot/initramfs-2.6.33.3-85.fc13.i686.img
}
menuentry "ubuntu-1010-desktop-i386.vhd" {
insmod vhd
vhd vhd0 (hd0,2)/sys/ubuntu-1010-desktop-i386.vhd --partitions
linux (vhd0,1)/boot/vmlinuz-2.6.35-28-generic root=/dev/sda2 vloop=/sys/ubuntu-1010-desktop-i386.vhd vlooppart=p1 quiet splash
initrd (vhd0,1)/boot/initrd.img-2.6.35-28-generic
}
menuentry "mint-9-gnome-i386.vhd " {
insmod vhd
vhd vhd0 (hd0,2)/sys/mint-9-gnome-i386.vhd --partitions
linux (vhd0,1)/boot/vmlinuz-2.6.32-21-generic root=/dev/sda2 vloop=/sys/mint-9-gnome-i386.vhd vlooppart=p1 quiet splash
initrd (vhd0,1)/boot/initrd.img-2.6.32-21-generic
}
----------------------------------------------------------
另外如果把vboot安装到mbr的话,是可以做到只使用一个菜单。虽然也要调用grub4dos,但是menu.lst就不要了,只要grub.cfg就行,但是写法有点复杂,感兴趣的可以对比。
-----------------------------grub.cfg------------------------------------------------------------
menuentry "XP VHD" {
vboot harddisk="(hd0,2)/sys/WINXP.VHD"
}
menuentry "fedora-13-i686.vhd" {
insmod vhd
vhd vhd0 (hd0,2)/sys/fedora-13-i686.vhd --partitions
linux (vhd0,1)/boot/vmlinuz-2.6.33.3-85.fc13.i686 root=/dev/sda2 vloop=/sys/fedora-13-i686.vhd vlooppart=p1 quiet splash
initrd (vhd0,1)/boot/initramfs-2.6.33.3-85.fc13.i686.img
}
menuentry "ubuntu-1010-desktop-i386.vhd" {
insmod vhd
vhd vhd0 (hd0,2)/sys/ubuntu-1010-desktop-i386.vhd --partitions
linux (vhd0,1)/boot/vmlinuz-2.6.35-28-generic root=/dev/sda2 vloop=/sys/ubuntu-1010-desktop-i386.vhd vlooppart=p1 quiet splash
initrd (vhd0,1)/boot/initrd.img-2.6.35-28-generic
}
menuentry "mint-9-gnome-i386.vhd " {
insmod vhd
vhd vhd0 (hd0,2)/sys/mint-9-gnome-i386.vhd --partitions
linux (vhd0,1)/boot/vmlinuz-2.6.32-21-generic root=/dev/sda2 vloop=/sys/mint-9-gnome-i386.vhd vlooppart=p1 quiet splash
initrd (vhd0,1)/boot/initrd.img-2.6.32-21-generic
}
menuentry "RAMOS" {
set cfgfile="find --set-root /sys/RAMOS.IMG;map --mem /sys/RAMOS.IMG (hd0);map --hook;rootnoverify (hd0,0);chainloader +1"
linux16 /grub.exe --config-file=$cfgfile
}
menuentry "Puppy" {
set cfgfile="find --set-root /sys/puppy/vmlinuz;kernel /sys/puppy/vmlinuz;initrd /sys/puppy/initrd.gz "
linux16 /grub.exe --config-file=$cfgfile
}
menuentry "PEISO" {
set cfgfile="find --set-root /sys/pe.iso;map --mem /sys/pe.iso (0xff);map --hook;chainloader (0xff)"
linux16 /grub.exe --config-file=$cfgfile
}
menuentry "bootmgr" {
set cfgfile="find --set-root /bootmgr;chainloader /bootmgr"
linux16 /grub.exe --config-file=$cfgfile
}
menuentry "grub4dos" {
linux16 /grub.exe
}
[ 本帖最后由 2013sllyylqss 于 2013-1-23 21:27 编辑 ] |
|