LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-17-2006, 12:10 PM   #1
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Rep: Reputation: 30
Question Kernel panic with 2.6.18.1 on Slackware 11


Well, I'm not exactly new at this. Here's the deal. I installed slackware 11 the "easy" way, just installing all the packages, using the default vmlinuz kernel, that would be the 2.4.33.3. So, that kernel works fine, I then download kernel 2.6.18.1 and compile it pretty nicely (done it before, so I think I know what am doing).

Then when I try to boot the 2.6 kernel i get a kernel panic message which states:
VFS: Cannot open root device "306" or unknown-block (3,6) Please append a correct "root" boot option
Kernel panic- not syncing: VFS:Unable to mount root fs on unknown-block(3,6).

which is completely friggin' weird.

My kernel image is located at /boot/ and in the same place as the older one, so, i can boot up 2.4.33.3 but not 2.6.18.1

Should I reinstall slackware and choose the 2.6.17 kernel from the start? 10.2 never gave me such a problem...
 
Old 10-17-2006, 12:30 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
looks like the same old filesystem error to me.
The filesystem of the root directory, must either be compiled in the kernel or if it's compiled as a module, you need to create a ramdisk image, because you need the module to mount the root partition and you need the root partition mounted to load the module. For more info read the /boot/README.initrd file in your system. You'll have the same results if you install the 2.6.17 slackware kernel if you don't create a ram disk image for your root filesystem (reiserfs ?). In 2.4.33.3 it's compiled inside the kernel.
 
Old 10-17-2006, 12:40 PM   #3
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
you know, that's really odd, i made sure to compile reiserfs support built into the kernel... maybe i should * all the other options
 
Old 10-17-2006, 05:07 PM   #4
Tisch
LQ Newbie
 
Registered: Jan 2004
Posts: 19

Rep: Reputation: 0
same problem here, and yes i compiled both raiserfs and ext3 support into the kernel, coz i tried with both file systems. I still get the freaking kernel panic, have no clue why??!?
 
Old 10-17-2006, 06:11 PM   #5
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Rep: Reputation: 15
File system alone its not going to help.
You also have to compile IDE support built-in,
and support for your specific controller also
built-in.

Here is how I did it.

And here are reference threads (01, 02, 03).

This one is explanation.

-W

Last edited by mokele; 10-17-2006 at 06:15 PM.
 
Old 10-17-2006, 10:43 PM   #6
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

Rep: Reputation: 30
Are you using sata or ide? Are you cure there is support for your sata controller if using sata? I usually only see that error if there is no support in the kernel, the fstab is wrong or if lilo is wrong. Also have to make sure there is support. You can always boot with a bootdisk and recompile and see
 
Old 10-18-2006, 07:33 AM   #7
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
Thumbs up had to read the readme

Well, I didn't think Patrick would go so far as to change the distro in such a drastical way.

I entered the testing directory and used the config he made. now, i just loaded it on my 2.6.18.1 kernel and took out some stuff so as not not have it super-bloated, some modules don't come up at the start, which is a little bit of a pain, I have to modprobe psmouse for example (i'm guessing i'll have to add it to rc.local)

AND, some of my devices like my dvd burner/cd burner are not being detected. should i use another version of UDEV?... i know i didn't touch any of the atapi, scsi, ide stuff.

well, still getting to know the distro, i'll keep reading.
 
Old 10-18-2006, 08:21 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Quote:
Originally Posted by salviadud
Well, I didn't think Patrick would go so far as to change the distro in such a drastical way.

I entered the testing directory and used the config he made. now, i just loaded it on my 2.6.18.1 kernel and took out some stuff so as not not have it super-bloated, some modules don't come up at the start, which is a little bit of a pain, I have to modprobe psmouse for example (i'm guessing i'll have to add it to rc.local)

AND, some of my devices like my dvd burner/cd burner are not being detected. should i use another version of UDEV?... i know i didn't touch any of the atapi, scsi, ide stuff.

well, still getting to know the distro, i'll keep reading.
Hi,

I'll let PV defend himself for the changes in Slackware! I feel the changes are to the positive for this great distro.

Did you read the /testing/packages/linux-2.6.18/kernel-generic-2.6.18-i486-1.txt;

Quote:
kernel-generic: kernel-generic (a general purpose Linux kernel)
kernel-generic:
kernel-generic: This is a Linux kernel with built-in support for most IDE controllers
kernel-generic: and the ext2 filesystem. If you need more advanced filesystems, or
kernel-generic: need to load support for a SCSI or other controller, then you'll need
kernel-generic: to load one or more kernel modules using an initial ramdisk, or
kernel-generic: initrd. For more information about creating an initrd, see the
kernel-generic: README.initrd file in the /boot directory.
kernel-generic:
kernel-generic:
kernel-generic:
This implies that you will need to modify the .config to meet your needs.

May I ask why your downloaded the 2.6.18.1 kernel? Sure it is the latest stable.

As for your question in post #1;

Quote:
Should I reinstall slackware and choose the 2.6.17 kernel from the start? 10.2 never gave me such a problem...
Why not just load the 2.6.18 kernel from /testing. Don't forget to load the modules.
 
Old 10-18-2006, 02:19 PM   #9
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
well, I just loaded the config and stripped it down a bit, i didn't want to load all the FS avaible, just the one I use. I got only one video card, you know, those type of things.

but i guess this has to do with the hotplug or udev, because i am having trouble with my devices and some modules don't load on startup, even though i compiled my kernel the old way
make bzImage
make modules
make modules_install

I don't know what's going on, that's all.
 
Old 10-19-2006, 08:30 AM   #10
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 397

Rep: Reputation: 33
If you're compiling a 2.6x kernel, all you need to do to compile is the following command:

make && make modules_install

Those commands you made reference are some used to compile a 2.4x kernel. See what happens for you with the above method (although I am not certain it will make a difference).
 
Old 10-19-2006, 10:51 AM   #11
salviadud
Member
 
Registered: Feb 2005
Location: Mexico
Distribution: Slackware 14.1 [3.x]
Posts: 182

Original Poster
Rep: Reputation: 30
I'd just like to say thank you to all the dudes that responded to this thread. I have a working 2.6.18.1 kernel right now, all my devs are detected. slackware 11 is pretty darn good.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic with Slackware 11 streetsmart Slackware 3 10-17-2006 02:50 PM
Kernel Panic On Slackware linux_over_windoze Linux - Laptop and Netbook 6 07-01-2006 08:04 PM
Slackware Kernel Panic! Heretic1 Linux - Newbie 0 10-27-2003 09:35 PM
Slackware 8.1 -- Kernel panic appler Slackware 4 03-19-2003 02:59 PM


All times are GMT -5. The time now is 07:54 AM.

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