Hello good people, do you have a computer installed both Linux and Windows and want to change the boot order? Worry no more you are in the right place.
Steps: Linux Kali and windows 10 dual boot
- Open terminal from your Linux OS
- Type the following code to open Grub gedit /etc/default/grub if you don’t have root access add sudo before the code. gedit is the file editor you are using, you can use leafpad or even atom, just change the gedit to your favorite file editor
- Hit enter after the code and you should get the grub code as shown below
- check for the GRUB_DEFAULT=0 this is the one that holds the order of booting. 0 is the first OS to boot by default which is usually Linux unless changed.
- Change GRUB_DEFAULT=0 for 0 to the OS number you want. the number can be gotten from the boot menu where you select the type of OS to boot into, remember you start the count from 0.
- Save your grub
- Now open terminal again and type this code update-grub to update the grub, remember to add sudo if you don’t have root access.
- Restart you computer now and the system will automatically boot into the OS you set in the Grub
Watch the tutorial