In the next tutorial or trick, I will teach them what it is Windows the values for the Linux Grub, Because when the predefined time elapses, it is Microsoft’s operating system, which boots by default.
To achieve this, we will need to modify the boot launcher or also known as the Linux Grub, We will achieve this using the command line or terminal of Linux.
I decided to create this single practical tutorial, Since I have come across many users who do not know how enable this option, And they prefer that on booting the Linux Grub, either Windows which starts after the countdown.
I personally prefer that if I don’t touch anything on booting our system, it’s the option to Linux which prevails over that of Windows, But as there is nothing written about tastes and everyone has preferences, let’s mess with the method to follow to change the preferences in the boot of the Linux club.
Switching to Windows by default in Linux Grub
To achieve this, we will first open 1 terminal window and we will type the following command line:
- sudo nano grub.cfg
The terminal will show us the following:
Where we will have to modify only the line September default = »0″, In which we will change the 0 pel 4, Which is the number that corresponds to the Windows partition which is installed next to your system Linux.
To change that, we will move with the cursors of the arrows and we will place on the quotes that are to the right of the number zero, we will give the keys of Backspace or back and the zero will be erased and in its place we will place the 4.
After that, we will save with CTRL + O and then we’ll go out with CTRL + X.
We will not have to modify anything else, Simply with this we will have enabled the option to start with Windows by default from the Linux Grub. If we make a mistake, and change something else, we can get out without saving the trucks by the combination CTRL + X and then N.
More information – How to recover Linux grub in Ubuntu 12.04