home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
SMON_1B3.LZH
/
HARDDISK.INF
< prev
next >
Wrap
Text File
|
1991-02-28
|
3KB
|
71 lines
066000003000000132000000006000000
10
20
F0110000001
9[..........................................................]0110
ÇTHE HARD DISK PARTITION (OR ROOT) SECTOR
This is some information shamelessly stolen from various sources,
and which may be of some interest to hard disk users.Noneofit
isguaranteedtobeaccurateorcomplete.IfyouREALLYwantto
getintoyourharddisk,lookelsewhere.
ThisonlydealswithstandardAtaripartitionharddisks.
LAYOUT
Theharddiskitselfislayedoutasfollows:
ROOTSECTOR
BADSECTORLIST
PARTITION1
ANYFURTHERPARTITIONS
Eachpartitionhasit'sownBOOTsector(sectorzero).
TherootsectorcouldberegardedastheDRIVE'sbootsector.
Thefirstfewhundredbytesaretakenupwithbootcode.This
checksthekeyboardtoseeiftheAlternatekeyispressed,if
so,itdisablesautobooting.Ifnot,itfindsoutifthereisa
selfbootingpartition,andestablishescontact.Ithinkatthis
stagetheharddiskdriverisloadedandtiedintothesystem.
Sowestartwiththeinformationat:
(B) $1B8Numberofheads(2AREbetterthan1,butusually
therearemorethanthat)
(B) $1BELandingtracknumber
(B) $1BFSeekrate(inmillisecs)
(B) $1C0Interleave(normally1)
(B) $1C1Sectorspertrack
(68)$1C2TotalnumberofsectorsfortheENTIREdisk(lots)
(B) $1C6p0-fig1byteindicatespartitionexists(bit0)
andwhetherbootable(bit7)
$1C7p0-id3bytesidentifier(GEMifGemdospartition,
BGMfor>16Megpartition,XGMforextended,
butcanbeotherthingsforotherpurposes.
$1CAp0-stStartofpartition(insectors)fromthe
verybeginningoftheharddisk.
$1CEp0-sizSizeofthepartitioninsectors(512bytes)
$1D2to$1DDMoreofthesameforpartition2
$1DEto$1E9Andagainforpartition3
$1EAto$1F5And4
(68) $1F6BSL_STOffsettothebeginningthebadsectorlist
(68) $1FAbsl_cntSizeofthebadsectorlist(numbersectors)
$1FEReserved
(B)meansbyte,(68)meansa68000format(high/low)longword.
Thep-figbyte:Ifbit7isset,thepartitionisbootable.Dos
willsimplybootthefirstpartitionitcomestowiththisbit
set.TheAtariDOSwillalwaysgiveinfofor4partitions,ifit
doesn'texistbit0issimplyturnedoff.
So,aquicklookintherootsectoratlocation$1FAwillshow
youhowmanybadsectorsyourharddiskhas.
Lookingatthep-blocksgivesinfoonthepartitions.
So,whatdoyoudowiththisinformation?Whocares,it'shere.
ÇWillVisser