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.
Asked
Active
Viewed 1,477 times
0
-
2If UEFI install you can change boot-order in UEFI-settings. – mook765 Oct 01 '18 at 12:10
-
I'm with @mook765, Windows has its own boot loader. In BIOS you can change your boot order, set Windows as first so it will skip Grub in its entirety. – m.devrees Oct 01 '18 at 13:07
-
@mook765 point is simply superb. – PRATAP Oct 01 '18 at 14:20
-
But majority of laptops or PC's accept only boot from HDD or USB one at a time. – PRATAP Oct 01 '18 at 14:27
-
Thank you all.. mine is not UEFI, so I could not find that option.. but the UEFI option seems a whole bit simpler and easier! – Uday Kiran Oct 01 '18 at 16:06
1 Answers
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 theupdate-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