USB启动盘制作,WinPE、Puppy、Ubuntu

来源:互联网 发布:win7软件字体模糊 编辑:程序博客网 时间:2024/05/22 15:38
备忘录  2012.07.30 


功能: 使U盘成为装系统的工具,能安装XP,Win7,Linux系统


使用方法:
1.使用bootice.exe把grub4dos写入u盘的mbr,设置电脑从u盘启动之后,grub4dos会被加载,然后其根据munu.lst里面的命令,加载选择的系统,如WinPE,Puppy,Ubuntu,Fedora等。
2. 把usb_boot里面的文件全部拷贝到u盘下面。重启的时候选择从u盘启动,就可以看到待选择的各个系统了。
3. 文件夹目录说明: 
/grldr
/menu.lst #grldr, menu.lst 是mbr加载grub4dos的文件,menu.lst定义了加载/b下各系统的路径
/b
--/b/ubuntu1204# ubuntu12.04把casper中的initrd.lz和vmlinuz解压缩出来和ISO文件放一起
initrd.lz
ubuntu-12.04-desktop-i386.iso
vmlinuz
--/b/PE# NTLDR-->NTDET.C->PE.X->WINPE.IS_->PETOOLS
NTLDR# loader,里面有NTDET.C和NTDET.C,BFONT.B的路径,用HEXEdit.exe可以编辑,要在文件中搜索包含这几个字符串的所有地方,都要改
NTDET.C # ntdetect.com,有PE.X的路径,可修改
PE.X # 有WINPE.IS_的路径
WINPE.IS_ # WinPE镜像文件,cab格式,可用老毛桃MCAB.EXE进行修改
PETOOLS # 在WINPE.IS_文件夹里面的system32里面的precmd.ini文件夹里面,而PETools里面的SETTING.INI则指明了PETools下各工具的路径。
BFONT.B
...
--/b/puppy
initrd.gz
vmlinuz
pup-431.sfs
puppy-wine-cn-k2.6.30.5-20100702w.iso


备注:
menu.lst内容
timeout 5
default 5
#color black/red
#splashimage /abc.xpm

# 0
title WinPE
chainloader /b/PE/NTLDR
boot

# 1
title Puppy
find --set-root /b/puppy/vmlinuz
kernel /b/puppy/vmlinuz
initrd /b/puppy/initrd.gz

# 2
#title Install Fedora15 LiveCD
#find --set-root /Fedora15_liveCD/isolinux/vmlinuz0
#kernel /Fedora15_liveCD/isolinux/vmlinuz0 root=live:/dev/sdb4 rootfstype=auto ro liveimg quiet rhgb
#initrd /Fedora15_liveCD/isolinux/initrd0.img

# 3
#title Install Fedora15 DVD
#find --set-root /TDDOWNLOAD/vmlinuz1
##root (hd0,4) D:
#kernel /TDDOWNLOAD/vmlinuz1 linux askmethod
#initrd /TDDOWNLOAD/initrd1.img

# 4
title Hard Disk -- WinXP 
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
rootnoverify (hd0,0)
makeactive
chainloader +1

# 5
title Hard Disk -- grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot

# 6
title ReBoot
reboot


# 7
title ShutDown
halt

#8
title Ubuntu 12.04 liveCD
find --set-root /b/ubuntu1204/vmlinuz
kernel /b/ubuntu1204/vmlinuz boot=casper iso-scan/filename=/b/ubuntu1204/ubuntu-12.04-desktop-i386.iso ro quiet splash

initrd /b/ubuntu1204/initrd.lz


原创粉丝点击