ATA command 0xEC ( identify drive )

Can anyone shed some light on how to issue a "identify drive" command under DOS?  I tried INT13 function 25h but it returned with carry flag set and AH=1.

Thanks in advance.
Who is Participating?
LogicInnovationsConnect With a Mentor Author Commented:
The code isn't exactly for DOS but it does show me the method, wish there was an easier way to do the disk id.

Thanks for your other suggestion.  I only need to get model number from the "identify drive" command.  I plan to do all other disk operations with with extended INT 13 calls.  
coredatarecoveryConnect With a Mentor Commented:

This is a C++ file include that has everything you need to do the IDE Identify command Plus more.

This book below, I have in my library, and it explains some of the problems with CHS vs LBA layering issues when accessing IDE drives at a BIOS level.,M1

Hope This Helps,

Chuck House
Core Data Recovery.
I understand, I was just trying to give you the idea, It's been 5 years since I was hard coding in assembly.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.