[B]Latest Steps: Finding a boot manager and installing it to the Master Boot Record (MBR)
[/B]In order to boot multiple operating systems from the USB drive, we clearly need to have something to manage those choices and load them.
The two I’ve heard about so far are [I]syslinux[/I] and [URL=“http://www.gnu.org/software/grub/”][I]GRUB[/I].
I’ve read good and bad things about both, but they each seem to accomplish our purpose, and so I arbitrarily picked GRUB. (if this route doesn’t work out, I’ll soon be attempting with syslinux).
[B]Formatting the USB drive
[/B]Just for the record, I formatted the USB drive in FAT32 from Vista. The USB disk must be formatted with FAT (not NTFS) for this step to work.
[B]Downloading GRUB and the utilities to install it (grubinst & wingrub)
[/B]Because I’m on a Windows Vista x64 install, I needed to snag a version of GRUB that was windows-friendly. I found grub4dos and its GUI files at http://sourceforge.net/projects/grub4dos/files/.
To make things as easy as possible, I downloaded programs with GUIs wherever I could:
- I downloaded grubinst for windows from this SourceForge link. (link downloads the file.) Grubinst will allow us to install GRUB on the Master Boot Record (MBR) of the USB drive.
- I downloaded wingrub from the same SourceForge site here. (link downloads the file.) WINGRUB will actually place the GRUB installation onto our USB drive.
[B]Using grubinst to place GRUB into the MBR
[/B]With the completely blank / formatted USB drive, I did the following:
- Extracted the grubinst ZIP file, and ran the “grubinst_gui.exe” file contained within it.
- In the “device name” section, I selected “disk” and from the drop-down, selected my USB device based on it’s size. WARNING: Be sure to select the proper drive; selecting your hard-drive instead of the USB could render your PC unable to boot!
- I selected the “grub2” checkbox, as this is the latest version of GRUB – not grub legacy.
- I set the timeout textbox to 30 as I like a little extra time to decide before the boot manager picks the default operating system.
- I hit the “Test” button to ensure there are no errors. A textbox pops up showing what the command line command would be.
- I then hit “Install.” A command prompt box pops up saying “The MBR / BS has been successfully installed.”
At this point, if you view the drive in windows explorer, it is still empty – we must add the GRUB files for the MBR to find them.
[B]Using WINGRUB to install GRUB to the USB stick
[/B]
- I extract the Wingrub ZIP file.
- I install the Wingrub0206.exe file (it’s a normal windows install, goes very quickly)
- I ran the “WinGrub GUI” application by searching for it in the start menu (program for me is located in “C:\Program Files (x86)\WinGrub\WINGRB.exe”)
- The program presents me with a list of drives. I select my USB drive. WARNING: Again, be sure to select the proper drive! I select “copy stage files” as well, and then hit okay.
- As this is a technical test, I didn’t mess with the visual elements, but you can click on the colored boxes on screen to set your GRUB screen color preferences if you prefer.
- Ignoring all of the other form elements, from the “Tools” menu, choose “Install Grub”.
- Select “Boot from MBR” and in the partitions drop-down list, choose the only one that is available – for me, it’s hd(1,0).
- Just to be safe, under “System Drive”, I set it to G (the current drive letter of my USB drive). I don’t think this section is used in this case, but having C selected for anything made me nervous.
- Click the “Install” button.
- The dialogue box goes away. This indicates a successful install.
In windows explorer, the USB drive now shows two files in the root – “GRLDR” and “MBR.ORG”, as well as a “grub” directory with its supporting files.
Create a “boot folder” to store your various OSes
I literally just created a folder in the root of the drive called “boot”. I plan to store each bootable section in its own folder off of this drive.
Testing it out so far
- I put the USB drive in a laptop that is capable of booting from a USB device.
- The GRUB screen comes up with one and only menu item “Windows at (0,0)”. I like this, because it is the way to load the windows OS that is currently on the local hard drive disk (assuming windows is on your first hard drive in the first partition).
OSes we will attempt to install (to see how they work, assuming some won’t):
- BackTrack 4 pre-release
- BackTrack 3 (usb stick version)
- Knoppix 6.0.1
- Ophcrack
- Puppy Linux
- System Rescue CD
- Trinity Rescue Kit
- Ubuntu 9.0.4 Desktop
Next steps!
- Choosing our first OS (I will try to research which is the simplest so we can start there)
- Downloading the OSes
- Copying the OS files to the USB drive in the proper locations
- Configuring GRUB’s menu file to display those OSes.
- Ensuring that our target OSes start and function properly.
[B]Let me have it!
[/B]As always, this is a learning process for me, and I’d love advice / tips while going through this (particularly from linux & GRUB users).
Please respond to this post with questions / suggestions, etc. and I’ll do my best to make sure we’re all learning together.