diff --git a/src/tools/format.c b/src/tools/format.c index 1f8fea1..7763c40 100644 --- a/src/tools/format.c +++ b/src/tools/format.c @@ -51,6 +51,7 @@ partInfo->startSector = (startSector+1); partInfo->blockAllocationTable = (startSector+1); partInfo->rootDirectory = ((startSector+1) + (batSize/512)); + partInfo->rootDirectorySize = 0x4000/512; fseek(driveFd,(startSector * 512),0); fwrite(partInfo,512,1,driveFd); startSector++; diff --git a/src/tools/ubixfs.h b/src/tools/ubixfs.h index 608d97f..ba8f525 100644 --- a/src/tools/ubixfs.h +++ b/src/tools/ubixfs.h @@ -35,6 +35,7 @@ uLong startSector; //Base Sector Of Partition uLong blockAllocationTable; //Base Sector Of BAT uLong rootDirectory; //Base Sector Of Root Directory + uLong rootDirectorySize; /* Size In Sectors Of Root Directory */ }; //Block Allocation Table Entry