以ubuntu 12.04为例
- 用bootice中的“分区管理”将U盘分为一个分区HDD+, FAT32;
- 将Grub4dos中的grldr和grldr.mbr、iso文件、iso文件中的initrd.lz(or initrd.gz)和vmlinuz都放到U盘根目录下;(对于server版,要从官网下载那两个文件)
- 编辑menu.lst文件,内容如下
# for desktop color blue/green yellow/red white/magenta white/magenta default 1 timeout 10 title Install Ubuntu 11.10 root (hd0,0) kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-11.10-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8 initrd /initrd.lz # for server color blue/green yellow/red white/magenta white/magenta default 1 timeout 10 title Install Ubuntu 11.10 root (hd0,0) kernel /vmlinuz boot=install iso-scan/filename=/ubuntu-server-amd64.iso ro quiet splash locale=zh_CN.UTF-8 initrd /initrd.gz
- 用bootice中的“主引导记录”将“grub4dos”设为引导程序。