Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a dual boot ubuntu and windows 8. Ubuntu is default os to start up and countdown select the default os to boot If I don't change that before. When I order between ubuntu and windows 8 countdown automatically hide and then, I have to press enter to boot from any highlighted os without time limit.My question is: How can I disable countdown for always and I select which os starts up with using up/down arrow key myself and until I don't select and don't pressing enter, that freeze on grub menu. Any ideas would be my pleasure

Note: There is no /etc/default/grub file in my ubuntu.

Edit: I reinstalled grub (sudo apt-get --reinstall install grub2 grub-pc) and now i have a/etc/default/grub file but the countdown did not stop with this changes:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)

# Uncomment to disable graphical terminal (grub-pc only)

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux

# Uncomment to disable generation of recovery mode menu entries

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

I delete double quote GRUB_TIMEOUT="-1" around -1 which is automatically added to it and save then running sudo update-grub I get the following warning:

Warning: Setting GRUB_TIMEOUT to a non-zero value when 
         GRUB_HIDDEN_TIMEOUT is set is no longer supporte
share|improve this question

marked as duplicate by Eric Carvalho, bain, Danatela, bodhi.zazen, Seth Jun 20 '14 at 0:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Look at this There was no /etc/default/grub file – TuKsn Jun 15 '14 at 17:45
@Tuknutx I don't have /etc/default/grub file but I have /boot/grub/grub.cfg and in the second line I read # DO NOT EDIT THIS FILE. – Afshin Hamedi Jun 15 '14 at 18:09
@Tuknutx I follow @Null Pointer answer and install commented command the file /etc/default/grub fixed And change GRUB_TIMEOUT=-1 and then sudo update_grub but still countdown. – Afshin Hamedi Jun 15 '14 at 18:26
You don't have to double quote -1! – Null pointer Jun 15 '14 at 18:45
You can try to comment out the following two lines to # GRUB_HIDDEN_TIMEOUT=0 # GRUB_HIDDEN_TIMEOUT_QUIET=true then set GRUB_TIMEOUT=-1 then sudo update-grub – TuKsn Jun 15 '14 at 19:26
up vote 5 down vote accepted

To get grub file in /etc/default/grub

sudo apt-get install grub2 grub-pc

Then run

sudo update-grub

Now open /etc/default/grub using your favourite editor.

(you may need sudo permissions!)

And set this field to -1 to wait indefinitely!


You can try to comment out the following two lines to


Now again run

sudo update-grub

and you are done! Hope this helps!

share|improve this answer
Please read my comment I have not /etc/default/grub in my ubuntu. – Afshin Hamedi Jun 15 '14 at 17:54
If you don't have this file then Try this sudo apt-get --reinstall install grub2 grub-pc – Null pointer Jun 15 '14 at 17:55

You can do this graphically with Grub-customizer, and the instructions for installing that program are located in the Ubuntu forums at

share|improve this answer

Perhaps you have an EFI system, and grub is on the EFI partition. Hopefully mounted for you under Files->computer->/boot/efi, on my system grub.cfg is in /boot/grub .

No idea if the solutions posted so far would work for that.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.