Recognize hard drives
Recognize hard drives
How to recognize hard drives of my PC? ( How much they are, if they are ATA, SCSI, etc... )
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
Find the ATA specification, and read through it. It has everything you need to know about hard drive access (unless it's SCSI... I have no idea about them).
I'd also suggest looking at the "LBA HDD access" tutorial on osdever.net. Don't use it for code, but look at the ports it references and match them with the ones in the specification. For instance, 0x1F0 is (usually) the data register for the primary controller.
I'd also suggest looking at the "LBA HDD access" tutorial on osdever.net. Don't use it for code, but look at the ports it references and match them with the ones in the specification. For instance, 0x1F0 is (usually) the data register for the primary controller.
you do scan of all pci devices first, sample code is here http://www.osdev.org/phpBB2/viewtopic.php?t=14204
then read specs about controller/device that you found
then read specs about controller/device that you found
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
It's easy to differentiate between a "hard drive" and a "soft drive", if you open your computer case and see a device that's soft and squishy, you can conclude it's not a "hard drive".
On a slightly more serious note lol.. PATA and SATA..
EDIT: Removed 2015: Imageshack replaced all links with spam.
On a slightly more serious note lol.. PATA and SATA..
EDIT: Removed 2015: Imageshack replaced all links with spam.
Last edited by Brynet-Inc on Fri Aug 28, 2015 8:58 pm, edited 2 times in total.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact: