我试验过用grub启动linux类的操作系统一点问题也没有,但是用来启动msdos的镜像和winpe就有问题了,试了好多次都不行。
首先我在linux下把grub安装到u盘
[code]
mount /dev/sdb1 /tmp/boot #挂载分区
grub-install --root-directory=/tmp/boot --no-floppy /dev/sdb #安装grub
[/code]
之后试了下启动debian的安装程序、puppy、gentoo,没有碰到什么大的问题。下面是我的grub启动菜单。
[code]
default 0
timeout 5
color cyan/blue white/blue
title Debian installer
root (hd0,0)
kernel /os/debian/linux root=/dev/ram0 ramdisk_size=128000 vga=791
initrd /os/debian/initrd.gz
title gentoo livecd
root (hd0,0)
kernel /os/gentoo/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot vga=791
initrd /os/gentoo/gentoo.igz
title puppy livecd
root (hd0,0)
kernel /os/puppy/vmlinuz
initrd /os/puppy/initrd.gz
title msdos
map --mem /os/msdos/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title winpe
chainloader (hd0,0)/ntldr
[/code]