Forum: Mikrocontroller und Digitale Elektronik Frage zu FAT


von Udo (Gast)


Lesenswert?

Hallo.

Ich habe eine frage zum FAT16 file system:

Ich habe z.B. im Stammverzeichniss einen datei habe. dann enthält die
letzten 2 bytes des eintrages die grösse der datei in bytes. nur in die
2 bytes passt ja nur eine maximale filegrösse von 64 Kb rein.

Udo

von Daniel Lancelle (Gast)


Lesenswert?

Hallo!

Das hier steht auf der Seite:
http://www.beginningtoseethelight.org/fat16/

data length ( =4 bytes )

the minimum can be 00 00 00 00 - 0 and the maximum ff ff ff ff -
 4,294,967,295
gb, mb, kb, by

this entry will state the length of data to read in.
eg, AC 3B 96 00
flip these values: 00 96 3B AC
convert to decimal: 9,845,676 bytes or 9.38MB
folders have a value of: 00 00 00 00

the maximum is restricted by the size of the partition. the largest
partition creatable by fdisk for fat16 is 2047.31mb (2,146,765,824
bytes) entry stated as 00,80,f0,7f. the largest file creatable in this
partition is 1.99gb (2,146,467,840 bytes). not all the data area is
filled, 18,944 bytes of surplus sectors were left empty at the end.

Gruß

von Rufus T. Firefly (Gast)


Lesenswert?

Kurz: Es sind nicht zwei, sondern vier Bytes.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.