买了个500G的硬盘。实现了GRUBforDOS和SYSliunx双引导。 可引导进入多种WINPE,各种版本的liunx(如BT4R2,BT4FINL,小芭比,小奶瓶等。。。),winxp(USB),各种硬盘版IMG,IMA镜像,还有ISO镜像。其中liunx和winxp都可以保存修改。 硬盘分区如下: 按空格引导PBR,其他键引导MBR 引导PBR后 引导MBR 用BOOTICE做主引导和分区引导。最好用0.78版。0.81由于sysliunx的版本较高,可能GRUBforDOS不能引导sysliunx。 下面就是修改GRUBforDOS和SYSLINUX的配置文件了。下面是我的配置文件。用的一些常见的移动系统和PE请在配置文件中查找。
SYSLINUX.CFG
default vesamenu.c32 timeout 300 F1 readme.txt F2 syslinux.cfg MENU BACKGROUND back.png MENU TITLE MENU TIMEOUTROW 16 menu color border 30;44 #00000000 #00000000 none LABEL a MENU LABEL [^1] WMZ-U SYSTEM INCLUDE /boot/syslinux/WMZ.CFG label b MENU LABEL [^2] START BT3 INCLUDE /bootBT3/syslinux/syslinux.cfg label c MENU LABEL [^3] START BT4 Beat INCLUDE /bootBT4/syslinux/syslinux.cfg label d MENU LABEL [^4] START GRUBDOS (BT4R2&USB-XP&...) KERNEL /grub.exe append --config-file="configfile (fd0)/boot/grub/menu.lst;configfile (hd0,0)/boot/grub/menu.lst label Start Beini 1.1 MENU LABEL [^5] Start Beini 1.1 kernel /bootBEINI/bzImage quiet waitusb=6 append initrd=/bootBEINI/tinycore.gz label e MENU LABEL [^6] START GeeBox INCLUDE /GEEXBOX/boot/isolinux.cfg LABEL RISING MENU LABEL [^7]Start RISING KERNEL /RISINGusb/RISING/vmlinuz APPEND ramdisk_size=100000 init=/etc/init lang=us apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=0x314 initrd=/RISINGusb/RISING/ravroot.gz nomce quiet BOOT_IMAGE=rising pnpbios=off console=/dev/null label 1 MENU LABEL [^7]Start WINXP (USB) kernel chain.c32 append ntldr=/ntldr menu.lst # By default, boot the first entry. default 4 # Boot automatically after 30 secs. timeout 30 splashimage=/boot/grub/bt4.xpm.gz fontfile /boot/grub/Fonts.gz foreground e3e3e3 background 303030 title Start BackTrack FrameBuffer (1024x768) kernel /boot/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x317 initrd /boot/initrd.gz title Start BackTrack FrameBuffer (800x600) kernel /boot/vmlinuz BOOT=casper boot=casper nopersistent rw quiet vga=0x314 initrd /boot/initrd800.gz title Start BackTrack Forensics (no swap) kernel /boot/vmlinuz BOOT=casper boot=casper nopersistent rw vga=0x317 initrd /boot/initrdfr.gz title Start BackTrack in Safe Graphical Mode kernel /boot/vmlinuz BOOT=casper boot=casper xforcevesa rw quiet initrd /boot/initrd.gz title Start Persistent Live CD kernel /boot/vmlinuz BOOT=casper boot=casper persistent rw quiet vga=0x317 initrd /boot/initrd.gz title Start BackTrack in Text Mode kernel /boot/vmlinuz BOOT=casper boot=casper nopersistent textonly rw quiet initrd /boot/initrd.gz title Start BackTrack Graphical Mode from RAM kernel /boot/vmlinuz BOOT=casper boot=casper toram nopersistent rw quiet initrd /boot/initrd.gz title Memory Test kernel /boot/memtest86+.bin title Boot the First Hard Disk root (hd0) chainloader +1 title 启动Windows XP(USB) find --set-root /ntldr chainloader /ntldr title GHOST, DISKGEN, PQMAGIC, MHDD, DOS map --mem /boot/imgs/ghost.img (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) #title 启动完美者光盘镜像 #find --set-root /boot/wmz.iso #找到了ISO文件,加载这个ISO文件 #pause --wait=0 Boot MicroPE With /boot/wmz.iso #先使用普通的方式映射(比较快),如果不行就加载到内存 #map /boot/wmz.iso(hd32) || map --mem /boot/wmz.iso (hd32) #map --hook #chainloader (hd32) #rootnoverify (hd32) #boot #title 启动完美者光盘镜像 TO RAM #map --mem boot/wmz.iso (hd32) #map --hook #chainloader (hd32) #rootnoverify (hd32) #boot title Windows XP PE find --set-root /boot/isope.bin chainloader /boot/isope.bin title Windows 2003 PE fallback 1 find --set-root /boot/isope03.bin chainloader /boot/isope03.bin savedefault --wait=5 title 小芭比Linux kernel /boot/vmlinuz quiet vga=0x317 initrd /boot/initrd.gz title MAXDOS map --mem /boot/imgs/MAXDOS.IMG (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) title 进入Ezboot chainloader /boot/loader.bin title BT3 Graphics mode (VESA KDE) kernel /bootBT3/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=kdm quiet vga=0x317 initrd /bootBT3/initrd.gz title BT4 Beta - Console kernel /bootBT4/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw quiet vga=0x317 initrd /bootBT4/initrd.gz title 小奶瓶 kernel /bootBEINI/bzImage quiet waitusb=6 initrd /bootBEINI/tinycore.gz title 瑞星杀毒 kernel /RISINGusb/RISING/vmlinuz ramdisk_size=100000 init=/etc/init lang=us apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=0x314 initrd=/RISINGusb/RISING/ravroot.gz nomce quiet BOOT_IMAGE=rising pnpbios=off console=/dev/null initrd /RISINGusb/RISING/ravroot.gz title Start Persistent Live CD BT4 FIAL kernel /boot1/vmlinuz BOOT=casper1 boot=casper1 persistent rw quiet vga=0x317 initrd /boot1/initrd.gz title WinXP/2000/2003 find --set-root /ntldr chainloader /ntldr title Win7/Vista/2008 find --set-root /bootmgr chainloader /bootmgr title Win98/95/ME/DOS find --set-root /io.sys chainloader /io.sys title CD/DVD 1 cdrom --init map --hook chainloader (cd0) boot title CD/DVD 2 cdrom --init map --hook chainloader (cd1) boot title Myiso.iso map --mem /1KG/myiso.iso (hd32) map --hook chainloader (hd32) boot title Myimg.img map --mem /1KG/myimg.img (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) title 重启 reboot title 关机 halt [ 此帖被jjsfm在2010-12-21 21:59重新编辑 ]