Skip to contentSkip to conversation

Changes in SATA, IDE and ATAPI configuration

DISCUSSION [email protected] 2 participants 2 messages Jan 7, 2006

lore
Share & tools
lore
#0 lore raw

At the risk of getting flamed for asking a basic question here, could I suggest that a kernel and/or driver developer provide a brief "how-to acticle" somehere (like on the kernel.org site, or in the kernel documentation) that explains the way things have changed from the early 2.6.x days to more recent kernels like 2.6.14 or 2.6.15 with respect to configuring fundamental devices like IDE drives, SATA drives, and ATAPI drives.

Personally, I have been struggling for about two weeks to move an image of an IDE OS Drive that's running a 2.6.14 kernel over to a SATA drive. Clearly, SATA + ATAPI is not the same as IDE + ATAPI. Apparently, several factors MIGHT be causing my ATAPI CDROM not to show up when I boot from the SATA drive:

-- BIOS settings for the ICH5 SATA controller on my Xeon motherboard (Auto, SATA, PATA?)
-- Whether the CD is connected to the Primary or Secondary IDE channel
-- Use (or NOT) of "options libata atapi_enabled=1" in modprobe.conf
-- Order of loading modules
-- Use (or NOT) of the AHCI module. When making fresh installs onto SATA drives, some distributions seem to load the AHCI module and some don't, on exactly the same hardware with the same kernel.

Whatever it is, I haven't found the magic formula for making the transfer from IDE to SATA work. And various "support personnel" associated with my two favorite Linux distributions have similarly failed to provide a solution. I am not the only one struggling with these issues. Just seach on the Forum of ANY distribution and you will find people having similar issues.

Things used to be so simple. But now, with improvements like SATA, UDEV and libata, for some users who are upgrading things have gotten more confusing than ever. A little basic info -- if you use A, you have to use B. X has to load before Y -- etc. might go a long way to making some happier Linux users. I feel as if I have made a valient effort to find the answers myself. Linux shouldn't be THIS difficult.

Regards,
Andy Liebman

#1 lore raw
Quoted 3 lines · On Sad, 2006-01-07 at 11:34 -0500, [email protected] wrote:

-- BIOS settings for the ICH5 SATA controller on my Xeon motherboard (Auto, SATA, PATA?)
-- Whether the CD is connected to the Primary or Secondary IDE channel

Secondary slave is broken in 2.6.15 and all earlier SATA releases I've seen for ICH5. ATAPI prefetch handling is incorrect on PIIX/ICH5. If the CD is anywhere but the secondary slave it should be fine.

Quoted 1 line

-- Use (or NOT) of "options libata atapi_enabled=1" in modprobe.conf

If its modular. Otherwise it needs to be a boot time option for libata

Quoted 1 line

-- Order of loading modules

Shouldn't be

Quoted 3 lines

-- Use (or NOT) of the AHCI module. When making fresh installs onto SATA drives, some distributions seem to load the AHCI module and some don't, on exactly the same hardware with the same kernel.

AHCI mode is an option for the ICH5-R and later controllers and BIOS side.

Basically ICH5 supports

'Pretend we are one device' (Combined mode) which will see the PATA ATAPI ports appear as non DMA IDE ports (old style) and in its full functional mode where PATA and SATA ports are properly seperated out.

Quoted 2 lines

Whatever it is, I haven't found the magic formula for making the transfer from IDE to SATA work.

Insert CD, install, sync over data. Actually for Fedora and anything using initrd root device labels you should only need to make the right initrd and set the options.

Alan