Changing OS Boot Option in Dual Window and Ubntu

These steps will provide you to change the default boot option from Ubuntu to Window .

1. select the Advance option for Ubuntu

2. Then select the recovery mode and press -e for edit

in edit rename - ro to rw then ctrl+x for saving


Drop down to root and enter the root password [ *********]

root@ubuntu01# usermod -aG sudo mishrark [ Replace your username]

This will change the normal user to super user privilege

root@ubuntu01# grep sudo /etc/grub [ for checking]

root@ubuntu01# sync

ctrl+D

Now click on Resume and enter the user password [********]

search for window:

mishrark@ubuntu01~$ grep "win" /boot/grub/grub.cfg

copy wth windows full path

and paste in :-

mishrark@ubuntu01~$ sudo vim /etc/default/grub\

Enter the password : [********]

grup-default=0[ so replace the 0 with window fulll loader path]

ESQ : wq for saving the changes


mishrark@ubuntu01~$ sudo update-grup

Now default boot option will be change from Ubuntu to windows

IInd option


$ sudo vi /etc/default/grub

GRUB_DEFAULT="Windows NT/2000/XP (loader) (on /dev/sda1)"


Open another Terminal :

grep menuentry /boot/grub/grub.cfg

sudo update-grub


https://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader#:~:text=You%20need%20to%20edit%20the,Windows%20as%20your%20default%20OS.&text=You%20will%20then%20select%20the,double%20quotes%20and%20copy%20it.