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 three systems on my computer. I have had Windows for ages, than I installed Linux Mint and recently Ubuntu. Bootloader is using Mints Grub.

How do I change it so it will be using Grub from my Ubuntu partion? I want to get rid of Mint, but I'm afraid that if I just delete/format Mint partition, I will screw up my Grub and won't be able to boot into any of my systems.

  • Windows (sda3)
  • Mint (sdb1)
  • Ubuntu (sda5)
share|improve this question

2 Answers 2

up vote 0 down vote accepted

I see that your Mint drive is on a separate disk (/dev/sdb1). If your computer is booting off the thumb drive, you may need to reconfigure your BIOS settings. If you don't know how to do this, consult your manufacturer.

How to reinstall grub:

  1. Boot into Ubuntu.
  2. Run the command grub-install /dev/sdX where /dev/sdX is the drive you want to boot off of.
  3. Reboot into Ubuntu, and verify you are booted off Ubuntu's GRUB, and not Mint's.
  4. Remove the Mint partition and then run update-grub, on Ubuntu to re-detect partitions. Make sure that you see each operating system in the output.
  5. Complete Step 2 again, and verify everything is working correctly.
share|improve this answer

you must re install grub, the easiest way is to log into one of your linux systems, then mount your ubuntu partition lets say it is mounted at /media/ubuntu, then go to terminal and do:

sudo grub-install --boot-directory=/media/ubuntu sda

hope my syntax is correct ;)

share|improve this answer
    
It isn't working. I'm getting the following error: source_dir doesn't exist. Please specify --target or --directory –  Ralf Feb 23 '13 at 19:51
    
I edited, --boot-directory ;) if you have two or more hard disks then sda might be something else. –  Mostafa Shahverdy Feb 24 '13 at 3:32
1  
Thank you very much! –  Ralf Feb 25 '13 at 2:29

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.