Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently installed Linux Mint along with my Ubuntu. The GRUB has replaced Mint as the default OS. How can I set Ubuntu as the OS that loads automatically again?

share|improve this question
up vote 1 down vote accepted

Boot Ubuntu, open a terminal window (ctrl-alt-t), and run

sudo grub-install /dev/sda

PS: dev/sda would, almost always, be the correct device to use if Ubuntu is installed on a single internal hdd. In case you have more the one internal hdd, or if Ubuntu is installed on an external one, verify the correct device name by running mount | grep ^/.

share|improve this answer

I have needed to do this before,

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Eliah Kagan Jan 15 '13 at 19:52

I used to edit grub's configuration files by hand back when Ubuntu used grub 1. I find grub 2's configuration files to be way too messy to try and learn all of their intricacies, so I simply use the available GUI programs instead.

I highly recommend startupmanager and/or super-boot-manager (you might have to add a ppa for the latter).

Once installed, you simply fire up the GUI software and configure your grub (super-boot-manager can be also used to configure burg, which is a grub-based alternative with a some very good-looking themes). If all you want to do is change the default OS for booting, then all you have to do is select it from a roll-down list and press OK.

If you want to configure grub's config files directly, you're not supposed to be touching /boot/grub/grub.cfg. That file is supposed to be generated automatically based on what's written in a slew of files in /etc/grub.d/. Editing grub.cfg does work, and it is the easiest (from the non-gui ways) quick and dirty solution, but it's discouraged because it will break once you update your kernel.

Good luck!

share|improve this answer

Your Answer


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.