To make a multiboot USB drive using syslinux as a bootloader:
1. Format your USB drive and install syslinux. Syslinux can be download from http://syslinux.zytor.com The syslinux.exe is in the /win32 folder
syslinux [usb drive letter]:
2. Create a file named syslinux.cfg on the root of usb drive
the syslinux.cfg contains all the boot options. seehttp://syslinux.zytor.com/faq.php for how to use.
To add a dos floppy image add the following lines to syslinux.cfg:
label doskernel memdiskappend initrd=dos.ima
- then also copy the memdisk file from the syslinux download.
To add XP PE2USB as described in thread : http://www.911cd.net/forums//index.php?showtopic=10806
- add the following lines to syslinux.cfg:
label XPkernel pe2usb.bss
- copy the file pe2usb.bin from http://www.nu2.nu/pebuilder/files/pe2usb101.zip
- rename pe2usb.bin to pe2usb.bss * very important, this tells syslinux it is a Boot sector and to patch in the DOS superblock.
- then build bart pe2usb as normal on the usb drive. * PE2USB will overwrite the syslinux boot sector, so will need to run syslinux [usb drive letter]: again.
- If you recieve “Invalid System Disk” or similar error when booting you need to:
+ Copy the pe2usb.bin to the usbdrive bootsector using bart’s mkbt utility: mkbt -x pe2usb.bin x:
+ Reinstall syslinux: syslinux [usb drive letter]:
To add boot XP directly from USB drive as described in threadhttp://www.911cd.net/forums//index.php?showtopic=14181&st=220&p=97519&#entry97519
- make a disk image using winimage and add only the three boot files ntdetect.com, boot.ini (last line doubelt), ntldr and start memdisk with this image.
-save image as xp.ima on root of usb drive
label XPPEkernel memdiskappend xp.ima
- then build as described in thread.
* PE2USB will overwrite the syslinux boot sector, so will need to run syslinux [usb drive letter]: again.
*linux rescue / utility boot options can also be added in. From my one USB drive I can boot Dos, XPPE, Linux.
If this process seems clumsy you can use Multiboot USB Software to make a bootable USB. You can also use multiboot usb to make Windows Vista/7 Install Disk from your DVD ISO file.
Here are few add on script for menu.lst
DEVICE=/dev/sdbVOLUME=MultiBootUSB# create filesystem on usb pensudo mkfs.vfat -n ${VOLUME} ${DEVICE}1# mount usbmount ${DEVICE}1 /mnt/# install grub2 on usb pengrub-install –no-floppy –root-directory=/mnt ${DEVICE}# create grub configcat <<EOF> /mnt/boot/grub/grub.cfgmenuentry “Ubuntu Live 9.10 32bit” {loopback loop /boot/iso/ubuntu-9.10-desktop-i386.isolinux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-9.10-desktop-i386.iso noeject noprompt –initrd (loop)/casper/initrd.lz}menuentry “Ubuntu Live 9.10 64bit” {loopback loop /boot/iso/ubuntu-9.10-desktop-amd64.isolinux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/boot/iso/ubuntu-9.10-desktop-amd64.iso noeject noprompt –initrd (loop)/casper/initrd.lz}menuentry “Grml small 2009.10″ {loopback loop /boot/iso/grml-small_2009.10.isolinux (loop)/boot/grmlsmall/linux26 findiso=/boot/iso/grml-small_2009.10.iso apm=power-off lang=us vga=791 boot=live nomce noeject noprompt –initrd (loop)/boot/grmlsmall/initrd.gz}menuentry “tinycore” {loopback loop /boot/iso/tinycore_2.3.1.isolinux (loop)/boot/bzImage –initrd (loop)/boot/tinycore.gz}menuentry “Netinstall 32 preseed” {loopback loop /boot/iso/mini.isolinux (loop)/linux auto url=http://www.panticz.de/pxe/preseed/preseed.seed locale=en_US console-setup/layoutcode=de netcfg/choose_interface=eth0 debconf/priority=critical –initrd (loop)/initrd.gz}menuentry “debian-installer-amd64.iso” {loopback loop /boot/iso/debian-installer-amd64.isolinux (loop)/linux vga=normal –initrd (loop)/initrd.gz}menuentry “BackTrack 4″ {linux /boot/bt4/boot/vmlinuz BOOT=casper boot=casper nopersistent rw vga=0×317 –initrd /boot/bt4/boot/initrd.gz}menuentry “Memory test (memtest86+)” {linux16 /boot/img/memtest86+.bin}menuentry “BackTrack ERR” {loopback loop /boot/iso/bt4-pre-final.isolinux (loop)/boot/vmlinuz find_iso/filename=/boot/iso/bt4-pre-final.iso BOOT=casper boot=casper nopersistent rw vga=0×317–initrd (loop)/boot/initrd.gz}menuentry “XBMC ERR” {loopback loop /boot/iso/XBMCLive.isolinux (loop)/vmlinuz boot=cd isofrom=/dev/sda1/boot/iso/XBMCLive.iso xbmc=nvidia,nodiskmount,tempfs,setvolume loglevel=0 –initrd (loop)/initrd0.img}menuentry “netboot.me” {loopback loop /boot/iso/netbootme.isolinux16 (loop)/GPXE.KRN}menuentry “debian installer amd64 netboot XEN pressed” {linux /boot/debian/linux auto preseed/url=http://www.panticz.de/pxe/preseed/xen.seedlocale=en_US console-setup/layoutcode=de netcfg/choose_interface=eth0 debconf/priority=critical –initrd /boot/debian/initrd.gz}EOF# create iso directorymkdir /mnt/boot/iso## download images## Ubuntu Live 9.10 32bitwget http://ftp.uni-kl.de/pub/linux/ubuntu.iso/9.10/ubuntu-9.10-desktop-i386.iso -P /mnt/boot/iso# Ubuntu Live 9.10 64bitwget http://ftp.uni-kl.de/pub/linux/ubuntu.iso/9.10/ubuntu-9.10-desktop-amd64.iso -P /mnt/boot/iso# grmlwget http://grml.deb.at/grml-small_2009.10.iso -P /mnt/boot/iso# tinycorewgethttp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.3.1.iso-P /mnt/boot/iso# netinstallwget http://archive.ubuntu.com/ubuntu/dists/jaunty/main/installer-i386/current/images/netboot/mini.iso -P /mnt/boot/iso# xbmc# debianwget http://ftp.debian.org/debian/dists/etch/main/installer-amd64/current/images/netboot/mini.iso -O /mnt/boot/iso/debian-installer-amd64.iso# netboot.mewget http://static.netboot.me/gpxe/netbootme.iso -P /mnt/boot/iso# umountsyncumount /mnt/# test# debianmenuentry “debian-502-amd64-netinst.iso” {loopback loop /boot/iso/debian-502-amd64-netinst.isolinux (loop)/install.amd/vmlinuz vga=normal –initrd (loop)/install.amd/initrd.gz}menuentry “debian installer amd64 netboot” {linux /boot/debian/linux auto=true priority=critical vga=normal –initrd /boot/debian/initrd.gz}# update debian installation files (/mnt/boot/debian/update.sh)wget http://ftp.de.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz -O initrd.gzwget http://ftp.de.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux -O linux# links
No comments:
Post a Comment