0

Installed Ubuntu 12.04 Feb 2014 - upgraded to 14.04LTS. I believe there is still remnants of older OS's still there somewhere, (they appear on the Grub multi-boot menu at start up).

An earlier version is now the default OS, however, I found by scrolling down the Grub multi-boot screen to the 5th option, I can access to the current working edition of 14.04LTS.

Naturally, I wish to make this the default.

I have edited /etc/default/grub to “default="4"”, saved & “update-grub” to boot in to the option on the 5th line down automatically. The /etc/default/grub now shows:-

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

Unfortunately this has made no difference to the boot up sequence, I still have to select the 5th line to access a working OS.

I now suspect that editing /etc/default/grub is not reaching deep enough into Root or MBR which might explain why my changes have been unsuccessful.

Is there a way of ensuring the Grub file is the right one in Root or MBR?

Can anyone help?

  • Please could you change backslashes with common slashes? – sebelk Apr 30 '15 at 13:51
  • After running update-grub, check if grub.cfg is modified. – sebelk Apr 30 '15 at 13:53
  • I believe that this extract from /boot/grub/ grub.cfg shows that it has accepted the change to default=4 ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then set have_grubenv=true load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="4" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_opt export menuentry_id_option if [ "${prev_saved_entry}" ]; then – Dot Ukay Apr 30 '15 at 14:20
  • I have changed the direction of the slashes - sorry. – Dot Ukay Apr 30 '15 at 14:23
  • Modified with new thoughts. Is the version of Grub which I edited deep enough to effect changes? – Dot Ukay May 12 '15 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.