I have a machine in which I had Windows 10 before installing Ubuntu 16 recently. But each time I start the computer, if I am not close to enter into the boot setup to specify Ubuntu, it goes straight on Windows. I would like that the default OS selected is Ubuntu.
I tried to edit my grub order by doing this: sudo gksudo gedit /etc/default/grub
, but I had already this line GRUB_DEFAULT=0
, indicating my Ubuntu should be the first to boot.
I guess my Ubuntu is using UEFI since I have the following folder: /sys/firmware/efi/
.
This question has already an answer here.
But this answer is very old now. And I wonder if there is a new way to solve the same issue, using only Ubuntu. If not, I would like to know why should we use only Windows to solve the issue.
GRUB_DEFAULT=0
should work. But there is a second step: You must make it active by runningsudo update-grub
. If it is still not working, booting is not using this grub menu, but some other grub menu or other boot menu. If BIOS mode you may have to runsudo grub-install /dev/sdx
where x is the drive that the computer is booting from. See this link, https://help.ubuntu.com/community/Grub2/Installing#Reinstalling_GRUB_2 ; If UEFI mode (with factory installed Windows 10), see the link to the original question (of which yours may be a duplicate). – sudodus Oct 14 '17 at 16:43