sudo add-apt-repository ppa:danielrichter2007/grub-customizer & sudo apt-get update
Run the following commands to download and install the tool. We will use an open-source tool called Grub Customizer. Straight up, I wouldn’t recommend manually updating anything in the GRUB configuration file. Hence, we would need to create an entry for it in the GRUB configuration file. If this method doesn’t work for you, chances are the Windows Boot manager file cannot be detected by GRUB. Just follow the on-screen instructions provided by the Boot Repair tool and it will repair the GRUB file for you.īoot Repair will give you an unexpected error if you are using a beta version of Linux distro. The next screen will present to you a set of commands which you have to copy and paste in the terminal. This option will delete the previous GRUB file and rebuild it from scratch. Once done, click on “Recommended Repair”. It will take a minute or two to scan all your disks and partitions. sudo apt-add-repository ppa:yannubuntu/boot-repair & sudo apt-get update To begin with, use the following commands to add the required repository and install Boot Repair. It is similar to manually running os-prober and rebuilding the GRUB configuration file. It also repairs and rebuilds the GRUB configuration file.
The Boot Repair tool automatically searches for other operating systems on your disk. If the command line is not your cup of tea, you can alternatively try the graphical Boot Repair tool. The command will automatically create a Windows entry in the configuration file as well. If it detects Windows 10, you should get a similar output as below. The above command initiates scanning of all the partitions on your local disk and looks for various Operating systems installed.
If the above command is able to find the Windows 10 operating system, then we can rebuild the GRUB configuration file. If Windows is detected, you would get an output like below. The above command will look for other operating systems installed on your disks. The first step would be to check if Windows 10 can be detected by Linux. Rebuild GRUBĪt times, GRUB has problems locating the Windows MBR file on your disks. Skip to this step to check methods to change the default bootloader to Windows NT. It would be better to downgrade to Ubuntu 19.04 or move totally onto Windows. If you are on Ubuntu 19.10 Beta, the GRUB 2.04 has a lot of bugs.