LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-16-2005, 07:02 PM   #1
j0ck
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Rep: Reputation: 15
kernel 2.6 problems with sata :(


I have been useing slackware for a few years. I have a computer with sata and when I install 10.2 (or 10.1) I use the stock bare.i kernew at install. it works great. I install the sata 2.4 at install its works great. but when I upgrade to the 2.6 kernel, no matter how, source, pkg, recompile pkg, one of 2 things happen. 1. about half way through init it just stops and gives me the # prompt. and i can type on the screen but no responce ot my commands. 2. i get kernel panic and cannot mound block device 302. and nothing works. press reset.
I have compiled the kernel at least a dozen times.
any ideas?
ty
 
Old 12-16-2005, 07:38 PM   #2
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
Silly/dumb question first:

Did you compile support for your SATA controller into your kernel (NOT as a module)?

If you compiled it as a module, did you create a new ramdisk (see /boot/README.initrd)
 
Old 12-16-2005, 07:43 PM   #3
j0ck
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
when i compiled it i have tried with sata but it said it was depreciated and tried without. i have tried several combonations.
and yes i have made initrd. i can put this on an ide system and it works. but when i do it on this one (sata) i turn to uber noob.
 
Old 12-16-2005, 08:14 PM   #4
jonnyblinux
Member
 
Registered: Oct 2005
Location: Maine
Posts: 51

Rep: Reputation: 15
welcome to my nightmare

Hey join the club, I got a new dell dimensin 9100 with sata harddrives and I can never get slackware to work correctly
Usually the slackware crashes halfway during install with the same error. Or a netwrk card doesnt work, something stupid like that. Wish I would of bought ide harddrives
 
Old 12-16-2005, 08:19 PM   #5
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
What SATA chipset do you have?
 
Old 12-16-2005, 08:20 PM   #6
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
have any of you tried using the test26 kernel. It should sata support for most devices.

when i install on my laptop. I install 2.4 bare.i it loads my sata controller in ide mode(which is terribly slow), then I have to build 2.6.**, make sure sata is enabled for my card. compile it, then log in with a live cd and change /etc/fstab and lilo. This is do to all my devices changing from /dev/hda to /dev/sda. Dont know if that's the same problem you are having or not.


soule
 
Old 12-16-2005, 09:01 PM   #7
jonnyblinux
Member
 
Registered: Oct 2005
Location: Maine
Posts: 51

Rep: Reputation: 15
Its a pentium d with sata harddrives

I'll try that thanks
 
Old 12-17-2005, 04:04 PM   #8
j0ck
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
ok reinstalled and used the test26.s kernel and have same error. here it is.
VFS: Cannot open root decice "302" or unknown-block(3.2)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable ot mount root fs on unknown-block(3,2)
i have tried mkinitrd (as per README.initrd in /boot) and instead of /dev/hda2 (my root part) i put /dev/sda2 still same thing. i get this or just stop about there with a # prompt and nothing else.
im still working on this
 
Old 12-17-2005, 05:51 PM   #9
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
im getting the mount /dev/sda1 is not a valid device - think after reading here i have found the issue - i thik all sata is set to be built as modules ;P

with initrd (depending on your fs and setup) should be mkinitrd -c -k 2.6.14.x -m ext2 /dev/hdxX (or sdx (or ext3/reiserfs)

i have never put the hard drive bit in and it always seems to know where to put it even when i have dual booted a sytem
 
Old 12-17-2005, 09:37 PM   #10
j0ck
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
tried both. /dev/sdaX and /dev/hdaX
this has got to be simple
grr this is gettign frustrating :/
thanks to everyone so far
im still trying will post what i find
 
Old 12-18-2005, 07:00 AM   #11
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
im still getting the error wether i use m or built in - had theis with the cdrom and solved it by editing the link in /dev/ sata works on 2.4 but mu chipset isnt supported so everything is a bit slow and jerky anyone with any idears ?

Thanks
 
Old 12-18-2005, 10:39 AM   #12
j0ck
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
ok i wiped everything and started over again this time in fstab i added /dev/sda2 and all the normal input that follows. so i have /dev/hda2 in my fstab as my root. this is the way it was installed and setup. i ran mkinitrd exactly as it is in README.initrd for an ext3 fs. updated lilo. reboot and i got
mount: Mounting /dev/hda2 on /mnt failed: No such decice or address
ERROR: mount returned error code 1. Trouble ahead.
mount: Mounting /dev/hda2 on /mnt failed: Invalid argument
mount: Mounting /dev/hda2 on /mnt failed: Invalid argument
/boot/initrd.gz: exiting
pivot_root: pivot_root: Device or resource busy
Freeing unused kernel memory: 160k freed
#
at the pound mark above i have a bliniking curser and it appears to be a bare shell. some limited commands.
Oh by the way. I like the part about "Trobule ahead". ummm ....... ya think? :/
anyway im gonna try to change lilo to look for root in /dev/sda2 and see how it dies then.
 
Old 12-22-2005, 09:21 PM   #13
j0ck
Member
 
Registered: Nov 2002
Distribution: Slackware
Posts: 37

Original Poster
Rep: Reputation: 15
well its obvious no one knows how to fix this but for some reason I wil keep posting here.
when my lilo.conf is like this
image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only
i get this error
VFS: Cannot open root decice "302" or unknown-block(3.2)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable ot mount root fs on unknown-block(3,2)
now, when i change lilo.conf to
image = /boot/vmlinuz
root = /dev/sda2
label = Linux
read-only
i get this
VFS: Cannot open root decice "802" or unknown-block(8.2)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable ot mount root fs on unknown-block(8,2)
I thought it was being seen as scsi is why i changed from hda to sda. have same error just different number.
i cant help but think this has to be something simple
some has to know how or at least have an idea.
 
Old 12-28-2005, 01:47 PM   #14
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
if your using 2.6 kernel u have to make a initrd so it knows what it has to use to boot

from a site i found

Quote:
Initrd

Initrd is basically a way to load kernel modules and such into a special memory drive at kernel load time. This can allow you to, for example, run this kernel on a Slackware system that is installed to a Reiser file system (as this is not directly compiled into the kernel, and without it your system will not boot off a Reiser file system), among other things.

First you should know what kernel modules your system will need, and it would also be a good idea to check the kernel config (/usr/src/linux-2.6.x/.config where x is the patch level, like for example "2.6.10"). This is very important, so that you can prevent any headaches.

Second, you need to make an initrd. This is a sample command:

mkinitrd -k 2.6.10 -o /boot/initrd-2.6.10.gz -m reiserfs:eepro100

In this example, we are making an initrd from kernel 2.6.10 modules, outputting to /boot/initrd-2.6.10.gz, and telling it to include the reiserfs and eepro100 modules.

After you have done this, add a line similar to this under the kernel configuration that you are going to be adding to /etc/lilo.conf:

initrd=/boot/initrd-2.6.10.gz
guessing its just a case of adding more modules to the initrd so it sees the sata drives, from the error you have posted about i have had and its because
a) initrd was not made
b) line in lilo/grub wasnt there

hth
 
Old 12-29-2005, 02:29 PM   #15
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
http://www.linuxquestions.org/questi...d.php?t=365074 - read my post. Maybe it would help.

Last edited by Alien_Hominid; 12-29-2005 at 02:46 PM.
 
  


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 2.4 -> kernel 2.6 problems with Maxtor SATA Bultot Linux - Hardware 2 01-19-2005 01:58 AM
RH9 and SATA - Kernel 2.4.27 - how to get SATA to work? rolf_mueller Linux - Hardware 5 10-30-2004 08:30 PM
slack 10 SATA / kernel 2.6.7 equinox Slackware 1 10-13-2004 04:41 AM
Problems SATA with Intel 865PE any kernel! Omarel Linux - Hardware 10 10-01-2004 11:06 PM
cannot get new kernel to see SATA drive lopette Linux - Hardware 0 09-12-2004 05:59 AM


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