0

I have Windows 10 and Ubuntu 18.04. Is there any way I could temporarily disable grub so that it would by default boot into Windows 10. I would like to undo it when I need Ubuntu and the dual boot screen back.

1 Answers1

1

Interesting question. To do so, you may want to edit your /boot/grub/grub.cfg to mark as comments Ubuntu entry lines (make Ubuntu entry inactive) and leave the rest as is. This way you "remove" (hide) temporarily your dualboot so only another OS will be shown on the bootloader.

To revert it back, simply unmark the comments you made (make Ubuntu entry active).

  • The file /boot/grub/grub.cfg gets overwritten by the update-grub command. 2) How would you edit the file when you always boot into Windows after the change?
  • – PerlDuck Oct 01 '18 at 11:51
  • @PerlDuck hi Perl: 1) you don't have to run update-grub to get the result 2) by having a LiveCD of Ubuntu or any GNU/Linux of course. – Ade Malsasa Akbar Oct 01 '18 at 13:42
  • Thank you.. that should work. I was hoping I could edit from windows using some utility that could read ext file system. – Uday Kiran Oct 01 '18 at 16:03
  • @UdayKiran what utility did you use? how did it work out? – YesItsMe Apr 19 '20 at 08:37