How does controller figure out HD size?
PC Hardware Forum Index PC Hardware
Dicussion of PC hardware and peripherals
 
 FAQFAQ   MemberlistMemberlist    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web hwtalk.net
How does controller figure out HD size?

 
Post new topic   Reply to topic    PC Hardware Forum Index -> SCSI
Author Message
vax, 9000
Guest





Posted: Sat Dec 04, 2004 12:27 pm    Post subject: How does controller figure out HD size? Reply with 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
Back to top
Rob Turk
Guest





Posted: Sat Dec 04, 2004 1:44 pm    Post subject: Re: How does controller figure out HD size? Reply with quote

"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
Back to top
 
Post new topic   Reply to topic    PC Hardware Forum Index -> SCSI All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Electronics VoIP DSP
New Topics php BB