Tuesday, November 13, 2012

Multi-Boot PE using Grub4Dos

Thanks to the sources below on how I completed this project of mine...
http://www.rmprepusb.com/tutorials/ubuntu
http://www.themudcrab.com/acronis_grub4dos.php#tagInstall
http://www.rmprepusb.com/tutorials/grub4dos#TOC-Part-1---Making-a-bootable-USB-pen-
http://www.rmprepusb.com/tutorials/install-xp-from-an-iso
http://www.dedoimedo.com/computers/grub.html


Setup Prerequisites...
Setup environment: Windows
Items needed:
  • usb-HDD (at least 80GB)
  • Grub4DOS Installer (http://www.themudcrab.com/acronis_grub4dos.php#tagInstall)

HDD Setup Layout:
Note: This can be accomplished doing 1 partition where there will be less issues. But I prefer organizing my boot partition from my installer partition.
  • Boot Partition = 16GB / FAT32
  • Data Partition = rest of the space / NTFS

Start of Grub installation:
  • After creating the partition on the HDD whether a whole or 2 partition like mine run the windows application grub_gui (see the above link themudcrab site)
  • Use Whole disk (MBR)
  • Then check the Don't search floppy option, leave all the other options unchecked.
  • Click on Install
  • After a successful write copy the grldr file to the root of the partition or your usb hdd
  • Now create your menu.lst to create a menu for grub
How to Boot XP or BartPE
See below the sample menu entry to load ntldr
title  Boot BartPE       
find --set-root --ignore-floppies --ignore-cd /ntldr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /ntldr


How to Boot Win7/Vista or WinPE2+
See below the sample menu entry to load bootmgr
title  Boot WinPE/Vista/Win7
find --set-root --ignore-floppies --ignore-cd /bootmgr
map () (hd0)
map (hd0) ()
map --rehook
find --set-root --ignore-floppies --ignore-cd /bootmgr
chainloader /bootmgr



In the menu above my BartPE and WinPE2/3/Win7 data is also on the boot partition. Note that the ntldr and bootmgr are all in the root of the partition.

This is my birthday gift to you people! Happy birthday to me! :p