Page 25 of 26 FirstFirst ... 1523242526 LastLast
Results 241 to 250 of 255

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

  1. #241
    Join Date
    Aug 2008
    Beans
    45

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

    If XP is working fine, why still using Vista? Just boot into Ubuntu and grab all the data you need it - if you install Ubuntu properly, it should be able mount both your XP and Vista partition automatically. This means that you can access both your XP and Vista partition from Ubuntu.

    I would not do triple boot again. In my case I run Windows XP inside Ubuntu via VirtualBox.
    Aubrey @
    gain4you.net

  2. #242
    Join Date
    Oct 2009
    Location
    San Diego
    Beans
    12
    Distro
    Ubuntu 9.10 Karmic Koala

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

    Shortly I'm going to need to reinstall my windows partition, currently its set to dual boot with XP and Ubuntu 9.04; everything is working fine actually. There's an application I need to install but some registry keys crucial to its functionality are missing. Restoring the registry from the cd will fix the problem, but pretty much break everything. And there way too many keys to add manually, would take longer than a fresh install takes.

    So.....before I undertake this I'll see if the program works with wine; last time I checked someone managed to get it partially functional which could be enough, in which case I'll ditch XP all together (only reason for dual boot is cuz it's a laptop, otherwise would use removable drives). When I install XP or Vista I know its going to most likely nuke the mbr. If I leave the Ubuntu partition alone (not that I had any intentions of changing it) during the windows install process, will fixing the mbr as described on the first page be all I need to do? Or will I need to tarball Ubuntu up and then restore it later using a bootable disk?

  3. #243
    Join Date
    Aug 2008
    Beans
    45

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

    Pelsia, I highly recommend that you install Windows (or whatever OS) INSIDE Ubuntu via VirtualBox. The advantages of doing this are numerous. One good thing is, you do not have to shut down Ubuntu to boot into Windows just to run a not-so-commonly-used program - you simply start up VirtualBox and boot up Windows inside Ubuntu and do your things.

    You will experience some issues with USB devices. Read my blog for these issues and how to solve them:

    http://gain4you.net/217/run-windows-...nux-desktop-os

    I just documented that for myself - in case I forget it myself
    Aubrey @
    gain4you.net

  4. #244
    Join Date
    Mar 2009
    Beans
    7

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

    Thanks for these great contributions.

    Unfortunately, before stumbling onto this thread I found another one that proved less than reliable. Result: total loss of all my data.

    It really is a pretty dumb oversight of developers not to include a "grub restore" option on the boot disk. Especially given the innevitability of having grub wiped by the innevitable windows reload.

    Its this kind of oversight that must make users wary of trying to set up dual boot systems.

  5. #245
    Join Date
    Jun 2008
    Beans
    53
    Distro
    Kubuntu 9.10 Karmic Koala

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

    Just installed windows vista over Ubuntu 9.10..
    So there's no GRUB. But the only Live CD i could find is Ubuntu 8.04 LTS.
    Would that be OK if i install GRUB using this live cd of version 8.04 over 9.10 ?

  6. #246
    Join Date
    Oct 2009
    Location
    Ca, Us
    Beans
    29
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    vnbuddy,
    This solution worked for me. Thanks! I upgraded from 9.10 this morning and think I made the wrong choice, during the upgrade as to where grub should be installed. Doh!

  7. #247
    Join Date
    Nov 2009
    Location
    Chennai, India
    Beans
    504
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by levis lover View Post
    Just installed windows vista over Ubuntu 9.10..
    So there's no GRUB. But the only Live CD i could find is Ubuntu 8.04 LTS.
    Would that be OK if i install GRUB using this live cd of version 8.04 over 9.10 ?
    I don't think it'll work, 8.04 uses the legacy grub whereas 9.10+ use grub2... but i might be wrong, and if i am please do excuse me..
    I like to keep it respectful with OpenRespect
    I write at The Void Ghost and 2buntu

  8. #248
    Join Date
    Mar 2011
    Beans
    1

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

    Sorry for the necro, but this topic needs updating. What's the latest method for restoration of grub with 10.04.2 LTS / Windows XP dual boot. Windows boots, from the start up menu, Ubuntu does not. Solution concisely, please, if at all possible. It is unknown ground for me. Thanks.

    EDIT:

    Never mind. Fixed it. For info, used the Debian 6.0.0 i386 Live CD, in rescue mode. Works fine.
    Last edited by KeithS; March 6th, 2011 at 07:02 PM.

  9. #249
    Join Date
    Jul 2011
    Location
    India
    Beans
    43

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

    Here are the few steps in which you can install Grub from CD

    1.Boot from the Ubuntu Desktop

    2. In Terminal tpye sudo fdisk -l .
    It will display all partiton of the disk.
    3. Mount the ubuntu partition drive
    sudo mount /dev/sdXX /mnt

    4.Only if you have a separate boot partition:
    sudo mount /dev/sdYY /mnt/boot.
    5. Mount the virtual filesystems:

    sudo mount --bind /dev /mnt/dev
    sudo mount --bind /proc /mnt/proc
    sudo mount --bind /sys /mnt/sys

    6.
    To ensure that only the grub utilities from the LiveCD get executed, mount /usr
    sudo mount --bind /usr/ /mnt/usr
    sudo chroot /mnt

    7.
    update-grub
    or update-grub2
    8.Now reinstall Grub
    grub-install /dev/sdX (eg. grub-install /dev/sdaDo not specify the partition number.
    9. Verify the install
    sudo grub-install --recheck /dev/sdX
    10. Exit chroot : CTRL-D on keyboard.
    11. Unmount virtual filesystems:
    sudo umount /mnt/dev
    sudo umount /mnt/proc
    sudo umount /mnt/sys

    12. Unmount the LiveCD's /usr directory:
    sudo umount /mnt/usr

    13. Unmount last device:

    sudo umount /mnt

    14. Reboot.
    sudo reboot.

  10. #250
    Join Date
    Oct 2010
    Location
    The Big, Bad, World!
    Beans
    120
    Distro
    Ubuntu 11.10 Oneiric Ocelot

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

    THE METHOD I'M ABOUT TO SHOW YOU CAN BE DONE FROM:

    . A LIVE DISK/CD/DVD
    . A LIVE USB
    . ANY OTHER LIVE MEDIA
    . AN INSTALLED VERSION OF UBUNTU

    The absolute EASIEST WAY, to (re)install GRUB is to use a little program called Boot-Repair. It does all that work to do with commands in the Terminal to reinstall GRUB for you, and it's really noob friendly, with a simple GUI, that you merely have to indicate which OS you want as your main Operating System etc, IF YOU WANT TO! This is all under advanced options, but really, it's not so advanced, anyway to get Boot-Repair:

    Do this in the Terminal:


    Code:
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    
    sudo apt-get update && sudo apt-get install -y boot-repair-ubuntu
    Now, run the program (search for it in Unity, or go to: System ----> Administration ----> Boot Repair, in Gnome 2/ Classic Mode in 11.04 Natty Narwhal)

    Then, once the program is done reinstalling GRUB (should take at max 2 minutes), do this:

    Code:
    sudo update-grub
    This is probably not necessary, but it will just eradicate the potential for any errors, whatsoever!

    Info for this can be found by:

    a) going to: https://help.ubuntu.com/community/Boot-Repair
    b) messaging me here.

    Hope this helped...

    x-D

Page 25 of 26 FirstFirst ... 1523242526 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
  •