Recently I decided to use only Ubuntu and there is no Windows in my laptop. When I turn on my laptop the GRUB menu is showing but I don't need to choose OS anymore.
How can I remove or hide this?
And after removing this how could I access to recovery mode?
To not see the GRUB menu while booting:
/etc/default/grub
file using from terminal entering:gksu gedit /etc/default/grub
GRUB_TIMEOUT=10
toGRUB_TIMEOUT=0
sudo update-grub
This will remove the time that you need to wait for the GRUB menu to disappear.
IMPORTANT: If then you need to change to Recovery mode in some instance just press ESC when Linux starts. That is between when the BIOS finishes loading all necessary stuff and the Operating System starts. Then the GRUB menu will appear giving you the change to select the recovery mode.
I believe a better solution is to use the value:
then set the time out to something longer than 0 this way you can access grub since its hidden in the background, and you have a chance of actually stopping the boot sequence and selecting another kernel / recovery mode.
a feature that can come in handy when you have a broken system. You can read more about it here
The answers above didn't work for me so I thought I'd post this for completeness. In my version of grub the timeout screen doesn't hide when the
GRUB_TIMEOUT=0
. This seems to be a bug filed here: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1273764.An easy (but not so elegant) workaround is to set your
GRUB_TIMEOUT=0.1
. Apparently there is a script which overrides the value of the timeout when it= 0
for the user's own good!My grub configuration file just for anyone who wants to see is:
Another possibility if Windows has been removed from the computer is:
sudo rm -rf /boot/efi/EFI/Microsoft
.sudo update-grub
.When the
update-grub
script runs, it should note that there's no Windows and therefore generate agrub.cfg
file that includes no option to boot Windows and that doesn't present the menu.Note, however, that this approach makes it impossible to boot Windows. This is fine for Behzadsh, since the question specifies that Windows has been removed from the computer. (In fact, this approach essentially finishes the task of the incomplete removal that's already been done.) This approach is wrong for somebody who simply wants to bypass the GRUB menu but still retain the ability to boot Windows -- say, by using the computer's built-in boot manager to boot Windows. This approach will make it impossible to boot Windows, at least until the Windows boot loader is restored.