2008-07-01 22:25:41

by Donkey Ia

[permalink] [raw]
Subject: option of kernel config

Please, excuse me - probably it's a very stupid question for thisplace, but i need to know - could you tell me please, which exactlyoption (or maybe options) of kernel config calls ide hard disks/dev/sdX instead /dev/hdX?????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?


2008-07-01 22:28:57

by Randy Dunlap

[permalink] [raw]
Subject: Re: option of kernel config

On Wed, 2 Jul 2008, Donkey Ia wrote:

> Please, excuse me - probably it's a very stupid question for this
place, but i need to know - could you tell me please, ??which exactly
option (or maybe options) of kernel config calls ide hard disks
/dev/sdX instead /dev/hdX?


Using ATA instead of IDE drivers does that. This menu item:

menuconfig ATA
tristate "Serial ATA (prod) and Parallel ATA (experimental) drivers"

--
~Randy

2008-07-02 06:33:35

by Jan Engelhardt

[permalink] [raw]
Subject: Re: option of kernel config


On Wednesday 2008-07-02 00:25, Donkey Ia wrote:

>Please, excuse me - probably it's a very stupid question for this
>place, but i need to know - could you tell me please, which exactly
>option (or maybe options) of kernel config calls ide hard disks
>/dev/sdX instead /dev/hdX?
>N?????r??y??????X??ǧv???)޺{.n??????{????zX????ܨ}???Ơz??j:+v???????zZ+???zf???h???~????????z??w?????????&?)ߢf???jǫy?m???A?a???? 0???????

There is no 'option', this is hardcoded in drivers/scsi/sd.c.

sd.c: sprintf(gd->disk_name, "sd%c", 'a' + index % 26);
sd.c: sprintf(gd->disk_name, "sd%c%c",
sd.c: sprintf(gd->disk_name, "sd%c%c%c",

And you should not be changing this in that place.

Well I prefer libata over oldide since the scsi stack is loaded anyway.

2008-07-02 08:06:08

by Alan

[permalink] [raw]
Subject: Re: option of kernel config

On Wed, 2 Jul 2008 02:25:30 +0400
"Donkey Ia" <[email protected]> wrote:

> Please, excuse me - probably it's a very stupid question for this
> place, but i need to know - could you tell me please, which exactly
> option (or maybe options) of kernel config calls ide hard disks
> /dev/sdX instead /dev/hdX?

The old IDE layer (CONFIG_IDE) calls those ATA devices it recognizes
(most PATA, a few SATA) /dev/hd*, the newer Libata layer calls those it
handles (PATA/SATA) /dev/sd*. If you are using labels you can flip back
and forth quite easily.

Alan