home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / SMON_1B3.LZH / HARDDISK.INF < prev    next >
Text File  |  1991-02-28  |  3KB  |  71 lines

  1. 066000003000000132000000006000000
  2. 10
  3. 20
  4. F0110000001
  5. 9[..........................................................]0110
  6. ÇTHE HARD DISK PARTITION (OR ROOT) SECTOR
  7.  
  8. This is some information shamelessly stolen from various sources,
  9. and which may be of some interest to hard disk users.Noneofit
  10. isguaranteedtobeaccurateorcomplete.IfyouREALLYwantto
  11. getintoyourharddisk,lookelsewhere.
  12. ThisonlydealswithstandardAtaripartitionharddisks.
  13.  
  14. LAYOUT
  15. Theharddiskitselfislayedoutasfollows:
  16. ROOTSECTOR
  17. BADSECTORLIST
  18. PARTITION1
  19. ANYFURTHERPARTITIONS
  20. Eachpartitionhasit'sownBOOTsector(sectorzero).
  21. TherootsectorcouldberegardedastheDRIVE'sbootsector.
  22.  
  23. Thefirstfewhundredbytesaretakenupwithbootcode.This
  24. checksthekeyboardtoseeiftheAlternatekeyispressed,if
  25. so,itdisablesautobooting.Ifnot,itfindsoutifthereisa
  26. selfbootingpartition,andestablishescontact.Ithinkatthis
  27. stagetheharddiskdriverisloadedandtiedintothesystem.
  28. Sowestartwiththeinformationat:
  29.  
  30. (B)    $1B8Numberofheads(2AREbetterthan1,butusually
  31. therearemorethanthat)
  32. (B)    $1BELandingtracknumber
  33. (B)    $1BFSeekrate(inmillisecs)
  34. (B)    $1C0Interleave(normally1)
  35. (B)    $1C1Sectorspertrack
  36. (68)$1C2TotalnumberofsectorsfortheENTIREdisk(lots)
  37.  
  38. (B)    $1C6p0-fig1byteindicatespartitionexists(bit0)
  39.        andwhetherbootable(bit7)
  40.        $1C7p0-id3bytesidentifier(GEMifGemdospartition,
  41. BGMfor>16Megpartition,XGMforextended,
  42. butcanbeotherthingsforotherpurposes.
  43.        $1CAp0-stStartofpartition(insectors)fromthe
  44. verybeginningoftheharddisk.
  45.        $1CEp0-sizSizeofthepartitioninsectors(512bytes)
  46.  
  47.        $1D2to$1DDMoreofthesameforpartition2
  48.  
  49.        $1DEto$1E9Andagainforpartition3
  50.  
  51.        $1EAto$1F5And4
  52.  
  53. (68)   $1F6BSL_STOffsettothebeginningthebadsectorlist
  54. (68)   $1FAbsl_cntSizeofthebadsectorlist(numbersectors)
  55.        $1FEReserved
  56.  
  57. (B)meansbyte,(68)meansa68000format(high/low)longword.
  58.  
  59. Thep-figbyte:Ifbit7isset,thepartitionisbootable.Dos
  60. willsimplybootthefirstpartitionitcomestowiththisbit
  61. set.TheAtariDOSwillalwaysgiveinfofor4partitions,ifit
  62. doesn'texistbit0issimplyturnedoff.
  63.  
  64. So,aquicklookintherootsectoratlocation$1FAwillshow
  65. youhowmanybadsectorsyourharddiskhas.
  66. Lookingatthep-blocksgivesinfoonthepartitions.
  67.  
  68. So,whatdoyoudowiththisinformation?Whocares,it'shere.
  69. ÇWillVisser
  70.  
  71.