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


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