“Maxim S. Shatskih” wrote:
> I shall simplify a question:
> I have only IDENTIFY DATA buffer. And i want to count up a
> HDD size. It is possible or not?For LBA mode disks, UserAddressableSectors is the thing.
For CHS mode - C*H*S is the thing.
Use:if( ( C == 16383 ) && ( H == 16 ) && ( S == 63 ) )
- as a condition for a LBA-mode disk.
This is how NT4SPx works.
I have NT4SP6 and the following drives:
C2490 H16 S63
UserAddressableSectors 2511840
- 1.2GB disk (it is in CHS mode) - and:
C16383 H16 S63
UserAddressableSectors 26688576
- 13GB disk in LBA mode - not listed in the BIOS at all.
Note that all disks larger then 8GB will have C16383 H16 S63.
And i can’t to count up disk size, if disk larger then 8GB?
Dmitry.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com