LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-06-2003, 02:39 PM   #1
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Rep: Reputation: 15
Kernel Panic 1.4.21


I'm having a bit of trouble booting my newly compiled 1.4.21 Kernel.

I have followed the Verbose Debian Kernel installation guide on OSNEWS

(http://www.osnews.com/story.php?news_id=2949)

and created a .deb package, which I installed on my system.

I created a boot floppy and updated lilo, following the prompts.

I then rebooted my machine and selected the new kernel.

I believe it started going wrong at this point:

kmod: failed to exec /sbin/modprobe -s -k block-major-3, errno=2

VFS: Cannot open root device "305" or 03:05 please append a correct "root=" boot option

kernel panic: VFS: Unable to mount root fs on 03:05

What exactly is this trying to tell me?

I think I should append the new lilo section to display "root= something-or other" Does anyone have any ideas? I can gladly provide more info if it will help.
 
Old 10-06-2003, 03:11 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
It is possible that your previous kernel used an initrd image - or that the one you have built uses initrd image.

In either case, you should have a look at your /etc/lilo.conf config file. If you don't recognize the term "initrd image" and you've configured and built the new kernel yourself you probably don't have it.
Search lilo.conf for a line that starts with "initrd=" and comment out the whole line (add a # as the first character on the line).

Rerun /sbin/lilo and reboot. Keep a rescue floppy (or the Debian installation CD, which can be used as a rescue CD if you can boot from the CD-ROM).

Note that if your old kernel used initrd it will need that line in /etc/lilo.conf.

hw
 
Old 10-06-2003, 03:22 PM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I hit the very same problem using the debian kernel packaging system with an ordinary source file. This was with 2.4.22. When I used the debian source package and compiled it the debian way it worked perfectly. There must be some tweaking done to the debian source. The only suggestion I can make is to compile and install the kernel the normal way.
 
Old 10-06-2003, 03:28 PM   #4
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
I checked lilo.conf and found no "initrd=" line, therefore I guess I should add it, as you sugested.

What does the initrd option do? Is there a standard option I need to pass for 2.4.x kernels?
 
Old 10-06-2003, 03:29 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
What command line parameters to you pass to make-kpkg when you build your kernel package? I still think you might be building initrd kernels and not having it in lilo.conf (or the other way around).

hw
 
Old 10-06-2003, 03:32 PM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
What it does? It adds a ramdisk which is used only during the boot process (if I recall correctly). Here's a snip from "man make-kpkg":

Quote:
--initrd
If make-kpkg is generating a kernel-image package, perform any
actions necessary for a kernel loaded using initrd. NOTE: this
requires a non-standard cramfs initrd patch to the kernel
sources, (unless the mkintrd configuration has been modified
not to use cramfs) or may result in a unbootable kernel. The
patch is generally present in the kernel sources shipped by
Debian, but is not present in pristine kernel sources. This
option may include extra dependencies, and modifications to
maintainer scripts. It has no effect when make-kpkg is not
making a kernel-image package. The same effect can be achieved
by setting the environment variable INITRD to any non empty
value. To avoid a warning at install time, please read kernel-
img.conf(5), and add a warn_initrd directive in that file. To
avoid the warning ar compile time, please set the environment
variable INITRD_OK.
hw
 
Old 10-06-2003, 03:38 PM   #7
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
The command I entered ( after make xconfig and make-kpkg clean) was:

make-kpkg --revision=786:MyKernel2.4.21 kernel-image
 
Old 10-13-2003, 02:35 AM   #8
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Sorry, my bad.

Guess which moron compiled a kernel without any IDE support at all, forgetting that his Hard Drive's an IDE job? Yes, you've guessed it.

The newly recompiled kernel's running fine now. Thanks for your patience, guys.
 
Old 10-13-2003, 02:43 AM   #9
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
LOL! That kind of thing happens to the best of us from time to time.
Glad you got it sorted.

hw
 
Old 10-14-2003, 01:50 AM   #10
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
3 block First MFM, RLL and IDE hard disk/CD-ROM interface
0 = /dev/hda Master: whole disk (or CD-ROM)
64 = /dev/hdb Slave: whole disk (or CD-ROM)

For partitions, add to the whole disk device number:
0 = /dev/hd? Whole disk
1 = /dev/hd?1 First partition
2 = /dev/hd?2 Second partition
...
63 = /dev/hd?63 63rd partition

For Linux/i386, partitions 1-4 are the primary
partitions, and 5 and above are logical partitions.
Other versions of Linux use partitioning schemes
appropriate to their respective architectures.



Quote:
Guess which moron compiled a kernel without any IDE support at all, forgetting that his Hard Drive's an IDE job? Yes, you've guessed it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration