filesystems - FAT and NTFS file systems comparison clarifications -


i began studying file systems, fat* , ntfs.

in fat file systems clusters may data or directory clusters, , starting cluster number of root directory known, prior fat32 fixed @ formatting time, , fat32 found in extended bios block in boot sector.

ntfs in other hand organizes under master file table, mft record each file , directory in system. master file table has first 27th position marked reserved , first index consists of $mft record, describes mft itself.

i understand how ntfs keeps track of data via resident / non-resident data attribute, while fat uses directory entries find first cluster of cluster chain , refer file allocation table further processing.

now mind find difficult "processing" these things.

where find root directory in ntfs?

how directory represented in mft record? both in resident , non-resident way, , how find sub-directory mft record via current mft record?

what if cluster runs specified in second half of mft record go beyond 1024 bytes limit? (i understand means badly fragmented file)

i have answer myself, may useful others.

the root directory in ntfs found @ index 5 of reserved records of mft.

a directory mtf record in ntfs represented file mtf record, instead of data attribute part, index root , index allocation attributes stored. index root contains indexes of mft records in mft represent files , directories stored inside actual directory.

the index allocation used in case data runs bigger 1024 bytes limit, de-reference data continuation mft record.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -