Switch to full style
Tools for hard drive diagnostics, repair, and data recovery
Post a reply

Identify a ATA or SATA

March 16th, 2014, 8:15

I am trying to identify if a ATA and SATA drives with the ECh command with the opcodes:

Code:
mov ax,00ECh
out 1F7h,ax
in 1F7h,ax


but this code returns FFh in ax register and when I try to read 1F4h and 1F5h ports returns FFh in ax too. How can I identify if is a ATA or SATA drive using I/O ports?
Post a reply