Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Move Grub from HD to USB

  1. #11
    Join Date
    Mar 2007
    Beans
    16

    Re: Move Grub from HD to USB

    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0xe30dc1d9

    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 468408319 234204128+ 7 HPFS/NTFS
    /dev/sda2 468408320 488386559 9989120 7 HPFS/NTFS

    Disk /dev/sdb: 4063 MB, 4063232000 bytes
    255 heads, 63 sectors/track, 493 cylinders, total 7936000 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x0005dfcc

    Device Boot Start End Blocks Id System
    /dev/sdb1 63 7470224 3735081 83 Linux
    /dev/sdb2 7470225 7920044 224910 5 Extended
    /dev/sdb5 7470288 7920044 224878+ 82 Linux swap / Solaris

  2. #12
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Move Grub from HD to USB

    OK, how about doing the following to install Grub to the MBR of your USB drive:
    Code:
    sudo grub
    grub> root (hd1,0)
    grub> makeactive
    grub> setup (hd1)
    grub> quit
    Then to restore a Windows equivalent MBR to your sda drive, how about trying:
    Code:
    sudo apt-get install lilo
    sudo lilo -M /dev/sda mbr
    Then reboot, set your BIOS to boot your sdb USB drive, and if all goes well you should at least get the Grub menu on start up, which is 90% of the battle. If you installed Intrepid to your USB drive, you should also be able to boot into Ubuntu, but if you installed a previous Ubuntu version, most likely your Grub's menu.lst file will need some tweaking in order to boot into Ubuntu. How about giving that a shot and let me know how far you get.

  3. #13
    Join Date
    Mar 2007
    Beans
    16

    Re: Move Grub from HD to USB

    It worked! Grub now only pops up when the usb is plugged in.

    So does this mean that I can boot ubuntu off the usb on any computer now that grub is on the usb? Also you said 'Windows equivalent MBR' meaning I'm using lilo now instead of the windows default or grub, right? If yes, will that be over written if I were to reinstall windows at a later time?

  4. #14
    Join Date
    Mar 2008
    Location
    California, USA
    Beans
    8,111

    Re: Move Grub from HD to USB

    Quote Originally Posted by syst3m View Post
    It worked! Grub now only pops up when the usb is plugged in.

    So does this mean that I can boot ubuntu off the usb on any computer now that grub is on the usb? Also you said 'Windows equivalent MBR' meaning I'm using lilo now instead of the windows default or grub, right? If yes, will that be over written if I were to reinstall windows at a later time?
    Yes, you should be able to boot your Ubuntu USB drive on other computers, assuming they support USB booting, the only thing you might have to be concerned about is how well the other computers' hardware is compatible with Ubuntu. And when I said "Windows equivalent MBR", all that means is that you have a boot loader (lilo) installed to the MBR of your sda drive that performs the exact same function as a proprietary Windows MBR. So if you reinstall Windows at some point, you'll just get a genuine honest-to-goodness proprietary Windows MBR, rather than your present lilo MBR which does the same thing. So bottom line is, it doesn't really matter since they both do the same thing.

  5. #15
    Join Date
    Mar 2007
    Beans
    16

    Re: Move Grub from HD to USB

    Well thanks for everything.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •