Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to build my recovery usb key drive. I'd like to use GRUB as my bootloader.

How do I install GRUB to my usb's MBR?

Lots of examples out there seem to expect I'm running Linux.

share|improve this question
add comment

4 Answers

UNetbootin is a good tool to install entire distributions on a USB flash.


A reference to the Super Grub Disk wiki page on How do I boot an USB hard disk?

In order to GRUB or SGD to boot a USB drive, pendrive or hard disk your BIOS computer has to offer the usb drive as a boot drive.

If your BIOS does not let you boot your pendrive with F8 or F12 keys or by setting up your BIOS hard disk boot order with F1 or SUPR keys at boot... it does not mean that it cannot offer the drive to GRUB to be booted.

You can use UNetbootin to install SGD to your USB Flash.

The WinGrub technique also looks good and
you might be able to use the notes in my references for understanding the steps better.

share|improve this answer
add comment
up vote 1 down vote accepted

Ultimately I used this video for guidance.

Basically, the goal is to install the grub4dos loader to the MBR of the usb drive and copy its program/configuration files to the drive's root. To do this, you download grub4dos (the program) and grubinst (a utility to add the program's loader to a MBR).

Grubinst has 2 clients, a gui and a command-line utility. The video leverages the gui. It didn't work correctly for me - yelling that there was something wrong with my drive's partition table. Running the command line client worked though. If you run into the same problem look at the readme for options and use the gui to grab the hd# of your usb drive.

I considered UNetbootin but I

  • didn't want a tool to do this for me (wanted more understanding)
  • wanted to add many bootables to the usb
share|improve this answer
add comment

You can refer to this article - it worked for me. Edit the menu.lst to suit your needs.

The OP wants to install GRUB through Windows, and only Windows.

Try WinGrub.

share|improve this answer
    
This is my reference article. How do you get to the "grub>" shell from windows? Is it an exe in the grub download? Also, how do I get the hdId of my usb drive? –  TheDeeno Sep 17 '09 at 21:27
    
Not amenable to even running a LiveCD???? Okay okay edited my answer, you can use that. –  caliban Sep 17 '09 at 21:31
    
I'm running from a location without a cd drive. This whole exercise is so I can get a "live usb". –  TheDeeno Sep 17 '09 at 21:38
    
Oh, do try WinGrub then, or you can also try Grub4DOS found on the same page. –  caliban Sep 17 '09 at 21:44
    
Thanks for pointing me to Grub4Dos. –  TheDeeno Sep 18 '09 at 14:16
add comment

See here: Install Ultimate Boot CD (UBCD) to a Flash Drive in Windows

This worked for me. All the GRUBs are on it, plus extras. And it's all free. Just download the USB installer and Utimate CD ISO. Run the installer, follow its prompts.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.