LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2004, 11:39 PM   #1
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Rep: Reputation: 30
latest kernel WITHOUT Kernel Panic issues???


I've been trying to get kernel 2.6.5 to work, but cannot get past the

> Kernel Panic: VFS: unable to mount root fs on unknown block (33,4)

issue. The problem has come up often on this forum and elsewhere. It is even addressed on the Slackware site (although their suggestion to modify LINUX.BAT wasn't acted upon since I could find no such file). I've tried every suggestion I've run across and cannot get past the panic. Is there a recent kernel that didn't have this problem? 2.4.22 worked fine, although I had not compiled it myself.
 
Old 04-27-2004, 11:47 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That usually means that you didn't compile support for your root file system in the kernel.
 
Old 04-28-2004, 03:16 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I could imagine the following reasons:
  • as MS3FGX said, the root-filesystem is not compiled in the kernel nor present in initrd (easy to fix)
  • you may need to boot with the option APIC enabled (but that was on kernel 2.4, SuSE 9.0 and Dell GX270)
  • you are running a SATA-drive, which is on /dev/sdx instead of /dev/hdx
  • you experience the same strange problem that I had with SuSE 9.0 on a Dell GX270. I fixed it, don't ask how, but I can send you my config-file for the Vanilla source on request.
  • for the SuSE, an update-kernel is available that shifts you to the SuSE 9.1 kernel (did not work in my case)

In the boot messages, do you get something like this ?
Code:
hda: 234375000 sectors (120000 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(33)
 hda: hda1 hda2 hda3 < hda5 hda6 hda7 >
This would show you if the harddrive gets recognized somehow. If not, I guess you need to play around with the drivers in the kernel config.

Good luck!
 
Old 04-28-2004, 09:15 AM   #4
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
I should have said that I'm compiling the kernel in slackware and have removed Suse from my system.

<as MS3FGX said, the root-filesystem is not compiled in the kernel nor present in initrd (easy to fix)

Concerning compiling support for the root file structure in the kernel, I have enabled Reiserfs support during "make Menuconfig". I searched the rest of Menuconfig trying to find anything on boot, etc., and found nothing. I just tried to look at initrd, /dev/initrd, but when I "view" it, I get "initrd is not a file", and when I cd initrd, I get "initrd is not a directory", so WTF is it?

<you are running a SATA-drive, which is on /dev/sdx instead of /dev/hdx

No SATA-drive, and if I recall correctly, the hard drive was detected. If I can see dmesg for a failed boot, I don't know about it.
 
Old 04-28-2004, 10:13 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
Concerning compiling support for the root file structure in the kernel, I have enabled Reiserfs support during "make Menuconfig". I searched the rest of Menuconfig trying to find anything on boot, etc., and found nothing. I just tried to look at initrd, /dev/initrd, but when I "view" it, I get "initrd is not a file", and when I cd initrd, I get "initrd is not a directory", so WTF is it?
initrd is a compressed (?) ramdisk (a file!) that can be found in /boot (at least in SuSE, sorry but I don't know much about slackware). It is made (in SuSE) by calling the command 'mkinitrd -k <kernel-image> -i <initrd-name> -m <modules to load(like reiserfs)> -d <root-device(eg. /dev/hda1)>' (more options see 'man mkinitrd'). But if reiserfs is compiled into the kernel (CONFIG_REISERFS_FS=y instead of m) this is not needed.

Maybe it is an issue of your bootloader. Did you pass the correct option like root=/dev/hdx or root(hd0,0), depending on the location of your root-device, to the loader? The 'LINUX.BAT' thing sounds like you are loading linux from a running windows? I guess it would need some more info on that.

I am sorry that I can't help more...
 
Old 04-28-2004, 01:19 PM   #6
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
I did a google search on the problem and came up with a link to the slackware site, which had a FAQ dealing with kernel panic. I didn't look close enough to notice that the question was under ZIPslack, so LINUX.BAT does not pertain to my setup.

> Did you pass the correct option like root=/dev/hdx

yes. I double checked that.

I'll have to wait to get home to check my initrd settings using mkinitrd. thanks for the responses.
 
Old 04-28-2004, 02:08 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well first off, does your system even use an initrd?

And second, you say your root partition is ReiserFS, and you added support to your kernel, but did you enable it as compiled into the kernel, or as a module?
 
Old 04-28-2004, 04:15 PM   #8
timsch75
Member
 
Registered: Feb 2004
Location: austin, TX
Distribution: slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
I compiled Reiserfs into the kernel, not as a module.

Concerning whether my system uses initrd, I have /dev/initrd. I only assumed that since it is there, it is used. I don't know that much detail about how linux works to know for certain. However, I just tried to pull up a man page on mkinitrd and I was notified that there was no entry for it.

Last edited by timsch75; 04-28-2004 at 04:17 PM.
 
  


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 On
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 compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:14 AM.

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