LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-14-2007, 07:17 PM   #1
person132
Member
 
Registered: Jan 2006
Posts: 30

Rep: Reputation: 15
Kernel Upgraded from 2.6.17 to 2.6.20 - SATA HD appears as hdx


The title describes the problem fairly well - I was running 2.6.17.13 (I think), and I upgraded to 2.6.20 (I compiled both kernels, the second one using make oldconfig). Now, it sees my SATA hard drive as /dev/hda rather than /dev/sda; this is causing some problems, esp. with fstab (I was only able to boot by passing root = /dev/hda4. Is this normal? Should I just adjust to the new device nodes? Is there a kernel config option or other method for getting it to recognize the drive as what it is?
 
Old 04-14-2007, 07:46 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 9 (stretch)
Posts: 3,360

Rep: Reputation: 127Reputation: 127
What motherboard and controller are you using, and did you change any BIOS or config options for the new kernel? I haven't run into this problem, and I've upgraded successively through the 2.6.19 kernels to now 2.6.20.6.
 
Old 04-14-2007, 10:09 PM   #3
person132
Member
 
Registered: Jan 2006
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the reply. I did not change and BIOS settings; the hard drive is set as the IDE primary master, even though the drive itself is SATA. I have little information besides it being an Asus motherboard, as this is a laptop.

The output from lspci -v sheds some light on the matter, I beleive:

Code:
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 02) (prog-if 80 [Master])
        Subsystem: ASUSTeK Computer Inc. Unknown device 1447
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 18
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at ffa0 [size=16]
        Capabilities: [70] Power Management version 2
From this, it appears to be a controller that interfaces with the BIOS by IDE while controlling a SATA drive.

The question, now, is why the 2.6.17.13 kernel assigns it a /dev/sda designation while the 2.6.20.7 kernel recognizes it as /dev/hda.
 
Old 04-14-2007, 10:14 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 9 (stretch)
Posts: 3,360

Rep: Reputation: 127Reputation: 127
"The question, now, is why the 2.6.17.13 kernel assigns it a /dev/sda designation while the 2.6.20.7 kernel recognizes it as /dev/hda."

I seem to remember seeing something about this on the switch from 2.6.17 to 2.6.18 and beyond, but I'll be damned if I can remember what or where. It kind of makes sense that the way the BIOS sees the drive should take precedence, though.
 
Old 04-14-2007, 10:31 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,486

Rep: Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099
Changes were introduced at .18, and .19 - see this for pertinent .19 stuff.

Edit: It really does pay to keep an eye on the (kernel) changelogs. You might be used to just compiling it, but when it all falls apart, start looking at those changelogs. All of them.
I recall at least one occasion recently where Andrew Morton (in his changelog) has specifically warned against just habitually using oldconfig.
When you get bit, go looking for why.

Last edited by syg00; 04-14-2007 at 10:36 PM.
 
Old 04-14-2007, 10:32 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,663

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Quakeboy02
I seem to remember seeing something about this on the switch from 2.6.17 to 2.6.18 and beyond, but I'll be damned if I can remember what or where.
The naming for the modules changed from CONFIG_SCSI_SATA_???? to CONFIG_SATA_???? which an oldconfig compile probably never picked up. Check in your old 2.6.17 config file comparing to the new 2.6.20 to see which module(s) did not get built for the SATA options.
 
Old 04-14-2007, 10:34 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,486

Rep: Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099Reputation: 3099
D'oh - was supposed to be an edit, note a quote.
Deleted; see post above.

Last edited by syg00; 04-14-2007 at 10:37 PM.
 
Old 04-14-2007, 10:39 PM   #8
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 9 (stretch)
Posts: 3,360

Rep: Reputation: 127Reputation: 127
Quote:
The naming for the modules changed from CONFIG_SCSI_SATA_???? to CONFIG_SATA_???? which an oldconfig compile probably never picked up.
Thanks for the info Happy Tux. I've never really relied on oldconfig, so I guess I just never saw the problem, but I knew *something* had happened.
 
Old 04-15-2007, 09:51 PM   #9
person132
Member
 
Registered: Jan 2006
Posts: 30

Original Poster
Rep: Reputation: 15
A quick recompilation with the appropriate SATA drivers fixed everything. Thanks for all your help.
 
  


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
Busy Box appears after kernel upgrade reboots chas Debian 1 05-11-2006 02:46 PM
Upgraded hd to SATA, now dvd drives don't work well. Kubuntu Breezy Ekkume Ubuntu 0 12-25-2005 01:51 PM
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 03:37 PM
New kernel drivers Shifting /dev/hdx order omegaworks Linux - Hardware 1 09-06-2004 07:19 AM
Kernel upgraded to 2.4.4 jeremy LQ Suggestions & Feedback 2 05-13-2001 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration