Ubuntu – Hide GRUB2 menu UNLESS you hold down Shift key: how to make this happen

bootdual-bootgrub2

I have a Ubuntu – Windows 7 dual-boot set-up, and I would like to have it that my laptop would boot up Windows 7 unless I press down the Shift key right after boot and bring up the Grub2 menu from which I can choose Ubuntu.

I researched on Grub2 and options for etc/default/grub and I have tried playing around with combinations with the GRUB_TIMEOUT and GRUB_HIDDEN_TIMEOUT values, but to no avail. I tried setting the GRUB_HIDDEN_TIMEOUT higher than the GRUB_TIMEOUT thinking that both countdown start simultaneously, but no – GRUB_TIMEOUT only starts after the other is done.

Is this behavior achievable?

If so, how?

Best Answer

I think that I found a simpler resolution. Modify the following lines in the file /etc/default/grub :

GRUB_HIDDEN_TIMEOUT=0.0

GRUB_TIMEOUT=0.0

Of course we finally run an update-grub. It works on my PC.

Related Question