硬盘技术磁道扇区柱面和磁头数_第1页
硬盘技术磁道扇区柱面和磁头数_第2页
硬盘技术磁道扇区柱面和磁头数_第3页
硬盘技术磁道扇区柱面和磁头数_第4页
硬盘技术磁道扇区柱面和磁头数_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

硬盘技术:磁道,扇区,柱面和磁头数硬盘技术:磁道,扇区,柱面和磁头数Harddisktechnology:tracks,sectors,cylinders,andheads..txtdidyourmomthrowthemupwhenyouwerebornandkeeptheplacentabig?Don'ttreatshrimpsasseafood.Don'ttreatshrimpsasseafood.1.tracks,sectors,cylinders,andheadsThebasiccomponentofaharddiskisadiskmadeofhardmetalmaterialcoatedwithmagneticmedium,varyinginnumberofdisksofdifferentcapacities.Eachdiskhastwosidesthatrecordinformation.Thediskisdividedintomanyfan-shapedregions,eachofwhichiscalledasector.Eachsectorcanstore128*2Ntimes(N=0.1.2.3)byteinformation.InDOS,eachsectoris128*2ofthe2square=512bytes,thedisksurfacewiththecenterofthediskasthecenter,concentricringsofdifferentradiiarecalledtracks.Acylinderconsistingoftracksofthesameradiusanddifferentdisksinaharddiskiscalledacylinder.Trackandcylinderaredifferentradiusofthecircle,onmanyoccasions,trackandcylindercanbeusedinterchangeably,weknowthateachdiskhastwofaces,eachfacehasahead,headnumberusedtodistinguish.Sectors,tracks(orcylinders)andnumberofmagneticheadsformthebasicparametersoftheharddiskstructure,andthecapacityoftheharddiskcanbeobtainedbyusingtheseparameters:Storagecapacity=headnumber*track(cylinder)number*persectornumber*persectorbyteMainpoints:(1)theharddiskhasseveraldisks,eachofwhichhastwoplanes,eachwithamagnetichead(2)thediskisdividedintoseveralsectors,namelysector(3)concentriccircleswithdifferentradiionthesamediskaretracks(4)cylindricalsurfacewithdifferentradii,namelycylinder;(5)formula:storagecapacity=magneticheadnumber*track(cylinder)number*persectornumber*persectorbytenumber(6)theinformationrecordscanberepresentedas**tracks(cylinders),*heads,**sectorsThe2.clusterAclusteristhesmallestunitinwhichDOSisassigned.Whenasmallfileiscreated,suchasabyte,itdoesnottakeuponlyonebyteofspaceondisk,butoccupiestheentirecluster.DOSdependingonthestoragemedium(suchasfloppydisk,harddisk),differentcapacityoftheharddisk,thesizeoftheclusterisnotthesame.Thesizeoftheclustercanbeobtainedinthediskparameterblock(BPB).Theconceptofclustersappliesonlytodataregions.Thispoint:(1)theclusteristhesmallestunitforDOSallocation.(2)differentstoragemedia,differentcapacityharddisk,differentDOSversion,thesizeofclusterisnotthesame.(3)theconceptofclustersappliesonlytodataregions.3.sectornumberdefinition:absolutesectorandDOSsectorIntroduceaccordingtothefront,wecanusethecylinder/head/sectortoeveryareaoftheuniquelocationonthedisk,orthateverycylinder/head/disksectorsectorandcorrespondingrelation,usuallyDOScylinder/head/sector"sucharepresentationcalled"absolutesector"representation.ButDOScannotuseabsolutesectortomanagetheinformationondiskinsteadofusingtheso-called"relativesector"or"DOSsector"".Therelativesectorisjustanumber,suchascylinder140,head3,andsector4correspondingtothesectornumber2757.Thenumberisinone-to-onecorrespondencewiththeabsolutesector"cylinder/head/sector".Whenusingtherelativesectornumber,DOSisfromthecylinder0,head1,sector1starts(Note:cylinder0,head0,sector1noDOSsectornumber,DOScannotaccess,BIOScanbecalledthefirstvisit),DOSsectornumberis0,theremainingsectornumberis1tothetrack16(17persector),thentheheadnumberis2,17forcylindricalsector0,theformationoftheDOSsector,from17to33.Allheadsofthecylinder.Thenmovetocylinder1,head1,sector1tocontinuethenumberingoftheDOSsector,thatis,accordingtothefanareacode,headnumber,cylindernumber(tracknumber)intheorderofgrowth,thecontinuousdistributionofDOSfanareacode.Formula:rememberthefirstheadnumberDHDOSsectorCylindernumberDCfirstDOSsectorThefirstDSDOSsectorsectorNSsectorspertrackThetotalnumberofNHdiskheadTherelativesectornumberofasector(cylinderC,headH,sectorS)isRS:RS=NH*NS*(CDC)NS*(HDH)+(SDS)IfRS,DC,DH,DS,NS,andNHareknown,thenS=(RSMODNS)DS(H=(RSDIVNS)MODNH)DH(C=(RSDIVNS)DIVNH)DCMainpoints:(1)theabsolutesectorrepresentedbycylinder/head/sectorisalsocalledphysicaldiskaddress(2)asingledigitrepresentstherelativesectororDOSsector,alsoknownasthelogicalfancode(3)conversionformulabetweenrelativesectorandabsolutesector4.DOSpartitionofdiskareaAformattedharddisk,thediskaccordingtothedatarecordsofdifferentfunctioncanbedividedintothemainbootrecord(MBR:MainBootRecord),Dos(DBR:DosBootRecord)bootrecord,fileallocationtable(FAT:FileAssignTable),therootdirectory(BD:BootDirectory)andthedataarea.Thefirst5importantinformationontheoutertrackofthedisk,thereasonisthattheperimeteroftheouterringisgreaterthantheperimeteroftheinnerring,thatistosay,thestoragedensityoftheouterringissmallerandthereliabilityishigher.Mainpoints:(1)theentirediskcanbedividedintoMBR,DBR,FAT,BD,anddataareas.(2)MBR,DBR,FAT,andBDonthedisk.5.MBRMBRislocatedinthefirstphysicalsectoroftheharddisk(absolutesector),cylinder0,head0,sector1.SincetheDOSismadeupofcylinder0,head1,sector1,theMBRdoesnotbelongtotheDOSsector,andDOScannotbeaccesseddirectly.MBRcontainsthemainbootandharddiskpartitiontablesfortheharddisk.Thepartitiontablehas4partitionrecords.Arecordareaisatablethatrecordsinformationaboutpartitions.Itisstoredcontinuouslyfromthemainbootrecordoffsetaddress01BEH,eachrecordingareaof16bytes.FormatofpartitiontableTheoffsetmeaningofapartitionedtableentry00bootdesignator1BTheheadnumberofthe01partitionbootrecord1BThe02partitionguidesthesectorandcylindernumber2Boftherecord04systemdesignator1B05endofpartitionheadnumber1B06partitionendsectorandcylindernumber2BThenumberofsectorsinfrontofthe08partition4BThetotalnumberofsectorsinthe0Cpartition4BOnly4partitionshave1activepartition,namelyC.Thesymbolis80Hinthefirstbyteofthepartitionedtable.If00H,inactivepartitionsareindicated.Suchas:80010100,0B,FE,3F,81,3F,000000,C3,DD,1F,00,FE,BF,0C,02,DE,1F,00,0E,9061000000,00000000,0000Mainpoints:(1)MBRislocatedinthefirstphysicalsectorofcylinder,cylinder0,head0,sector1.NotpartoftheDOSsector,(2)themasterbootrecordisdividedintothemainbootprogramandtheharddiskpartitiontableoftheharddisk.6.DBRDBRislocatedincylinder0,head1,sector1,logicalsector0.DBRisdividedintotwoparts:theDOSbootstrapprogramandtheBPB(BIOSparameterblock).TheDOSbootloadercompletesthelocationandloadingoftheDOSsystemfiles(IO.SYS,MSDOS.SYS),whiletheBPBisusedtodescribediskinformationfortheDOSpartition.BPBislocatedatDBRoffset0BH,withatotalof13bytes.ItcontainslogicalformattingparametersusedforcomputingDOS,fileallocationtableondisk,startaddressdirectoryareaanddataarea,BPBafterthreewords(grid)toprovidephysicalformatwithsomeparameters.Thebootprogramordevicedriverconvertsthedisklogicaladdress(DOS,areacode)intophysicaladdresses(absolutefannumbers)basedonthisinformation.BPBformatSerialoffsetaddressmeaning103H0AHNo.OEM20BH-0CHbytespersector30DHperclustersectornumber40EH0FHretainthenumberofsectors510HFATbackupnumber611H12Hrootnumber713H-14Hdisktotalsectorcount815Hdescriptionmedium916H17HsectorsperFAT1018H19Hsectorspertrack111AH1BHhead121CH1FHspecialhiddensectors1320H23Htotalsectorcount1424H25Hphysicaldrivenumber1526Hextendedbootvisa1627H2AHvolumeserialnumber172BH35Hvolumelabel1836H3DHfilesystem.DOSbootrecordformula:ThefileallocationtableandkeepthenumberofsectorsThenumberofrootdirectory=xFATreservedsectorofeachFATsectorThedataareaandtherootdirectoryofthelogicalsectornumber(32+X+(directoryintherootdirectoryofthenumberofbytespersector1bytespersector))DIVAbsolutesectornumber=logicalsectornumber+hiddensectornumberSectornumber=(absolutesectornumberMODthenumberofsectorspertrack)+1Headnumber(DIV=absolutesectornumberofsectorspertrack)headnumberMODTracknumber(DIV=absolutesectornumberofsectorspertrack)headnumberDIVMainpoints:(1)DBRislocatedincylinder0,head1,sector1,anditslogicalareacodeis0(2)DBRcontainstheDOSbootprogramandtheBPB.(3)BPBisveryimportant,sothatthelogicaladdressandphysicaladdresscanbecalculated.SevenThedirectoryfilename,thefirstbyteinthearea,hasaspecialmeaning:00Hstandsforunused05Hs

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论