Page 19 of 26 FirstFirst ... 91718192021 ... LastLast
Results 181 to 190 of 253

Thread: HOWTO: Restore GRUB (if your MBR is messed up)

  1. #181
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Boot into ver 19, open a terminal and post the output to
    Code:
    sudo fdisk -l
    cat /boot/grub/menu.lst
    Also, can you tell us more detail about what happens when you try to boot ver 20? Do you see a GRUB error?

  2. #182
    Join Date
    Jul 2008
    Beans
    6

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    I have followed the instruction but I still have the problem. When I start my computer and select either ver 20 or ver 19, I have the following message:-
    Starting up...
    [0.000000]ACPI:BIOS age (1999) fails cutoff (2000), acpi=force is required to enable ACPI

    In ver 19, I will see "Loading please wait". But in ver 20, nothing happens to the computer.

  3. #183
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    ver .20 is messed up right now, just continue using .19 until a fix comes down in updates.
    If it really bothers you uninstall ver .20 kernel grub will re-write itself.
    You may want to disable the proposed repositories until this is fixed.
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  4. #184
    Join Date
    Jul 2008
    Beans
    6

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Thanks. Can I delete ver 20 ref from the MBR?

  5. #185
    Join Date
    May 2006
    Location
    United Kingdom
    Beans
    469
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Quote Originally Posted by arpanaut View Post
    ...You may want to disable the proposed repositories until this is fixed.
    +1 to that.

  6. #186
    Join Date
    May 2008
    Location
    UK
    Beans
    31

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Quote Originally Posted by wernst View Post
    Don't forget that this method, as described, puts GRUB back on the MBR (master boot record) of the hard drive instead of in the root parititon. This is fine for most people, but not if you already have an alternative boot manager.

    In other words, if you use something like Boot Magic or System Commander, the commands you've just read will overwrite what you've got.

    If you've installed GRUB into the Root Partition instead of the MBR, the commands are a little different. Here's are the instructions that I have for my system:

    How to Restore the Grub Menu after a Re-Ghosting:

    1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.

    2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.

    3. Type "grub" which makes a GRUB prompt appear.

    4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.

    5. Type "root (hd0,3)".

    6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".

    7. Type "quit".

    8. Restart the system. Remove the bootable CD.

    Hope this helps. Since I use Norton Ghost to make regular backups and restores (I do a lot of testing), I do this all the time...

    -Warr
    Just tried this, worked fine in hardy.

  7. #187
    Join Date
    Sep 2008
    Beans
    21

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Quote Originally Posted by remmelt View Post
    Isn't it easier to do this:

    1. Pop in the Live CD, boot from it until you reach the desktop.
    2. Open a terminal window or switch to a tty.
    3. Type "grub"
    4. Type "root (hd0,6)", or whatever your harddisk + boot partition numbers are (my /boot is at /dev/sda7, which translates to hd0,6 for grub).
    5. Type "setup (hd0)", ot whatever your harddisk nr is.
    6. Quit grub by typing "quit".
    7. Reboot.

    I may be missing your point though, if so, please forgive me
    I tried both options and neither worked. When I tried the terminal option I typed grub and hit enter. After a minute I had grub> on the screen. When I typed in "root (hd0,1)" and hit enter it said "selected disk does not exist". XP is on the master HD and Ubuntu is on the slave so wouldn't that be discs 0 and 1? Just for kicks I tried (hd1,2) but that did not work either.

    I used supergrub which works so so but it keeps defaulting to discs 1 and 2 instead of 0 and 1. At least I can get into Ubuntu now.

  8. #188
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    tallpaul66, (hd0,1) means the first drive, second partition. The 0 in (hd0,1) means the first drive, and the 1 in (hd0,1) means the second partition. GRUB starts numbering at 0.
    So (hd0,1) is GRUB-talk for /dev/sda2.

    Similarly, (hd1,2) is /dev/sdb3, the second drive, third partition.

    Perhaps try Catlett's instructions here: http://ubuntuforums.org/showpost.php...95&postcount=1

  9. #189
    Join Date
    Jul 2008
    Beans
    36

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    This has saved me on more than one occasion.

    http://www.supergrubdisk.org/

    I've used it for both Suse and Ubuntu.

  10. #190
    Join Date
    Sep 2008
    Beans
    21

    Re: HOWTO: Restore GRUB (if your MBR is messed up)

    Quote Originally Posted by unutbu View Post
    tallpaul66, (hd0,1) means the first drive, second partition. The 0 in (hd0,1) means the first drive, and the 1 in (hd0,1) means the second partition. GRUB starts numbering at 0.
    So (hd0,1) is GRUB-talk for /dev/sda2.

    Similarly, (hd1,2) is /dev/sdb3, the second drive, third partition.

    Perhaps try Catlett's instructions here: http://ubuntuforums.org/showpost.php...95&postcount=1
    Thanks. The problem has been solved. I used supergrub to create a grub file then used gedit to change the hard disk info. Now I have a grub menu that works with both linux and windows.

Page 19 of 26 FirstFirst ... 91718192021 ... LastLast

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
  •