To modify the boot options to boot Ubuntu and Windows without changing the default boot options, you can use the EFI boot manager. Here's a step-by-step guide:
-
Boot your system.
-
Press the
Shiftkey during boot to open the GRUB menu. -
Select the
Advanced options for Ubuntuoption. -
Choose the
Ubuntuoption from the list that appears. -
At the boot prompt, type
eto edit the boot options. -
Locate the line that starts with
linux. It should look something like this:
linux /vmlinuz-5.13.0-36-generic root=UUID=<your_uuid> ro quiet splash
- Add
efi_boot=offat the end of the line to disable secure boot:
linux /vmlinuz-5.13.0-36-generic root=UUID=<your_uuid> ro quiet splash efi_boot=off
-
Press
Ctrl+Xto save and exit. -
Press
Enterto boot Ubuntu with secure boot disabled. -
To boot Windows, repeat the process but do not add
efi_boot=offto the boot options.
Remember to save your changes permanently by editing the GRUB configuration file. You can do this by opening a terminal and typing:
sudo nano /etc/default/grub
Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT, add efi_boot=off at the end, and save the file. Then, update GRUB by typing:
sudo update-grub
This method allows you to boot both Ubuntu and Windows without changing the default boot options.
References: