PDA

View Full Version : [ubuntu] Grub menu messed up by latest linux image upgrade



Terrycymru
May 27th, 2008, 11:35 AM
Update-grub did not adjust the value of the default booted system when I upgraded today although my options are set to do so.

In this line in boot/grub/menu.lst the default was changed from 0 to 2 (i.e. the value for the old linux image):


## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0


The solution is to edit menu.lst back to default 0 (assuming you wish to boot to the latest linux image by default.)

meierfra.
May 27th, 2008, 11:53 PM
I'm trying to understand why this happened. Do you have

# updatedefaultentry=false

or

# updatedefaultentry=true

in menu.lst?

Terrycymru
May 28th, 2008, 06:45 AM
I'm trying to understand why this happened. Do you have

# updatedefaultentry=false

or

# updatedefaultentry=true

in menu.lst?

I have # updatedefaultentry=true but grub update seemed to ignore it. No one else has confirmed a similar experience.

I have subsequently removed an old linux image and the default entry was updated as expected. Weird.

meierfra.
May 28th, 2008, 07:34 AM
# updatedefaultentry=true

This is your problem. It tells grub to make sure that whatever title currently is the default stays the default during updates.

Change it to "# updatedefaultentry=false" and your problem is gone.

Terrycymru
May 28th, 2008, 07:50 AM
Thanks, meierfra. :)