LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-25-2007, 11:19 AM   #1
durwin
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Which kernel config option shows hda as sda?


I know the new kernel releases show ide devices as sd (versus hd). This is fine, but I am forced to customize our installation and am starting with defconfig. I found this initial configuration does not have the mapping of hd devices to sd.

My question is, in the kernel configuration, what must I enable to get this mapping back? I am using 2.6.23 source.

Regards,

Durwin
 
Old 10-25-2007, 11:42 AM   #2
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Think this is right - was reading about this the other day - think it's persistent block device names

Quote:
Don't know the option name - all I know is that some kernel releases ago IDE drives moved to a new "architecture" called libata, common with SATA. If it's enabled, they're sdX, if they use a legacy option, it's hdX.
Also

http://wiki.archlinux.org/index.php/..._device_naming

Last edited by The_JinJ; 10-25-2007 at 11:44 AM.
 
Old 10-25-2007, 02:35 PM   #3
durwin
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
There is this entry in menuconfig.

CONFIG_SCSI_SAS_ATA:

Builds in ATA support into libsas. Will necessitate
the loading of libata along with libsas.

Symbol: SCSI_SAS_ATA [=n]
Prompt: ATA support for libsas (requires libata)
Defined at drivers/scsi/libsas/Kconfig:33
Depends on: SCSI && SCSI_SAS_LIBSAS && (ATA=y || ATA=SCSI_SAS_LIBSAS)
Location:
-> Device Drivers
-> SCSI device support
-> SCSI Transports
-> SAS Domain Transport Attributes (SCSI_SAS_LIBSAS [=m])


I tried it, but it did not show hd as sd.
 
Old 11-25-2007, 02:21 PM   #4
hottdogg
Member
 
Registered: Aug 2004
Location: aisenodni
Distribution: slackware 64bit ,debian 64bit
Posts: 202

Rep: Reputation: 30
This is one that still tickles me,unanswered mystery of linux kernel,lol...
maybe kernel hackers and linux uber-geeks know the answer.
Tried centos 5 and arch linux 2007.8 while ago, both use sdX for my pata harddisks.
Currently using slackware 12 with stock kernel 2.6.22 , uses hdX instead.
So slackware 12 still uses that mysterious legacy option, right? whatever...
it's nice if someone could give correct answer,though

--edit--
did some browsing,
getting clearer

but i'm still not sure which config option in .config.

Last edited by hottdogg; 11-25-2007 at 02:29 PM.
 
Old 11-25-2007, 03:31 PM   #5
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Hmm, it appears that Suse 10.3 has an option to select the desired mode. I actually wrote it down while installing but now I can't find it anymore.

Whether it will actually mean that you get hd instead of sd is something that I don't know. You will be able to access more than 15 partitions, though, which implies that it does behave like it did with the older driver.
 
Old 11-27-2007, 04:15 PM   #6
hal8000b
Member
 
Registered: Mar 2001
Location: UK
Distribution: Mint, Arch, Debian7
Posts: 170

Rep: Reputation: 21
Quote:
Originally Posted by jay73 View Post
Hmm, it appears that Suse 10.3 has an option to select the desired mode. I actually wrote it down while installing but now I can't find it anymore.

Whether it will actually mean that you get hd instead of sd is something that I don't know. You will be able to access more than 15 partitions, though, which implies that it does behave like it did with the older driver.
Hi, I can help you here as I multiboot Suse 10.3.
The libata library does indeed relabel any IDE hard drives from hdx to sdx, however in addition it places a limit of the first 15 scsi partitions.

This is of course useless if you have more than 15 partitions as anything after 15 is ignored.

The temporay fix for Suse 10 is to add
hwprobe=-modules.pata

to the boot prompt, or append the text to the end of your grub prompt, for a permanent solution.
 
  


Reply

Tags
kernel, sata


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom kernel 2.6.22 name change from hda to sda bristi Debian 4 07-15-2007 12:27 PM
/hda to /sda - help! dodgydodgy Linux - General 9 10-20-2006 07:07 PM
The kernel I compiled reads my sata drives as hda even though the rpm kernel read sda abefroman Linux - Software 5 07-10-2006 05:42 PM
Do I use hda or sda? jumico Linux - General 2 02-12-2006 06:55 PM
hda? sda? what do i have? nr5 Linux - Newbie 12 02-24-2005 07:50 PM


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