Results 1 to 9 of 9

Thread: how to restore Grub on ubuntu 9.10

  1. #1
    Join Date
    Jan 2009
    Location
    /Bangladesh/Dhaka
    Beans
    109
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    how to restore Grub on ubuntu 9.10

    I am using 9.10 on ext4 filesystem
    however..I also use Windows Xp on my PC
    Yesterday I installed Windows Xp again due to some problem on XP. After that I tried to setup grub using Live CD of ubuntu 9.10. But I failed....
    how I tried:
    Application>Access.....>Terminal
    Then..
    sudo grub


    find /boot/grub/stage1
    where I get (hd0,*) *=1,2,3,4 etc..

    THen
    grub> root (hd0,*)
    grub> setup (hd0)
    grub> quit

    By this procedure I recovered my ubuntu 8.04.2 LTS...but it is not working on ubuntu 9.10
    what to do? So far I know it is GRUB2...May be for this reason it is not working...
    Waitting for reply...
    -------------------------------
    Md. Shahadat Hossain
    Dhaka, Bangladesh.
    -------------------------------

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: how to restore Grub on ubuntu 9.10

    You have to chroot in your 9.10 installation and reinstall grub2.

    Here is a guide: Grub 2 Basics (Reinstalling GRUB 2 from LiveCD).
    Last edited by sisco311; November 15th, 2009 at 01:28 PM.

  3. #3
    Join Date
    Jan 2009
    Location
    /Bangladesh/Dhaka
    Beans
    109
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: how to restore Grub on ubuntu 9.10

    Quote Originally Posted by sisco311 View Post
    You have to chroot in your 9.10 installation and reinstall grub2.

    Here is a guide: Grub 2 Basics (Reinstalling GRUB 2 from LiveCD).
    Thank you for ur company...

    I tried the method u suggest me..
    but it is not working for me(may be my fault).
    Is there any easy solution to make it recover(Like Graphical Solution)?
    -------------------------------
    Md. Shahadat Hossain
    Dhaka, Bangladesh.
    -------------------------------

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: how to restore Grub on ubuntu 9.10

    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Sep 2009
    Beans
    9

    Re: how to restore Grub on ubuntu 9.10

    I had this happen on a Mythbuntu 9.10 install...

    I redid my grub install over and over... then I checked and found that the BIOS for my box had been adjusted so that the first HDD had somehow become THIRD in the boot order of HDDs. Once I realized that my boot order had been altered... Well, when I fixed it, grub seemed to work really well

  6. #6
    Join Date
    May 2009
    Beans
    5

    Wink Re: how to restore Grub on ubuntu 9.10

    1. Boot from the CD/USB flash drive from which you installed Ubuntu
    2. Open terminal (It is there under Accessories)
    3. type in sudo fdisk -l
    4. then type sudo mount /dev/sdMP /mnt , where M is your drive and P is your linux partition. For instance sudo mount /dev/sda5 /mnt
    5. install GRUB again by typing this ...
    6. sudo grub-install --root-directory=/mnt /dev/sdA , where A is your drive. So you may type sda
    7. Now type sudo umount /mnt. So as to unmount the volume.

  7. #7
    Join Date
    Sep 2008
    Location
    Philadelphia, PA
    Beans
    5,193
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: how to restore Grub on ubuntu 9.10

    Quote Originally Posted by shahan View Post
    I am using 9.10 on ext4 filesystem
    however..I also use Windows Xp on my PC
    Yesterday I installed Windows Xp again due to some problem on XP. After that I tried to setup grub using Live CD of ubuntu 9.10. But I failed....
    how I tried:
    Application>Access.....>Terminal
    Then..
    sudo grub


    find /boot/grub/stage1
    where I get (hd0,*) *=1,2,3,4 etc..

    THen
    grub> root (hd0,*)
    grub> setup (hd0)
    grub> quit

    By this procedure I recovered my ubuntu 8.04.2 LTS...but it is not working on ubuntu 9.10
    what to do? So far I know it is GRUB2...May be for this reason it is not working...
    Waitting for reply...
    Need more info about your setup so I can give you two precise commands to run to reinstall grub. Let's get a better look at your setup & boot process. Boot the Ubuntu Live CD/USB. Choose "try ubuntu without any changes", when the desktop loads come back here and do the following:

    1. Download the boot info script. There is a link in my signature.
    2. Once downloaded move the boot info script to the desktop.
    3. Open a terminal and run the command
    Code:
    sudo bash ~/Desktop/boot_info_script*.sh
    This will create a RESULTS.txt file on the desktop. Paste the entire contents of that file back here. Once pasted highlight all text and click the # sign on the toolbar to place code tags around the text.

    See here for more info on the boot info script.

    Above link is to meierfra's Sourceforge web page.
    Multi-boot: Arch linux, Ubuntu 12.04, Windows 7 & Windows 8

  8. #8
    Join Date
    Feb 2007
    Beans
    3

    Re: how to restore Grub on ubuntu 9.10

    Just had a similar problem (although a lot simpler) after adding a 9.04-install in order to use my usb-modem...

    I let the MBR get overwritten, thinking this was fastest in the situation and I could always restore the 9.10 to be "primary boot" later... And after quite a bit of reading, the solution was so simple though noone wrote it directly...

    If you can boot in the system from which you intend to control grub2 (eg. the 9.10 install in my case), the solution is as simple as booting into this and typing
    Code:
    sudo grub-install /dev/sdX
    where X is of course the letter of the drive on which the MBR should be written (eg. sda to use the first harddrive)

    Obviously you might want to add
    Code:
    sudo update-grub
    in order to update the list of bootable systems

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

    Re: how to restore Grub on ubuntu 9.10

    Check out this Ubuntu forum thread for step to step installation of Grubhttp://ubuntuforums.org/showthread.p...4#post11124764
    This issue is solved here.

    __________________________________________________ _____________

    My blog on Open source
    Last edited by pritam_par; August 13th, 2011 at 10:20 AM.

Tags for this Thread

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
  •