Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a dual boot setup: windows vista and ubuntu.

But, I actually have a duplicate Ubuntu install that I setup a long time ago to get my bootmenu back... (my computer at one point could not find the boot record because I was playing around with the partitions.. i couldn't start the computer, had to install new UBUntu, and my boot menu came back).

So I want to get rid of this duplicate Ubuntu install without having the same problem again where I cannot get the boot menu. The duplicate install is what caused my boot menu to appear again so thinking that they are connected.

Thanks.

share|improve this question

3 Answers 3

up vote 1 down vote accepted
  • Know the partition on which the " / " directory of your primary Ubuntu is mounted:

    Run this from your primary Ubuntu: df

    OR

    System > Administration > System Monitor > File Systems

  • Associate the GRUB (boot-menu) with your primary Ubuntu installation:

    sudo grub-install --root-directory=/dev/sdan /dev/sda

    Replace sdan with the partition on which the " / " directory of your primary Ubuntu is mounted (sda1 or sda2 or sdan)

  • Remove the duplicate Ubuntu installation using a partitioning tool.

  • Boot your primary Ubuntu, and run this command:

    sudo update-grub

share|improve this answer

You should be able to remove the duplicate and then run sudo update-grub in the remaining installation to update the grub menu. If you want to be safe, re-run sudo install grub /dev/sda where /dev/sda is the master boot hard drive. This will reinstall grub into the Master Boot Record, and configure it to point to your existing Ubuntu install's boot directory.

share|improve this answer

Just do whatever you need to do to remove the extra Ubuntu installation (Like installing a new OS). Then just run the live version of Ubuntu (you can find it here) and follow this guide that will show you how to restore grub: http://aroundtheweb.info/2010/10/restorerecover-grub-2-ubuntu-10-10-maverick-meerkat-reinstalling-windows-xpvistawin7/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.