What's the max number of files that can be present in a directory on a NTFS volume? Same question for a directory for FAT32 volume?
After a quick search on google I found these:
- Maximum disk size: 2 terabytes
- Maximum file size: 4 gigabytes
- Maximum number of files on disk: 268,435,437
- Maximum number of files in a single folder: 65,534
- Maximum disk size: 256 terabytes
- Maximum file size: 256 terabytes
- Maximum number of files on disk: 4,294,967,295
- Maximum number of files in a single folder: 4,294,967,295
NTFS: There is no fixed limit. The maximum number of files is one upper limit. This limit is either 2^23-1 (according to many driver implementations) or 2^48 -1 (according to the MFT_REF structure). As you will have LARGE directories, you will see non-resident $BITMAP_ALLOCATION streams, a large INDEX stream. The index stream is essentially a B+ tree of file names.
FAT32: There is a difference between the root directory and sub-directories. The root has certain limitations.
With Windows Server 2012 R2, NTFS has exceeded 232 (slightly over 4 billion). I am currently running a document imaging server with almost 5 million files, as shown below. I am running NTFS and NOT ReFS, which I know can hold 264 files. NTFS on Windows 2012 R2 can hold more than 232 files.
PS E:\> chkdsk /v The type of the file system is NTFS. Volume label is Data. WARNING! F parameter not specified. Running CHKDSK in read-only mode. Stage 1: Examining basic file system structure ... 4992768 file records processed. File verification completed. 27 large file records processed. 0 bad file records processed.
I just tried to move files to a flash drive. I don't have a count but between 64 and 128 is the max that Windows 7 will do. W7 sugests that I put the remaining files in a new directory.