See, this method only works when dual boot succeeded properly and you have all EFI settings located in the same folder under the same ESP partition.sudo update-grub
That was disappointing but not surprising because I am aware that this is a feature.
On Ubuntu and some other distributions, there is a dedicated command to update grub:🚧
Table of Contents
Step 1: Enable os-prober in grub
It should show an output like this:
Only this time, Grub did not show Windows in the menu 😔echo "GRUB_DISABLE_OS_PROBER=false" | sudo tee -a /etc/default/grub
If that’s not the case, you could try accessing the UEFI settings, go to boot order. Windows boot manager should be present there and if you move it up the order, you can boot from it into Windows.
Let me show you how you can fix this by enabling os-prober feature in Grub and then updating it.If you are familiar with any terminal-based text editor, use it to uncomment the line # GRUB_DISABLE_OS_PROBER=false
by removing the # at the beginning of the line.
Step 2: Update grub
This is not the most convenient option, I understand but it’s a workaround until you figure out why Grub bootloader could not see Windows.💬 I hope this little trick helps you get a better dual booting experience. Let me know in the comments if you were able to get Windows back in Grub.There is one little problem. The config changes won’t take place unless you update grub.When you type the password in Linux terminal, nothing is reflected on the screen. It feels as if your system is hanged, as there is no visible feedback. Don’t worry. It’s a security feature and most Linux terminals won’t even show asterisks (*) as you enter the password. Just type it in and enter.With os-prober enabled, Grub will look for the presence of other operating systems in EFI folder and will add them in the bootloader menu.
That’s because update-grub
is not a standard command. It is just la stub for this command:
Still no Windows boot manager?
sudo grub-mkconfig -o /boot/grub/grub.cfg
Grub config file is located at /etc/default/grub
. If you open it via Nano or some editor, you’ll see at the end of this file that os-prober is disabled by default sighting security reasons.And as you can see in the above output, grub is probing for other OS and has found Windows boot manager. This is an indication that when you reboot the system, grub should show Windows in the available option.
💡 Bonus tip: The time synchronization issue
Since we are discussing dual booting Windows and Linux, let me share another potential issue you’ll encounter. You’ll notice that system time changes when you switch between Windows and Linux. You can fix it, if you want.
However, if you are absolutely new to the command line, you can use this command in the terminal: