LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-15-2007, 05:21 PM   #1
Ken Russell
LQ Newbie
 
Registered: Jan 2006
Location: Worcester, U.K.
Distribution: Ubuntu
Posts: 18

Rep: Reputation: 0
not able to boot to default kernel


using mandriva 2008. when trying to boot to default kernel it doesn't work and hangs with a kernel panic.
Can boot to other kernels, but get the message

"Nov 15 19:51:27 localhost kernel: RAMDISK: Couldn't find valid RAM disk image starting at 0.
Nov 15 19:51:27 localhost kernel: EXT2-fs warning (device hda1): ext2_fill_super: mounting ext3 filesystem as ext2
Nov 15 19:51:27 localhost kernel: VFS: Mounted root (ext2 filesystem) readonly. "

then boots ok.

Whats happening.

I'm moderatly technical, but this has me stumped, all help gratefully received and I'm happy to post the solution here if it'll help. Also happy to hear if my hard drive is ill, as this looks a possible cause.

Oh by the way, bootloader is LILO

Ken
 
Old 11-15-2007, 05:43 PM   #2
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
What error messages does the default kernel give before it panics? There are a number of possible causes, other error messages might help in pinning it down. Did you make any changes recently, e.g. upgrading kernels? Did you do everything through the package management system or did you change things manually?

As for the hard drive, you can check your kernel log for errors relating to that. You could also try installing smartmontools and running a diagnostic. Unless you're noticing other problems after booting, I'm guessing hard drive errors probably aren't the cause.
 
Old 11-15-2007, 05:43 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,689

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
"Nov 15 19:51:27 localhost kernel: RAMDISK: Couldn't find valid RAM disk image starting at 0.
Does your lilo config include an initrd line? It would look something like this:
Quote:
image=/boot/vmlinuz
label="linux"
root=/dev/hda5
initrd=/boot/initrd.img
append="quiet devfs=mount acpi=off"
read-only
 
Old 11-18-2007, 02:57 PM   #4
Ken Russell
LQ Newbie
 
Registered: Jan 2006
Location: Worcester, U.K.
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
ok here is some more info.

Thanks for the pointers guys. Here is what i have found :-

Yes there is an initrd line in my lilo config, the default is

initrd=/boot/initrd.img

and all the other entries are of the form

initrd=/boot/initrd-<kernel version>mdk.img

where <kernel version> is..well its the relevant kernel version !

I have installed smartmondisk and done a long test which indicates no hard disk erors.

I have used the package manager to install everything and I do think that it was an updated package that caused the start of the problem. i can't remember exactly what it was, but i definitely had an updated bootsplash screen or somehing from Mandriva, since when I appear to have the problem. Difficulty is I don't know what the package was called.

The kernel panic message are as follows (excuse any errors as obvioulsy this is handwritten !)

Ramdisk Compressed image found at block 0
switched to high resolution mode on CPU0
invalid compressed format (err=1)
vfs cannot open root device "301" or unknown-block(3,1)
Please append a corect "root=" boot option:here are the available partitions:
Kernel-panic - not syncing : vfs : unable to mount root fs on unknown-block(3,1)

Hope that rings a bell with someone !

Would i be right in assuming that the issue is with the initrd.img as the others appear to work ok ??

Ken
 
Old 11-20-2007, 11:10 AM   #5
Ken Russell
LQ Newbie
 
Registered: Jan 2006
Location: Worcester, U.K.
Distribution: Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Solved !

Well looks like I'd just been a little impatient here !

Having seen a related thread here I decided to use the drakboot graphical boot loader configurer. I'd aborted it a few days ago believeing it to have crashed, must have left something mangled in lilo.conf.

All seem fine now, thanks to everyone who posted !

By the way ! I believe GRUB is better/easier...true or false ??

Ken
 
Old 11-21-2007, 03:01 PM   #6
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
I'm sure there are plenty of arguments about lilo vs. grub. There is one difference that I think is worth mentioning: when the lilo configuration file changes, lilo has to be updated. However, when the grub configuration file changes, nothing more needs to be done. For this reason I prefer to use grub. I've no idea what lilo's command prompt is like (or even if there is one), but while the grub prompt is a little difficult to get to grips with, figuring it out has enabled me to fix booting problems on a number of occasions.
 
Old 11-21-2007, 03:59 PM   #7
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 57
Grub, I find, is easier to use and more adaptable then LILO.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Message at boot: "Choose a profile: 'default' or 'default.backup' " rm_-rf_windows Mandriva 1 07-07-2007 08:05 AM
Change de default boot kernel mr_sarge Linux - Newbie 6 10-10-2005 11:30 AM
Mandrake 10.1 Default kernel won't boot after install ibanez862 Mandriva 2 12-08-2004 07:43 PM
How to set FC2 to default boot from the latest kernel simke Fedora 2 09-07-2004 08:44 PM
LILO wont boot default Kernel DigiCrime Linux - General 7 03-23-2004 10:58 PM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration