Linux distinguish between SATA and eSATA

3

In Linux is there a way to distinguish between two connected hard drives and tell which one is eSATA through shell or anyother way?

MA1

Posted 2011-07-20T13:24:30.413

Reputation: 1 049

Answers

2

Technically, there is no way to distinguish between Sata and eSata. The SATA specs tell you that the only difference between the two is a physical connector. The protocol is the same.

On another note, technically an OS can't even tell the difference between a physical drive and a virtual drive. The BIOS and chipset can tell the OS whatever it wants and the OS won't be the wiser. This is the basics of abstraction.

surfasb

Posted 2011-07-20T13:24:30.413

Reputation: 21 453

-1

Type in the following command:

hdparm -I /dev/sda

or

sudo hdparm -I /dev/sda

Simply replace /dev/sda with whatever your two device addresses are.

This will give you full specifications of the attached hard drive, and then just take the "model number" that it throws out and google to check if it's a SATA or ESATA drive.

You can also tell if it's running at its correct speed checking the information at the bottom of the report.

akseli

Posted 2011-07-20T13:24:30.413

Reputation: 3 796

is there anyway without searching? – MA1 – 2011-07-20T13:44:56.823

I'm sure there's some way of finding out. Run hdparm on both drives and compare the differences and update us on here. It'd be interesting to see if the simple information report will allow you to differenciate between the interfaces. – akseli – 2011-07-20T13:51:52.060

1You can stick a SATA drive inside an external enclosure that connects over eSATA; the model # will be that of the SATA drive inside. – Darth Android – 2011-07-20T18:32:39.233

I personally don't agree with this downvote. It may not be an infallible method of finding out, but at least it gives you an opportunity to distinguish model numbers if you're lucky enough that your external eSATA drive has a recognizable id number. – akseli – 2011-07-22T07:13:21.937