Page 23 of 26 FirstFirst ... 132122232425 ... LastLast
Results 221 to 230 of 253

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

  1. #221
    Join Date
    Apr 2009
    Location
    Somewhere in Kansas
    Beans
    60
    Distro
    Ubuntu 12.04 Precise Pangolin

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

    Quote Originally Posted by olecarme View Post
    I'm amazed of the length of this discussion, and the complexity of all the solutions presented. Here is a good one:
    1. Get a Debian netinst installer on http://www.debian.org/devel/debian-installer/
    2. Boot it and choose the special entry for recovering
    3. When it offers you various choices, choose to install again Grub (there is a special entry for this)
    4. Reboot

    That's all! If you already did point 1, the rest should need less than one minute.
    At step 3 it becomes quite confusing. There are several options from there that only the most advanced Linux user understands. Honestly, I got to that point and quit. Your 4 steps are too few for most to know what to do. Nothing could be further from the truth than "That's all!"

  2. #222
    Join Date
    Apr 2009
    Beans
    6
    Distro
    Ubuntu 8.10 Intrepid Ibex

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

    Quote Originally Posted by olecarme View Post
    I'm amazed of the length of this discussion, and the complexity of all the solutions presented. Here is a good one:
    1. Get a Debian netinst installer on http://www.debian.org/devel/debian-installer/
    2. Boot it and choose the special entry for recovering
    3. When it offers you various choices, choose to install again Grub (there is a special entry for this)
    4. Reboot

    That's all! If you already did point 1, the rest should need less than one minute.
    That one minute thing is a crock, I'm a greenhorn and it took me at least two minutes to do this, after download and burning the disk. But it worked like a charm after all else had failed time and time again. Thanks loads olecarme.

  3. #223
    Join Date
    Dec 2007
    Location
    Winnipeg, Canada
    Beans
    14
    Distro
    Ubuntu Studio 9.10 Karmic Koala

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

    Just gonna throw my 2 cents in because I reinstalled GRUB.

    I have been dual booting XP Pro and Ubuntu for a couple years and never had a problem, did a fresh install of Ubuntu Studio 9.1 and everything ran perfect. Then I decided to install Windows 7, did a fresh install and after couldn't boot into Ubuntu because Windows writes to the MBR, but I knew that would happen. Most of the posts that I read say to boot into the live CD, but unfortunately I downloaded an alternate version which apparently doesn't boot into the live cd. So instead after booting the install cd I choose to "FIX A BROKEN INSTALL", followed the regular install routine until it comes up with a list of options to perform, one of the being to install GRUB. Choose that and the location to install, (hd0,0) and it installs in a matter of seconds, then in the menu choose to reboot.

    After rebooting in the GRUB menu my Ubuntu Studio is there but the Windows installation is showing as Windows XP which I can't boot into. I boot into Ubuntu and check the file /boot/grub/grub.cfg and find Windows XP listed in the boot options. Opened Terminal and ran "sudo update-grub" which updated the grub.cfg file and now reads windows 7.

    Now everything works perfect. Sorry for the long winded post.

  4. #224
    Join Date
    Nov 2009
    Beans
    2

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

    posted the same thing twice in error.
    Last edited by Ramanjit81; November 28th, 2009 at 08:24 PM. Reason: posted the same thing twice in error.

  5. #225
    Join Date
    Nov 2009
    Beans
    2

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

    Hello people. First of all I'd like to thank Olecarne as your post has been the most helpful.

    I'm a newbie who installed ubuntu 9.10 on a window vista machine. I resized the vista partition and reduced it's size to make a 20 GB partition for ubuntu. Ubuntu has been great by far but vista hasn't been loading at all even though it is listed under grub.

    So, attempting to revive vista as well, I got to the recovery console and tried fixboot and fixmbr. Now none of the OSes are working and I started getting the error NTLDR is missing.

    I have managed to reinstall grub as follows: (Olecarne's approach worked for me but I'll insert a few steps to eliminate any possibility of confusion.)

    1. Get a ubuntu live cd and boot into ubuntu.
    2. then go to system>administration>Gparted. Please the partion which has the original ubuntu installation. (just newbies, it will more than likely have an ext3 or ext4 file system). Please note this partition as you will need to select this at step 15.
    3. Get a Debian netinst installer on http://www.debian.org/devel/debian-installer/ (I used the full version and not the businesscard version. Either might work though)
    4. Burn the image to a cd/ usb or floppy as you prefer. (Please ensure that you have downloaded the right file format for your preferred media i.e. cd/ floppy/usb.)
    5. Boot it and then at the the menu list select advanced options and press enter.
    6. choose rescue mode(not graphical rescue mode) and press enter
    7. select language and press enter.
    8. select country and press enter
    9. select keyboard layout and press enter
    10. now the cd will detect hardware and load additional components.
    11. Then it will come to a select the network interface you may want to use. press tab key to get to go back and press enter.
    12. this will give you the debian installer main menu.
    13. go to "enter rescue mode". and press enter.
    14. It will ask you for the device to use as root file system and list the various options i.e. the various hdds and the partitions on them are listed.
    15. select the partition that has the original ubuntu installation on it and press enter.
    16. select "reinstall GRUB boot loader" and press enter.
    17. if you want the GRUB to be loaded to the MBR i.e. Master Boot Record, the enter (hd0) and press TAB to select continue and press enter.
    18. then the enter rescue mode menu comes up again after grub is installed.
    19. go to "Reboot the system" and press enter.
    20. on the computer boot up you should see the grub menu with the list of your installed OS.

    Your GRUB should now work properly. (Mine did.)

  6. #226
    Join Date
    Nov 2008
    Beans
    19

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

    Here's an even simpler if not very attractive fix, for the real beginners. I'm sure it's been mentioned but I've spent too long already messing about with this problem.

    I removed a partition which killed GRUB. I tried the first few pages of this thread trying to get it fixed, but nothing worked. In the end I just loaded a second copy, in the space where I had removed the partition. I know installing from a live CD/USB Stick works, so I just did that alongside my existing stuff.

    A crude fix but ever so quick and easy.

  7. #227
    Join Date
    Apr 2009
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

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

    Quote Originally Posted by z1000000 View Post
    Here's an even simpler if not very attractive fix, for the real beginners. I'm sure it's been mentioned but I've spent too long already messing about with this problem.

    I removed a partition which killed GRUB. I tried the first few pages of this thread trying to get it fixed, but nothing worked. In the end I just loaded a second copy, in the space where I had removed the partition. I know installing from a live CD/USB Stick works, so I just did that alongside my existing stuff.

    A crude fix but ever so quick and easy.
    you reinstalled ubuntu alongside with your stuff ? how can that be quick ?...


    ubuntu karmic:
    make changes to partitions locations below
    boot from cd/usb/network/yomomma
    open terminal
    type:
    sudo mkdir /mnt/fixboot
    sudo mount -t ext4 /dev/sda5 /mnt/fixboot
    sudo mount -t proc non /mnt/fixboot/proc
    sudo mount -o bind /dev /mnt/fixboot/dev
    sudo chroot /mnt/fixboot /bin/bash
    sudo grub-install /dev/sda
    sudo update-grub
    sudo umount /mnt/fixboot/dev
    sudo umount /mnt/fixboot/proc
    sudo umount /mnt/fixboot
    reboot

  8. #228
    Join Date
    Nov 2009
    Location
    Chennai, India
    Beans
    503
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    what do i do if it says the mbr is missing, i have a squeaky clean hdd and it says mbr missing wen i try to install 9.10 on it...
    I like to keep it respectful with OpenRespect
    I write at The Void Ghost and 2buntu

  9. #229
    Join Date
    Dec 2006
    Beans
    Hidden!

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

    using this you boot live cd and then you can become root of the os and reinstall, update grub.
    start wiht number 4 as the others have to do with reinstalling the os.


    http://ubuntuforums.org/showthread.php?t=1326412&page=7

    Why not just install legacy grub?

    I just did one today like this:

    (1) Using the Live CD installer at the last step click on Advanced and choose not to install grub at all!

    (2) When installation is done don't choose to restart, rather choose to keep using the Live CD.

    (3) Since you just installed you should know the drive/partition # of your Karmic (or Lucid) so keep that in mind. If you have no idea the Boot Info Script should be helpful:

    http://ubuntuforums.org/showthread.php?t=1291280

    (4) From the Live Desktop run:

    Code:

    sudo mount /dev/sdXY /mnt

    (of course XY must represent your drive and partition #'s!)

    Then:

    Code:

    sudo mount --bind /dev /mnt/dev && sudo mount --bind /proc /mnt/proc && sudo mount --bind /dev/pts /mnt/dev/pts && sudo cp /etc/resolv.conf /mnt/etc/resolv.conf && sudo chroot /mnt

    You should notice that the command prompt changes from ubuntu@ubuntu$ to # which means you're now root in that OS. I like to be sure I am where I want to be with "cat /etc/issue" and "df -H".

    Then revert:

    http://ubuntuforums.org/showthread.php?t=1298932

    And when you're done:

    Code:

    sudo umount /mnt/dev/pts && sudo umount /mnt/dev && sudo umount /mnt/proc && sudo umount /mnt

  10. #230
    Join Date
    Nov 2009
    Location
    Chennai, India
    Beans
    503
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    i jus get bootmbr missing, press ctrl+alt+del to restart no matter how much i play with the boot order... so i can hardly get to the live installation part
    I like to keep it respectful with OpenRespect
    I write at The Void Ghost and 2buntu

Page 23 of 26 FirstFirst ... 132122232425 ... 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
  •