Today I updated the kernel to 3.5.0-18-generic and resulted into a grub
rescue again with a message "ELF smaller than expected".

Again, booted using the live-cd (old 11.10 version), ensure to have
network access through the GUI then hit CTRL-ALT-F1 to get to a shell
then did the following (with /dev/pts this time..)

sudo -s
mount -t xfs /dev/sda3 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt

Reinstalling the linux* packages from the /var/cache/apt/archives did
not worked.  Neither did the reinstallation of the grub packages...

What finally worked:
apt-get purge grub-pc grub-common
rm -fr /boot/grub
apt-get update
apt-get install grub-pc grub-common
--->>> selected only my /dev/sda drive for installation, and not my / partition 
/dev/sda3

exit (from chroot)
umount everything properly (really usefull? not sure...)
umount /mnt/dev/pts
umount /mnt/sys
umount /mnt/proc
umount /mnt/dev
umount /mnt

reboot -f

and voilĂ !  finally got a working grub and being able to boot.  Hoping
that totally purging + stripping out the /boot/grub directory will solve
my problem once and for good...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1051280

Title:
  reboot into grub prompt after system update

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1051280/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to