Author Topic: [SOLVED] Grub fail to boot after last system update  (Read 3217 times)

acon

  • Board Moderator
  • Zen Samurai
  • *****
  • Posts: 453
  • Karma: +18/-0
    • View Profile
[SOLVED] Grub fail to boot after last system update
« on: July 23, 2011, 10:21:05 pm »
Today i have updated system from dahsboard. The updates include a new kernel (2.6.32-33) so i need to reboot.
On reboot, grub fail with:
Error: symbol not found: 'grub_putchar'
grub rescue>

Fortunately, i have an alternate boot disk with an Ubuntu 10.04 for recovery puposes on an USB drive.
Booting fron that disk and updating the USB disk GRUB, i can boot the main disk from USB drive GRUB.

With system up, i can do update-grub with no error, but rebooting with main disk grub, i still get same error.

I have not found a clear solution on the net, so any advice is welcome.

Thanks

PD: here is my /boot/grub/grub.cfg:
Code: [Select]
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
if terminal_input console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_input
  terminal console
fi
if terminal_output console ; then true ; else
  # For backward compatibility with versions of terminal.mod that don't
  # understand terminal_output
  terminal console
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
insmod play
play 480 440 1
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-33-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux   /vmlinuz-2.6.32-33-generic-pae root=/dev/mapper/gilab-root ro
        initrd  /initrd.img-2.6.32-33-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-33-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        echo    'Loading Linux 2.6.32-33-generic-pae ...'
        linux   /vmlinuz-2.6.32-33-generic-pae root=/dev/mapper/gilab-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-33-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-32-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux   /vmlinuz-2.6.32-32-generic-pae root=/dev/mapper/gilab-root ro
        initrd  /initrd.img-2.6.32-32-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-32-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        echo    'Loading Linux 2.6.32-32-generic-pae ...'
        linux   /vmlinuz-2.6.32-32-generic-pae root=/dev/mapper/gilab-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-32-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-31-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux   /vmlinuz-2.6.32-31-generic-pae root=/dev/mapper/gilab-root ro
        initrd  /initrd.img-2.6.32-31-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-31-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        echo    'Loading Linux 2.6.32-31-generic-pae ...'
        linux   /vmlinuz-2.6.32-31-generic-pae root=/dev/mapper/gilab-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-31-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-30-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux   /vmlinuz-2.6.32-30-generic-pae root=/dev/mapper/gilab-root ro
        initrd  /initrd.img-2.6.32-30-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-30-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        echo    'Loading Linux 2.6.32-30-generic-pae ...'
        linux   /vmlinuz-2.6.32-30-generic-pae root=/dev/mapper/gilab-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-30-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-29-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux   /vmlinuz-2.6.32-29-generic-pae root=/dev/mapper/gilab-root ro
        initrd  /initrd.img-2.6.32-29-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.32-29-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        echo    'Loading Linux 2.6.32-29-generic-pae ...'
        linux   /vmlinuz-2.6.32-29-generic-pae root=/dev/mapper/gilab-root ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-29-generic-pae
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set cc630f2c-2f5c-4008-81d5-25517f8ecf8b
        linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

The updated packages;
Code: [Select]
Install:
linux-headers-2.6.32-33-generic-pae (2.6.32-33.70),
linux-headers-2.6.32-33 (2.6.32-33.70),
linux-image-2.6.32-33-generic-pae (2.6.32-33.70)

Upgrade:
bind9 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
base-files (5.0.0ubuntu20.10.04.3, 5.0.0ubuntu20.10.04.4),
bind9-host (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
dnsutils (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
bind9utils (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
apt-transport-https (0.7.25.3ubuntu9.5, 0.7.25.3ubuntu9.6),
linux-image-generic-pae (2.6.32.32.38, 2.6.32.33.39),
logrotate (3.7.8-4ubuntu2.1, 3.7.8-4ubuntu2.2),
libdns64 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
python-apt (0.7.94.2ubuntu6.2, 0.7.94.2ubuntu6.4),
linux-libc-dev (2.6.32-32.62, 2.6.32-33.70),
libparted0debian1 (2.2-5ubuntu5.1, 2.2-5ubuntu5.2),
parted (2.2-5ubuntu5.1, 2.2-5ubuntu5.2),
libisccc60 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
apt-utils (0.7.25.3ubuntu9.5, 0.7.25.3ubuntu9.6),
openssh-client (5.3p1-3ubuntu6, 5.3p1-3ubuntu7),
apt (0.7.25.3ubuntu9.5, 0.7.25.3ubuntu9.6),
firefox (3.6.18+build2+nobinonly-0ubuntu0.10.04.1, 3.6.18+build2+nobinonly-0ubuntu0.10.04.2),
liblwres60 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
libbind9-60 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
ssh (5.3p1-3ubuntu6, 5.3p1-3ubuntu7),
libisccfg60 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
linux-generic-pae (2.6.32.32.38, 2.6.32.33.39),
firefox-branding (3.6.18+build2+nobinonly-0ubuntu0.10.04.1, 3.6.18+build2+nobinonly-0ubuntu0.10.04.2),
libisc60 (9.7.0.dfsg.P1-1ubuntu0.2, 9.7.0.dfsg.P1-1ubuntu0.3),
linux-headers-generic-pae (2.6.32.32.38, 2.6.32.33.39),
openssh-server (5.3p1-3ubuntu6, 5.3p1-3ubuntu7)
End-Date: 2011-07-23  20:12:57
« Last Edit: July 24, 2011, 07:43:06 am by acon »

stuartiannaylor

  • Guest
Re: Grub fail to boot after last system update
« Reply #1 on: July 24, 2011, 02:26:14 am »
Unfortunately I can't say what the problem is, but I have run the update and I have Linux 2.6.32-33-generic-pae on i686 and no probs?
Is it the 32 or 64 bit version?
« Last Edit: July 24, 2011, 02:27:58 am by stuartiannaylor »

acon

  • Board Moderator
  • Zen Samurai
  • *****
  • Posts: 453
  • Karma: +18/-0
    • View Profile
Re: Grub fail to boot after last system update
« Reply #2 on: July 24, 2011, 06:24:33 am »
It is the 32bit versión.
I will try this just now:
http://ubuntuforums.org/showthread.php?t=1581099

Thanks

acon

  • Board Moderator
  • Zen Samurai
  • *****
  • Posts: 453
  • Karma: +18/-0
    • View Profile
Re: [SOLVED] Grub fail to boot after last system update
« Reply #3 on: July 24, 2011, 07:44:43 am »
The previous link procedure has solved my problem.
Purged GRUB from my system and reinstalled.