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

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

  1. #181
    Join Date
    Jul 2008
    Beans
    2

    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
    Thank you.
    I accidentally wiped out the MBR, reinstalled Vista and lost GRUB.

    I followed remmelt's steps from Damn Small Linux in a pen drive(I didn't have the Ubuntu live cd with me when that happened) and it worked out perfectly. now I have Ubuntu 8.04 running again!

  2. #182
    Join Date
    Jul 2008
    Beans
    6

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

    I have just updated to ver 20 and Ubuntu does not boot in ver 20 from MBR. It works OK when I boot it from ver 19. How do I fix this problem?

  3. #183
    Join Date
    Mar 2008
    Beans
    4,715
    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?

  4. #184
    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.

  5. #185
    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!

  6. #186
    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?

  7. #187
    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.

  8. #188
    Join Date
    May 2008
    Location
    Bristol, UK
    Beans
    30
    Distro
    Ubuntu 8.04 Hardy Heron

    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.

  9. #189
    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.

  10. #190
    Join Date
    Mar 2008
    Beans
    4,715
    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

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
  •