menu.lst problems

Ray Parrish crp at cmc.net
Sat Jan 31 18:02:52 UTC 2009


Peter Hillier-Brook wrote:
> Hello all,
>
> is there anyone who can help to stop my head hurting? After a trivial 
> edit of menu.lst to fix a couple of options, I can no longer boot the 
> default kernel (Error 15: File not found), although I can boot from the 
> recovery version and, at the appropriate time, select to continue 
> normally. I can see no differences and therefore I suspect that I'm 
> missing the obvious, whatever that might be.
>
> The relevant fragment of menu.lst follows.
>
> title		Ubuntu 8.10, kernel 2.6.27-11-generic
> uuid		a42730ca-039c-485d-a153-c367d8ef4f51
> kernel	 
> /vmlinuz-2.6.27-11-genericroot=UUID=1d77c373-b6c8-41ba-bb0f-2f2a99d88df8 ro
> initrd		/initrd.img-2.6.27-11-generic
> quiet
>
> title		Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
> uuid		a42730ca-039c-485d-a153-c367d8ef4f51
> kernel		/vmlinuz-2.6.27-11-generic 
> root=UUID=1d77c373-b6c8-41ba-bb0f-2f2a99d88df8 ro  single
> initrd		/initrd.img-2.6.27-11-generic
>
> Whilst on this topic, I also tried to manually use update-grub to detect 
> the -11 kernel which should have been automatically added to menu.lst 
> (the relevant entries are in kernel-img.conf), but wasn't. It claimed to 
> be doing the job, but the result was an unchanged menu.lst.
>
> Ant thoughts gratefully received.
>
> Peter HB
>
>   
Well, if you copied and pasted that in, I'm noticing that there is no 
space, or line feed between the kernel line, and the root line in the 
one you're trying to boot from, but can't.. Make it look like the 
following -

title        Ubuntu 8.10, kernel 2.6.27-11-generic
uuid        a42730ca-039c-485d-a153-c367d8ef4f51
kernel     /vmlinuz-2.6.27-11-generic 
root=UUID=1d77c373-b6c8-41ba-bb0f-2f2a99d88df8 ro
initrd        /initrd.img-2.6.27-11-generic quiet

Note the added space charachter after the word generic. Or, better yet, 
format it like this entry from my menu.lst file -

title        Ubuntu 8.04.2, kernel 2.6.24-23-generic
root        (hd0,5)
kernel        /boot/vmlinuz-2.6.24-23-generic 
root=UUID=d87df8a8-9b0a-46c9-82ef-7c5503f46c62 ro quiet splash
initrd        /boot/initrd.img-2.6.24-23-generic quiet

Note that the UUID setting isn't repeated normally, and the first root 
setting points to the partition Ubuntu is on. I'm not sure why the 
"quiet" setting is repeated, but it's in all of my old menu.lst files 
that way, as well as in your examples so I guess it's the norm.

Later, Ray Parrish





More information about the ubuntu-users mailing list