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.
LogicInnovationsAsked:
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.  
0
 
coredatarecoveryConnect With a Mentor Commented:
http://www.winsim.com/diskid32/winio/diskid32.cpp

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.




http://books.google.com/books?id=Ee9PF6Zv_tMC&pg=PA155&lpg=PA155&dq=assembly+13H+bios+identify&source=bl&ots=8z0VCcOEsW&sig=v11yQy-LI0zOZbNrRW0FQwCxcKg&hl=en&ei=EHrvSebREqDmtQOJiZzoAQ&sa=X&oi=book_result&ct=result&resnum=3#PPA156,M1

Hope This Helps,

Chuck House
Core Data Recovery.
0
 
coredatarecoveryCommented:
I understand, I was just trying to give you the idea, It's been 5 years since I was hard coding in assembly.
0
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.