Grub problems Lucid 10.04

Joep L. Blom jlblom at neuroweave.nl
Thu Jun 9 14:11:21 UTC 2011


On 31/05/11 23:29, Joep L. Blom wrote:
> On 31/05/11 18:03, Goh Lip wrote:
>> On 05/31/2011 11:47 PM, Tom H wrote:
>>> On Tue, May 31, 2011 at 11:20 AM, Goh Lip<g.lip at gmx.com> wrote:
>>>> On 05/31/2011 09:44 PM, Joep L. Blom wrote:
>>
>>>> To include new kernels...
>>>> sudo update-grub
>>>>
>>>> To rectify most problems...(and include new kernels)
>>>> sudo grub-install /dev/sda #assuming sda#

>>> You can't just run "update-initramfs", you have to run
>>> "update-initramfs -u".
Goh lip & Tom,
Today a took the time to follow your advices and they finished without 
errors.
A peculiar thing is:
sudo update-grub
[sudo] password for joep:
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-2.6.32-32-generic
Found kernel: /boot/vmlinuz-2.6.32-31-generic
Found kernel: /boot/vmlinuz-2.6.32-30-generic
Found kernel: /boot/vmlinuz-2.6.32-29-generic
Found kernel: /boot/vmlinuz-2.6.32-28-generic
Found kernel: /boot/vmlinuz-2.6.32-27-generic
Found kernel: /boot/vmlinuz-2.6.32-26-generic
Found kernel: /boot/vmlinuz-2.6.32-25-generic
Found kernel: /boot/vmlinuz-2.6.28-16-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
Well that looked good. However, bootinfoscript gave as important info:
....
			 Boot Info Summary:

  => Grub 0.97 is installed in the MBR of /dev/sda and looks on the same 
drive in partition #1 for /boot/grub/stage2 and /boot/grub/menu.lst.
(info about boot sectors on /dev/sdb and /dev/sdc)
sda1: 
_________________________________________________________________________

     File system:       ext3
     Boot sector type:  -
     Boot sector info:
     Operating System:  Ubuntu 10.04.2 LTS
     Boot files/dirs:   /boot/grub/menu.lst /etc/fstab
....
(Info about other partitions on /dev/sda/ and on the other 2 drives)
...
A lot of partition info but I think irrelevant for the current problem. 
If not I stand corrected. And then:
=========================== sda1/boot/grub/menu.lst:
I skip the standard comment and known info and then:

## ## End Default Options ##

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-26-generic
uuid		3c58a895-d0e0-499b-a7fc-35a270b3e7ab
kernel		/boot/vmlinuz-2.6.32-26-generic 
root=UUID=3c58a895-d0e0-499b-a7fc-35a270b3e7ab ro splash
initrd		/boot/initrd.img-2.6.32-26-generic


title		Ubuntu 10.04.1 LTS, kernel 2.6.32-26-generic (recovery mode)
uuid		3c58a895-d0e0-499b-a7fc-35a270b3e7ab
kernel		/boot/vmlinuz-2.6.32-26-generic 
root=UUID=3c58a895-d0e0-499b-a7fc-35a270b3e7ab ro  single
initrd		/boot/initrd.img-2.6.32-26-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-25-generic
uuid		3c58a895-d0e0-499b-a7fc-35a270b3e7ab
kernel		/boot/vmlinuz-2.6.32-25-generic 
root=UUID=3c58a895-d0e0-499b-a7fc-35a270b3e7ab ro quiet splash
initrd		/boot/initrd.img-2.6.32-25-generic
quiet

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-25-generic (recovery mode)
uuid		3c58a895-d0e0-499b-a7fc-35a270b3e7ab
kernel		/boot/vmlinuz-2.6.32-25-generic 
root=UUID=3c58a895-d0e0-499b-a7fc-35a270b3e7ab ro  single
initrd		/boot/initrd.img-2.6.32-25-generic


title		Ubuntu 10.04.1 LTS, memtest86+
uuid		3c58a895-d0e0-499b-a7fc-35a270b3e7ab
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
  As you can see the kernels which sudo grub-update shows are not in the 
file menu.lst and I have no idea where grub-update has stored them.
I also did  update-initramfs -u but also no effect and my system boots 
still with 2.6.32-25-generic instead of 2.6.32-32-generic.
The time stamp of menu.lst does not change. Is it an option to remove it 
(i.e. to rename to .old)?
I hope I have given sufficient information for you to see what I have 
overlooked.
Joep






More information about the ubuntu-users mailing list