Wednesday 19 June 2013

Fixing Grub

After resurecting my old WinXP drive recently, the GRUB menu appears during the startup routine on my workshop machine. It's probably because two operating systems are detected during the boot sequence but as I never intend to use WinXP on this machine, this behaviour is a little irritating - fortunately, it's easy to fix!

From a terminal (Ctr+Alt+T), open your grub file:

sudo gedit /etc/default/grub

Input your password when prompted and make the following changes:

  1. Un-comment line 2 #GRUB_HIDDEN_TIMEOUT=0
  2. Change line 3 from: GRUB_HIDDEN_TIMEOUT_QUIET=FALSE to read: GRUB_HIDDEN_TIMEOUT_QUIET=TRUE
  3. Amend line 4 to read: GRUB_TIMEOUT=0

The relevant part of the amended file should look similar to this:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Save and close the file and then update grub:

sudo update-grub

Reboot:

sudo shutdown -r now

Sources: & References:

No comments:

Post a Comment