Ubuntu – How to remove dual boot menu


I used to dual boot Ubuntu with Windows 7. I got rid of Windows and also deleted the partition where it was installed.

Now, in the dual boot menu Windows 7 is still available, and listed as first option. How do i completely remove the menu so that Ubuntu boots directly? Thanks in advance.

Best Answer

Open the terminal application and enter

sudo update-grub

This probes for other existing OSes and writes a new grub configuration; since you deleted the windows partition, it shouldn't be in the menu anymore on the next boot.

You can also disable the Grub Os Prober if you like. Just add GRUB_DISABLE_OS_PROBER=true to /etc/default/grub and run sudo update-grub again.

To disable the display of the menu:

Edit /etc/default/grub with elevated rights

and set GRUB_TIMEOUT=0

Run sudo update-grub again.

Related Question