LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-12-2004, 05:59 AM   #1
lopette
Member
 
Registered: Feb 2004
Location: Switzerland
Distribution: Debian
Posts: 66

Rep: Reputation: 15
cannot get new kernel to see SATA drive


hi people

I'm running debian on an AUSUS P4C800 mainboard, and recently purchased a maxtor SATA drive.

with the kernel that came with the install (2.4.25-1-386) I can access my drive at /dev/hde. transfer rate is as good as with the IDE / Dual ATA drive, say around 60MB/sec

I tried compiling a 2.6.8.1 kernel, and when I use this one I can't see my hd anywhere, neither on /dev/hde, nor on /dev/sd

when I try to compile 2.6.8.1 with /boot/config-2.4.25-1-386 I get this at boot:
Code:
VFS: Cannot open root device "hda5"  or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
/ is on a reiserfs partition (hda5), reiserfs support is built hard in the kernel (and 2.4.25- still manages to boot on it while it's built as a module)

I've tried using a config file from someone who apparently managed to get his SATA drive on the intel ICH5 controler, and that didn't work out.

I've tried adding all options to my kernel, but compiling crashes due to errors

the config I use now for my 2.6.8.1 is here, it works great except for the lack of support of my sata drive and i2c hardware sensors (why?)

does some-one out here have anymore ideas of things I could try, or tests I could run to see JUST HOW my 2.4 kernel manages to access my SATA drive?

---------------------------[ editing post after continuing my experiments ]--------------------

so.. after palying around with it a little more, I tried a few things: I thought "if my 2.4 kernel can't boot straight off the SATA drive, maybe it's because it's loaded as a module. so I checked the outpu of lsmod, mounted the SATA drive, and checked again: no difference.

before I continue, I must say this:

2.4 kernel:
-----------------
no network
no audigy2
SATA available

2.6.8.1 kernel:
-----------------------
network is fine
audigy is fine
no SATA

that's it. now for the weird bit. when loading on the 2.4 kernel, at some point I get this (pulled out from /var/log/dmesg) [#1]
Code:
ICH5: IDE controller at PCI slot 00:1f.1
PCI: Enabling device 00:1f.1 (0005 -> 0007)
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
ICH5-SATA: IDE controller at PCI slot 00:1f.2
ICH5-SATA: chipset revision 2
ICH5-SATA: 100% native mode on irq 18
    ide2: BM-DMA at 0xef60-0xef67, BIOS settings: hde:DMA, hdf:pio
    ide3: BM-DMA at 0xef68-0xef6f, BIOS settings: hdg:pio, hdh:pio
with the 2.6.8.1, I only see that: [#2]
Code:
ICH5: IDE controller at PCI slot 0000:00:1f.1
PCI: Enabling device 0000:00:1f.1 (0005 -> 0007)
ACPI: PCI interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 18
ICH5: chipset revision 2
ICH5: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
(I must say something else: for test purposes the two hard drives have about the same contents)

now, according to #1 (see "code" above); set my setting my /boot/grub/menu.lst to
Code:
title           Debian GNU/Linux, kernel 2.6.8.1 (on SATA?)
root            (hd2,0)
kernel          /vmlinuz-2.6.8.1 root=/dev/hde5 ro
boot
that got me something like "disk doesn't exist"

so I set it to
Code:
title           Debian GNU/Linux, kernel 2.6.8.1
root            (hd1,0)
kernel          /vmlinuz-2.6.8.1 root=/dev/hdc5 ro
boot
that boots, but then I get a kernel panic.
with root=/dev/hde5 I get a kernel panic too.

with
Code:
title           Debian GNU/Linux, kernel 2.6.8.1
root            (hd1,0)
kernel          /vmlinuz-2.6.8.1 root=/dev/hda5 ro
boot
it boots alright, but I still don't have access to my SATA drive. now how strange is that ???

if there's something that seems unclear to you, please ask me for details... I'm starting to get real worried about my mental sanity ;-) so I'll be pleased to explain and try whatever you may think of

Last edited by lopette; 09-12-2004 at 04:03 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.0 , SATA hard drive, kernel 2.6.13.1 mlukic Slackware 6 09-14-2005 02:53 PM
kernel SATA drive detected but unusable. edx? jplev22 Linux - Hardware 1 07-26-2005 05:55 PM
RH9 and SATA - Kernel 2.4.27 - how to get SATA to work? rolf_mueller Linux - Hardware 5 10-30-2004 08:30 PM
SATA drive - 2.6.3 kernel upgrade dufus Linux - General 4 08-26-2004 08:13 PM
kernel 2.4.20 no SATA drive recognition tait Red Hat 4 07-01-2004 04:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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