Wednesday, November 16, 2011

Change the default operating system in Grub 2

Today we will see how to modify the Grub 2 of Ubuntu in order to change the Operating System that will start by default. To better understand an example we have installed on your computer is Windows 7 and Ubuntu when the computer since we installed two SO we will see the grub (Grand Unified Bootloader) application that manages the Ubuntu boot. As you can see the default 10 seconds after you start Ubuntu, but many people prefer to install both Windows and Ubuntu that Windows the default operating system, then let's see how to change the default to boot to Windows instead of Ubuntu:

First we need to restart your computer to see what position is Windows, as you may have noticed in the Grub menu there are several rows and each of them corresponds to a different startup, and each row corresponds to a sequence number, to keep in mind that rows are counted from "0" Not "1" That is the first line is called "Line 0" . Windows in most cases is the last position to the sixth line, then "Line 5“.

At this point we can start Ubuntu and go to open the Terminal ,with the key combination Ctrl+Alt+T ,and open the Grub configuration file by typing:
sudo gedit /etc/default/grub
At this point we will see a screen like this:

where we're going to change the voice
where 5 corresponds to the line 5 that Windows 7

At this point we save by clicking Save and close the file and go back to the terminal to update the information in grub by typing:
sudo update-gruba
We completed the process to restart the computer and we'll see that Ubuntu will no longer run but Windows.
If this article was useful and you want to help us to grow Subscribing to our feed or Click "Like" in our Facebook page ,or follow us via Twitter or subscribing to our feed.

People who read this post also read :


Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More