How to change boot order of grub in Linux Ubuntu step by step with screen shot 2016 100% working hack
How to change boot order in Ubuntu distribution [Linux]?
Hello Friends , If you’re dual booting Ubuntu with Windows 7 or Linux operating system like Ubuntu, fedora, Zorin, Elementary, etc... Operating Systems, you may wish to change the boot order to set which OS starts by default.
Well, In this tutorial I’ll show you how to change boot order or default operating system now you just follow given simple steps.
How to change grub boot order step by step:Step 1: In order to change default boot entry, we need to [edit /etc/default/grub] file. Before starting, let's take a backup so that if anything goes wrong, you can easily restore backup file.
[sudo cp /etc/default/grub /etc/default/grub.bak]
Step 2: Now edit the file /etc/default/grub using text editor. Here I'm edit using gedit.
[sudo gedit /etc/default/grub]
Step 3: Find a line GRUB_DEFAULT=0.
GRUB menu indexing starting from zero (0). This means, if there are 'N' entries in the GRUB menu, the first entry is indexed as 0 (Zero) and second is 1 (One) and so on, and the last one is indexed as 'N-1'.
Step 4: Now, if you want to make 'Windows 10' as default OS, Which is listed at 5th position in grub loader then index number is 4. So, replace the 0 by 4 GRUB_DEFAULT=4.
Step 5: Save the file and close, For the changes made are not implemented yet, run the following command to implement:
And you're done!!!