M
mori
Hi,
I have a 40Gb drive which, when I partition with fdisk, gives somes very
strange figures for starting and ending values of CHS of the partitions
(don't have them to hand but not important at the minute),
soooooooo............
used Int 13h with AH=48h and DL=80h (drive C to get the (correct?) drive
parameters with these results returned in the DS:SI buffer....
1A 00 0A 00 FF 3F 00 00 0F 00 00 00 3F
00 00 00 80 2D C9 04 00 00 00 00 00 02
which translates to....
offset 04h DW -> 00003FFF cylinders
offset 08h DW -> 0000000F heads
offset 0Ch DW -> 0000003F sectors per track
which equals EC3C4Fh sectors on the disk which doesn't agree with
offset 10h QW -> 0000000004C92D80
which is supposed to be 'total number of sectors on drive'
offset 02h is the information flags word and has a value of 000Ah ->
0000000000001010b
bit 1 being set (as above) indicates that
'cylinder/head/sectors-per-track information is valid'
using ptsde disk editor and loading physical device - hard disk 1 (drive C)
it says that there are sectors 0 - 80287199d
or 0 - 4C915DFh which is *near* to the value in offset 10h above and roughly
40Gb. I cannot get to the end of the drive with ptsde.
This is a brand new drive.
Is there something wrong with the drive so that I can't view any sectors
above 65075231d (3E0F81Fh) with ptsde?
How is ptsde coming up with it's given number of sectors which disagree with
Int 13?
Any insight would be greatly appreciated
tia
mori
I have a 40Gb drive which, when I partition with fdisk, gives somes very
strange figures for starting and ending values of CHS of the partitions
(don't have them to hand but not important at the minute),
soooooooo............
used Int 13h with AH=48h and DL=80h (drive C to get the (correct?) drive
parameters with these results returned in the DS:SI buffer....
1A 00 0A 00 FF 3F 00 00 0F 00 00 00 3F
00 00 00 80 2D C9 04 00 00 00 00 00 02
which translates to....
offset 04h DW -> 00003FFF cylinders
offset 08h DW -> 0000000F heads
offset 0Ch DW -> 0000003F sectors per track
which equals EC3C4Fh sectors on the disk which doesn't agree with
offset 10h QW -> 0000000004C92D80
which is supposed to be 'total number of sectors on drive'
offset 02h is the information flags word and has a value of 000Ah ->
0000000000001010b
bit 1 being set (as above) indicates that
'cylinder/head/sectors-per-track information is valid'
using ptsde disk editor and loading physical device - hard disk 1 (drive C)
it says that there are sectors 0 - 80287199d
or 0 - 4C915DFh which is *near* to the value in offset 10h above and roughly
40Gb. I cannot get to the end of the drive with ptsde.
This is a brand new drive.
Is there something wrong with the drive so that I can't view any sectors
above 65075231d (3E0F81Fh) with ptsde?
How is ptsde coming up with it's given number of sectors which disagree with
Int 13?
Any insight would be greatly appreciated
tia
mori