vax, 9000
Guest
|
Posted:
Sat Dec 04, 2004 12:27 pm Post subject:
How does controller figure out HD size? |
|
|
Hi group,
I need to detect the SCSI HD size in my hobby project. I checked SCSI-II
standard and tried to find the answer where INQUIRY command is discussed.
However, in the table of "standard INQUIRY data format", I can not find
place to hold SCSI HD size (such as total number of 512 byte blocks). I can
successfully write, read, issue command, etc to the HD through a controller
(53C90A, old...). and the only thing needed now is to tell the size in
booting time. Please point out to me where in the standard I should look up
the answer. Thank you.
vax, 9000 |
|
Rob Turk
Guest
|
Posted:
Sat Dec 04, 2004 1:44 pm Post subject:
Re: How does controller figure out HD size? |
|
|
"vax, 9000" <vax9000@gmail.com> wrote in message
news:coroov$8hf$1@charm.magnus.acs.ohio-state.edu...
| Quote: | Hi group,
I need to detect the SCSI HD size in my hobby project. I checked SCSI-II
standard and tried to find the answer where INQUIRY command is discussed.
However, in the table of "standard INQUIRY data format", I can not find
place to hold SCSI HD size (such as total number of 512 byte blocks). I
can
successfully write, read, issue command, etc to the HD through a
controller
(53C90A, old...). and the only thing needed now is to tell the size in
booting time. Please point out to me where in the standard I should look
up
the answer. Thank you.
vax, 9000
|
Use the Read Capacity command. It tells you exactly how many blocks a
harddisk offers. To be exact you can then use Mode Sense to find the block
size (usually 512 byte, but sometimes 520).
Rob |
|