LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-24-2005, 12:49 PM   #1
Sushy
Member
 
Registered: Sep 2005
Distribution: FreeBSD
Posts: 84

Rep: Reputation: 15
Kernel panic upgrading from 2.4.31 to 2.6.13


Hi!

I`ve just upgraded my Kernel from 2.4.31 to 2.6.13 exactly as was described in
this post
But after I restarted and now run lilo with my new kernel booting stops at:
"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)"

Why?
Any suggestions?
 
Old 10-24-2005, 12:52 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Probably you're using reiserfs filesystem for your root partition and you didn't create or setup correctly in lilo.conf the initrd image containing the module to support it. I can't see that explained in that post, read this to solve it: http://mirror.switch.ch/ftp/mirror/s.../README.initrd

Last edited by gbonvehi; 10-24-2005 at 12:53 PM.
 
Old 10-24-2005, 06:53 PM   #3
mokele
Member
 
Registered: Jan 2005
Location: Puerto Rico
Distribution: Slackware 13
Posts: 146

Rep: Reputation: 15
-
-
gbonvehi.

Same thing was happening to me, and I solved the problem
by configuring reiserfs in file systems --> through menuconfig.
but now I have this problem. Do you think your suggested procedure.
will work as well for me?

Thanks.

West.
_
 
Old 12-01-2006, 11:49 PM   #4
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Ok, i have a solution I do believe.... this is if you are using a laptop neways... not sure how well this will work with desktops.... but my laptop has a sata drive... except in linux-2.4 it recognizes my hard drive as a hda, where in linux-2.6 it recognzes it as an sda... so here is my solution....

1. Compile your kernel with your filesystem included (ext3, reiserfs, etc...)
2. Compile your kernel with your hardware included (in my case I needed ata_pIIx, SCSI_ATA, and QLA5XXX)
3. Modify your /etc/lilo.conf to have the root partitions as /dev/sda#
4. If you have a windows partition leave it as hda
5. Modify /etc/fstab and change all hda's to sda's
6. Reboot and test
7. Please note that if you have the 2.4 kernel saved, you will be unable to boot from it... since it sees all your partitions as sda... just a forenote
 
Old 12-02-2006, 02:07 AM   #5
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
Kernel panic upgrading from 2.4.31 to 2.6.13
is it slack 11? why 2.6.13

if it is slack 11 folow this link http://rkrishna.tp.googlepages.com/slackerbasics#alt

kernel compilation is also there in the same page
 
Old 12-02-2006, 02:08 AM   #6
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
Quote:
except in linux-2.4 it recognizes my hard drive as a hda, where in linux-2.6 it recognzes it as an sda... so here is my solution....
if it is a sata drive use sata.i or any 2.6 kernel while installing.
choose appropriate kernel
also the solution given is confusing
regards
 
Old 12-02-2006, 04:27 AM   #7
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Quote:
Originally Posted by rkrishna
if it is a sata drive use sata.i or any 2.6 kernel while installing.
choose appropriate kernel
also the solution given is confusing
regards
in the 2.4 kernel libata translates the sda devices to be hda.... so in all of the configs (lilo, and fstab) the devices are hda.... if you want to run the 2.6 kernel it doesnt translate to hda, so you have to change everything in these configs... just out of curiosity, how could I make my explanation more clear?

Thanks,
DragonM15
 
Old 12-02-2006, 05:48 AM   #8
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
DragonM15, hi, if this is ok if the kernels aer identifying the devices as sda and hda..

but how this is happening, how this can happen, ??
i am confused!!!
if it is sata, it will be identifyed as sda or sdb, whether it is 2.4 or 2.6 kernel
that is my experience
 
Old 12-03-2006, 05:50 PM   #9
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
Quote:
Originally Posted by rkrishna
DragonM15, hi, if this is ok if the kernels aer identifying the devices as sda and hda..

but how this is happening, how this can happen, ??
i am confused!!!
if it is sata, it will be identifyed as sda or sdb, whether it is 2.4 or 2.6 kernel
that is my experience
It is true in most cases that if the drive is sata that it is recognized as so.... however, the libata option in the kernel config allows for an sda hard drive to be recognized as an hda.... however, this is only true in the 2.4 kernels.... for some reason in the 2.6 you can have that option enabled, but it doesnt work in the same way... it causes kernel panics, because all the config files recognize the hard drive as when the new 2.6 kernel doesnt. I am not sure why it does this, I am not a programmer, and I only know as much about the kernel as I must to keep my systems up and running... so once again, I am not sure why it does this. It is just my experiences...

Hope this helps you...
DragonM15
 
  


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 Panic slackware 10.1 (sata) after upgrading to 2.6.10 pkg in /testing sund00bie Slackware 7 07-25-2005 04:59 AM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 07:00 AM
after upgrading desktop panic robyduck Fedora 0 11-21-2004 10:16 AM
kernel panic upgrading to 2.6.1 sadeer Red Hat 2 03-24-2004 05:12 AM
Help needed!! Kernel panic problem after upgrading RAM nparab Linux - Hardware 3 04-12-2003 01:03 PM

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

All times are GMT -5. The time now is 08:21 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