Find the answer to your Linux question:
Results 1 to 10 of 10
How can I get back ubuntu 11 version which is already installed on my hard disk as the boot grub menu withouting installing ubuntu again or formatting again Wel l ...
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    5

    Question How can I get back ubuntu 11 version which is already installed IN HD

    How can I get back ubuntu 11 version which is already installed on my hard disk as the boot grub menu withouting installing ubuntu again or formatting again

    Wel l I was using ubuntu 9.10 and xp dual booting

    It was updated to 10.LTS later to 11 version but due to viruses I format my system and installed new os windows xp in another drive and again installed ubuntu 9.10 version and I found the 11 version which was upgraded previously was not formatted (deleted) and working fine and good condition. Due to again viruses attack I formatted my win xp

    When I used to turn on my system it used to ask for the selection of OS like ubuntu or xp(grub menu)

    I verified that my computers right click->select manage->under storage->under disk management-> I can see extra four partition (two for ubuntu and other two for swap space )

    Can anyone suggest me how can I get back ubuntu which is already installed at present I am using the win xp now I am using xp as mine current os

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Hello

    Windows will always overwrite the bootloader when it is installed after Linux, but you can check the following HowTo for a number of ways to restore your GRUB bootloader:

    https://help.ubuntu.com/community/Re...tallingWindows
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Boot up from LiveCD of any Linux distro and execute this in Terminal :
    Code:
    sudo fdisk -l
    Post output here.

    ** Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Ozar, as usual, gives good advice. The "grub-install" option in his link will probably get you where you want to be.

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Ubuntu 11.x uses GRUB2 and grub-install command won't work for that. Command for GRUB2 is 'sudo update-grub /dev/sdx' where x is disk name. Procedure is also different for GRUB2.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by devils casper View Post
    Ubuntu 11.x uses GRUB2 and grub-install command won't work for that. Command for GRUB2 is 'sudo update-grub /dev/sdx' where x is disk name. Procedure is also different for GRUB2.
    This Red Hat guy (me) should probably keep his nose out of the Ubuntu forum.

  7. #7
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Oops... sorry RAISINGSUN. I had not noticed they haven't upgraded their howTo to include GRUB2. The only hint they give on that howTo is the link to GRUB2. If you'll check the link to the GRUB2 howTo, you'll find some info there on reinstalling GRUB2:

    https://help.ubuntu.com/community/Gr...stalling_GRUB2

    Hope it helps you.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  8. #8
    Just Joined!
    Join Date
    Nov 2008
    Location
    Cape Verde
    Posts
    7
    1- Boot from a live CD of Ubuntu

    2- To see your partition table:

    sudo fdisk -l

    3- Localize the partitions where Ubuntu11 is, such as /boot, /, and /home.

    4- This is assuming that your system is on dev/sda and that your root partition is on dev/sda3, boot partition on dev/sda2 and home partition on dev/sda4. But you'll replace the number of the partitions according to what you have on your partition table.

    a) sudo mount /dev/sda3 /mnt
    b) sudo mount /dev/sda2 /mnt/boot
    c) sudo mount /dev/sda4 /mnt/home

    Mounting all other partitions:

    d) sudo mount --bind /dev /mnt/dev

    In order to be in /mnt as root:

    e) sudo chroot /mnt

    Install Grub:

    f) grub-install /dev/sda

    exit

    Now unmount all partitions you mounted before:

    a) sudo umount /mnt/dev

    b) sudo umount /mnt/boot

    c) sudo umount /mnt/home

    d) sudo umount /mnt

    reboot your system:

    sudo shutdown -r now

    Now you select your ubuntu on the menu entry,
    once in Ubuntu just perform this command:

    sudo update-grub

    OK!
    Last edited by Ikai; 09-12-2011 at 12:50 PM.

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Best and easiest way to re-install GRUB2 using LiveCD is given here. Check details under title 13. Reinstalling GRUB 2 from LiveCD. Just mho !!
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    Quote Originally Posted by devils casper View Post
    Best and easiest way to re-install GRUB2 using LiveCD is given here.
    That's a nice informative HowTo, and it appears that he's keeping it updated which is important considering all the changes that keep occurring with GRUB2.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...