How to change the default OS to windows.(Whenever a new version of Ubuntu is installed, the bootloader will always point to Ubuntu itself.
You switch on the computer and come across with number of weird options in GRUB starting with Ubuntu, memtest, something else and last option is reserved for windows.
Here is how you can change the default OS to windows:
1. Login to Ubuntu
2. open the terminal => Alt+F2 => type gnome-terminal
3. at the prompt,type
sudo gedit /etc/default/grub
4. The system will ask for an admin password as you are trying to make changes to one of the important files
5. in the editor, search for the parameter GRUB_DEFAULT, It will be set to 0(for Ubuntu) by default
6. change the value to 2,3,4 (wherever the option of windows is indexed at in the GRUB). Typically, it is 4 in a dual boot.
7. save the file
8. you will return back to the terminal
9. type in
sudo update-grub
This will regenerate the file /boot/grub/grub.cfg
You are done. The next time you see the GRUB, the default pointer will be at windows OS.
No comments:
Post a Comment