Results 1 to 7 of 7

Thread: how do I reinstall grub onto my hdd?

  1. #1
    Join Date
    Dec 2007
    Beans
    56

    how do I reinstall grub onto my hdd?

    Hey all.

    I have the classic "system files on hdd, can't boot without hdd" grub problem. How do I restore the windows' version of grub and then put grub on my hdd, so I can use it on any computer? Thanks!

  2. #2
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how do I reinstall grub onto my hdd?

    not sure what you mean. You have an external drive?

  3. #3
    Join Date
    Dec 2007
    Beans
    56

    Re: how do I reinstall grub onto my hdd?

    Yes. It's a 500 GB high-end, fanless hard drive (it doesn't need one!). Half of the partition is set for ubuntu, and the other half is set for windows. The Grub (or bios, I dunno which) is on my internal hard drive. How do I reset the windows MBR (I don't have a windows live disk) and put grub/bios on the hdd? and would this cause hardware detection problems? thanks!

    Oh... by the way, can you use a hard disk (like, say, drive D://) for swap memory? That'd make my computer way fast.

  4. #4
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how do I reinstall grub onto my hdd?

    swap: yes, you can put it on another disk to speed things up.

    You can restore windows bootloader from the Super Grub Disc (see link my signature).

    Install grub to the MBR of the external disk from the ubuntu live cd (link in my sig).

    You'll have to edit /boot/grub/menu.lst so the 'groot' and 'root' lines read (hd0,?) instead of (hd1,?)

  5. #5
    Join Date
    Dec 2005
    Beans
    19,295
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: how do I reinstall grub onto my hdd?

    You'll have to edit /boot/grub/menu.lst so the 'groot' and 'root' lines read (hd0,?) instead of (hd1,?)
    The full command is
    Code:
    gksudo gedit /boot/grub/menu.lst
    .
    Learning is not attained by chance, it must be sought for with ardor and attended to with diligence. Abigail Adams ( 1744 - 1818 ), 1780;

    My blog Poetry and More Free Ubuntu Magazine

  6. #6
    Join Date
    Dec 2007
    Beans
    56

    Re: how do I reinstall grub onto my hdd?

    that's great... but how do I find out what (hd?,?) am I?

    Besides that, I'm cool.

    **EDIT**

    and also, I want my SDA drive to be portable... as in I can boot my ubuntu from any computer.
    Last edited by cool2000m; August 16th, 2008 at 06:05 AM.

  7. #7
    Join Date
    Jun 2006
    Beans
    7,419
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how do I reinstall grub onto my hdd?

    sudo fdisk -l

    will list your partitions including root. The external right now is being seen as (hd1) because it's listed second in the bios (windows internal disk is the boot disk). But as soon as you change it to boot grub on the external, it will become (hd0)

    Remember, grub starts counting from 0, so if fdisk says root is sdb1, then you want (hd0,0)

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
  •