Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have just finished a succesfully upgrade from 10.04.4 to 12.04.1 on my remote server. After reboot, I have verified that it is still booting from the old kernel:

$ uname -a
Linux socrates 2.6.32-41-generic-pae #94-Ubuntu SMP Fri Jul 6 17:08:20 UTC 2012 i686 i686 i386 GNU/Linux

I have also run update-grub:

 $ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-29-generic-pae
Found kernel: /boot/vmlinuz-2.6.32-41-generic-pae
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

But it is still booting from the old one... I have verified that I am still running grub Legacy:

   dpkg -l grub* | grep ii
ii  grub                                 0.97-29ubuntu66                     GRand Unified Bootloader (Legacy version)
ii  grub-common                          1.99-21ubuntu3.1                    GRand Unified Bootloader (common files)
share|improve this question
2  
Try sudo aptitude install grub-pc OR sudo apt-get install grub-pc to upgrade from Grub Legacy to Grub 2. –  Peachy Aug 24 '12 at 10:28
    
msPeachy, this is a remote server and I have seen that the procedure to upgrade to grub-pc will ask for a choice at the boot. I can't. –  Fabio Aug 24 '12 at 15:04
    
Please share the content or output of the following commands/files to better help us troubleshoot your problem (instructions in this answer): file(s): /boot/grub/menu.lst –  izx Aug 24 '12 at 17:33
add comment

2 Answers 2

You already have installed grub and grub-common

Before you install grub-pc, you could install boot-repair, then call it as an application and automatically export its log file to 'http://paste.ubuntu.com' without modifying anything. This log file perhaps detect some errors, you can even post a link to it.

Cannot overwrite Debian6 grub, with Ubuntu grub2

Use sudo grub-install /dev/sdX X is the drive letter ex:- a, b You can find it out by doing a sudo fdisk -l

Then do a update-grub2

You can use again boot-repair and export another log file without modifying anything

share|improve this answer
    
This is a remote server, without console access. So I can only access it through root/ssh and I cannot risk to brake anything. It is working since 2010 without any problem and I expected a smooth upgrade. Why this problem? I never installed grub2... This is a pure server, no-GUI. –  Fabio Aug 24 '12 at 14:30
add comment

I fixed this by installing grub-pc.
Thanks.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.