您好,欢迎访问三七文档
ComputerForensicsNTFSFileSystemMBRandGPTDisksMBRdisksfor32b86x-compatiblesGPTdisksfor64bItaniumprocessorsStartwithaMBRinordertomaintaincompatibilityMBRhasasinglepartitionwithapartitiontableentryof0xEENTFSArchitectureNTFSArchitectureNTFSBootSectorNoticethattheendofsectormarkeris55AA.YoucanlookforthistofindbootsectorsforNTFSandDOS.NTFSBootSector0x003BJumpInstruction0x038BOEMID0x0B25BBPB0x2448BExtendedBPB0x54426BBootstrapCode.0x1FE2BEndofSectorMarkerNTSFBootSectorNTSFBootSectorManyfieldsarenotimportant,but:0x0B,Bytespersector.0x0DSectorsperCluster0x15Mediadescriptor.F8:HD;F0:HDFloppy0x28Totalsectors.0x30LogicalclusternumberfortheMFT0x38LogicalclusternumbercopyoftheMFT0x40ClustersperMFTRecord.0x48VolumeserialNTFSBootSectorWinHexallowsaccesstoaninterpretedNTFSBootSector.UsetheAccessTab.NTFSBPB0x0BBytespersector:00020200=512decimal0x0DSectorspercluster:0x080x0EReservedsectors0x0000NTFSBPB0x15:MediaDescriptor:F8isharddrive,F0isfloppy.0x28Totalnumberofsectors:F7AF4E0900000000000000094EAFF7156,151,799sectors,i.e.~80GBNTFSBPB0x30:LogicalclusternumberforMFTcopy1:clusterC07FE9(File$MFT)0x38:LogicalclusternumberforMFTcopy2:cluster40029DNTFSBPB0x40:ClustersperMFTrecord:F60x48:VolumeSerialNumberNTFSMasterFileTableFirstfourentriesarereplicated,sothatMFTcanberepairedFirst16recordsarereservedformetadatafiles,theirnamebeginswithadollarsign($)NTFSMasterFileTable1.Masterfiletable$MFT.2.Masterfiletablemirror$MftMirr.3.Logfile$LogFile.4.Volume$VolumeAttributedefinitions$AttrDef.5.Therootfolder“.”6.Clusterbitmap$Bitmap7.Bootsector$Boot(locatedatthebeginningofpartition)8.Badclusterfile$BadClus9.Securityfile$Secure10.Upcasetable$Upcase11.NTFSextensionfile$Extend,thatisusedforfutureuse.NTFSMasterFileTableMFTRecordStructureEntriesare1KBeachEntriescontainFileAttributesLocationDataMFTRecordsSmallFiles(900B)arecontainedcompletelyintheMFTentry.MFTRecordsFolderscontainindexdata.SmallfoldersresidewithintheMFTrecordLargerfoldershaveanindexstructuretootherdatablocks.TheyuseaB-treestructure.MFTRecordEachMFTrecordisaddressedbya48bitMFTentryvalue.Firstentryhasaddress0.EachMFTentryhasa16bitsequencenumberthatisincrementedwhentheentryisallocated.MFTentryvalueandsequencenumbercombinedyield64bfilereferenceaddress.MFTRecordNTFSusesthefilereferenceaddresstorefertoMTFentries.Whenthesystemcrashesduringallocation,thenthesequencenumberdescribeswhethertheMTFentrybelongedtothepreviousfileortothecurrentone.MFTRecordMFTentryattributesarelooselydefined.Eachattributeisprecededbytheattributeheader.TheattributeheaderidentifiesTypeofattribute.Size.Name.MFTRecordStructureTheattributeheadergivesbasicinformationabouttheattribute.AresidentattributeisstoredintheMFTentry.Anon-residententryisstoredinaclusteroutsidetheMFT.MFTRecordStructureResidentattributesarestoredinMFTrecord.Non-residentattributesarestoredinclusterruns.Clusterrunconsistsofconsecutiveclustersandareidentifiedbystartingclusterandrunlength.NTFSdistinguishesbetweenVirtualClusterNumbersandLogicalClusterNumbers.LCN*(#sectorsincluster)=sectornumberLCN0isfirstclusterinthevolume(bootsector).VCN0referstothefirstclusterinaclusterrun.MFTRecordStructureMFTentryheaderhasafixedstructureMFTRecordStructure0x00-0x03:MagicNumber:FILE0x04-0x05:Offsettotheupdatesequence.0x06-0x07:Numberofentriesinfixuparray0x08-0x0f:$LogFileSequenceNumber(LSN)0x10-0x11:Sequencenumber0x12-0x13:Hardlinkcount0x14-0x15:OffsettofirstattributeMFTRecordStructure0x16-0x17:Flags:0x01:recordinuse,0x02directory.0x18-0x1b:UsedsizeofMFTentry0x1c-0x1f:AllocatedsizeofMFTentry.0x20-0x27:FilereferencetothebaseFILErecord0x28-0x29:NextattributeID0x2a-0x2b:(XP)Alignto4Bboundary0x2c-ox2f:(XP)NumberofthisMFTrecord0x30-0x100:AttributesandfixupvalueMFTRecordStructureEXAMPLE1:AdirectoryentryMFTRecordMFTrecordsstartwith“FILE”.Abadclusterwouldstartwith“BAAD”MFTRecordBytes4-5:Offsettoupdatesequence.Bytes6-7:NumberofentriesinfixuparrayBytes8-f:LogfilesequencenumberBytes0x10-0x11:Sequencenumber:5900MFTRecordBytes0x12-0x13:2–hardlinkcountBytes0x14-0x15:Offsettofirstattribute:0x38Bytes0x16-0x17:Flags:Inuseandcontainsadirectory0x0001|0x0002MFTRecordBytes0x14–0x15:Firstattributestartsat0x38000x0038MFTListofpossibleattributesDefinedin$AttrDefentryofMFT,butdefaultis:0x10STANDARD_INFORMATION0x20$ATTRIBUTE_LIST0x30$FILE_NAME0X40(NT)$VOLUME_VERSION(2K)$OBJECT_ID0x50$SECURITY_DESCRIPTOR0x60$VOLUME_NAME0x70$VOLUME_INFORMATION0x80$DATA0x90$INDEX_ROOT0xA0$INDEX_ALLOCATION0xB0$BITMAP0xC0(NT)$SYMBOLIC_LINK,(2K)$REPARSE_POINT0xD0$EA_INFORMATION0xE0$EA0xF0NT$PROPERTY_SET0x100(2K)$LOGGED_UTILITY_STREAMMFTAttributeLayoutAttributescanberesidentornon-resident.Beginningisalwaysthesame:0x00AttributeTypeIdentifier0x04LengthofAttribute0x08non-residentflag0x09lengthofname0x0aoffsettoname0x0cflagsMFTAttributeExampleAttributeisoftype00000001.StandardInformationAttributeis0x00000060byteslong.Attributeisresident(0x00)Contentsare0x00000048byteslongandstartatoffset0x0018.MFTAttributeExample0x008FileCreationT
本文标题:NTFS 文件系统
链接地址:https://www.777doc.com/doc-3583778 .html