Ubuntu – How to tell whether the HDD is IDE or SATA

16.04hard drivesata

The output of lspci on Ubuntu 16.04.2 LTS is:

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
01:00.0 VGA compatible controller: NVIDIA Corporation G72M [Quadro NVS 110M/GeForce Go 7300] (rev a1)

Now I wonder if my HDD has IDE interface or SATA interface. How can I realize that?


Based on lspci, I feel like the HDD interface is IDE, but I see something about SATA on lspci output which makes me doubt it.

Best Answer

You have a SATA hard drive.

The reason that you are seeing IDE in there is actually quite simple: SATA can operate in one of two modes, AHCI or IDE.

Your controller appears to be in the IDE mode at the moment, as you can clearly see from the command output:

SATA Controller [IDE mode]

As for the difference between the two modes:

Only 2 major differences between AHCI and IDE mode.

AHCI allows for hot swapping of hard drives if the motherboard chipset also supports it, and it also enables NCQ for hard drives if they support it. IDE mode does not allow for either of these functions.

There is a small hard drive performance hit when you use IDE mode due to NCQ being disabled.

Intel PDf's on the AHCI standard if you wish to do some reading

The above quote is from this answer on Superuser.

And here's some more info about the difference between the two modes from the Crucial forums:

Depending on your system, multiple SATA controller modes may be available in your BIOS or UEFI to manage how an SSD operates with the rest of your system.

AHCI (Advance Host Controller Interface): The modern standard for SATA controller operation, this provides the best performance possible with a SATA storage device, combined with the best support for features to optimize an SSD's performance, such as TRIM. We recommend this mode for a majority of our users, and only deviating from this if needed for addressing compatibility and software problems.

IDE (Integrated Drive Electronics): A legacy standard dating back to the 1990s. Due to slower performance and worse support for modern hardware, we don't suggest using this mode over AHCI. An exception to this is if you are using an older system missing AHCI support, or are experiencing system instability using an SSD in another mode and need to use this mode for compatibility/testing purposes.

Note that the above modes may be reference differently by some motherboards, such as AHCI being called "Serial ATA" or IDE being labelled "Legacy" or just "ATA." If your SATA modes are not described in an obvious way, please refer to your system or motherboard documentation for clarification

.

Related Question