Max files per directory on NTFS vol vs FAT32
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?
ntfs fat32
migrated from stackoverflow.com Jul 8 '12 at 9:11
This question came from our site for professional and enthusiast programmers.
add a comment |
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?
ntfs fat32
migrated from stackoverflow.com Jul 8 '12 at 9:11
This question came from our site for professional and enthusiast programmers.
I seem to recall a hard limit for the root directory of both filesystems and a soft limit (disk size) for child directories.
– lexu
Mar 12 '10 at 13:54
1
Ok I found one part of the answer. For FAT32: max number of files in a directory is 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Does anyone know the answer for NTFS?
– Gaurav
Mar 12 '10 at 14:03
According to MSDN (technet.microsoft.com/en-us/library/cc781134(WS.10).aspx) there can be atleast 300k files in a folder. I suspect that on NTFS max files per folder is limited only by max files per NTFS vol.
– Gaurav
Mar 12 '10 at 14:09
add a comment |
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?
ntfs fat32
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?
ntfs fat32
ntfs fat32
asked Mar 12 '10 at 13:48
Gaurav
migrated from stackoverflow.com Jul 8 '12 at 9:11
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Jul 8 '12 at 9:11
This question came from our site for professional and enthusiast programmers.
I seem to recall a hard limit for the root directory of both filesystems and a soft limit (disk size) for child directories.
– lexu
Mar 12 '10 at 13:54
1
Ok I found one part of the answer. For FAT32: max number of files in a directory is 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Does anyone know the answer for NTFS?
– Gaurav
Mar 12 '10 at 14:03
According to MSDN (technet.microsoft.com/en-us/library/cc781134(WS.10).aspx) there can be atleast 300k files in a folder. I suspect that on NTFS max files per folder is limited only by max files per NTFS vol.
– Gaurav
Mar 12 '10 at 14:09
add a comment |
I seem to recall a hard limit for the root directory of both filesystems and a soft limit (disk size) for child directories.
– lexu
Mar 12 '10 at 13:54
1
Ok I found one part of the answer. For FAT32: max number of files in a directory is 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Does anyone know the answer for NTFS?
– Gaurav
Mar 12 '10 at 14:03
According to MSDN (technet.microsoft.com/en-us/library/cc781134(WS.10).aspx) there can be atleast 300k files in a folder. I suspect that on NTFS max files per folder is limited only by max files per NTFS vol.
– Gaurav
Mar 12 '10 at 14:09
I seem to recall a hard limit for the root directory of both filesystems and a soft limit (disk size) for child directories.
– lexu
Mar 12 '10 at 13:54
I seem to recall a hard limit for the root directory of both filesystems and a soft limit (disk size) for child directories.
– lexu
Mar 12 '10 at 13:54
1
1
Ok I found one part of the answer. For FAT32: max number of files in a directory is 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Does anyone know the answer for NTFS?
– Gaurav
Mar 12 '10 at 14:03
Ok I found one part of the answer. For FAT32: max number of files in a directory is 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Does anyone know the answer for NTFS?
– Gaurav
Mar 12 '10 at 14:03
According to MSDN (technet.microsoft.com/en-us/library/cc781134(WS.10).aspx) there can be atleast 300k files in a folder. I suspect that on NTFS max files per folder is limited only by max files per NTFS vol.
– Gaurav
Mar 12 '10 at 14:09
According to MSDN (technet.microsoft.com/en-us/library/cc781134(WS.10).aspx) there can be atleast 300k files in a folder. I suspect that on NTFS max files per folder is limited only by max files per NTFS vol.
– Gaurav
Mar 12 '10 at 14:09
add a comment |
4 Answers
4
active
oldest
votes
After a quick search on google I found these:
FAT32
- 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
NTFS:
- 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
References:
- http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html
- http://www.ntfs.com/ntfs_vs_fat.htm
2
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
1
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
add a comment |
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.
add a comment |
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.
4
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
add a comment |
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.
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f446282%2fmax-files-per-directory-on-ntfs-vol-vs-fat32%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
After a quick search on google I found these:
FAT32
- 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
NTFS:
- 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
References:
- http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html
- http://www.ntfs.com/ntfs_vs_fat.htm
2
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
1
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
add a comment |
After a quick search on google I found these:
FAT32
- 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
NTFS:
- 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
References:
- http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html
- http://www.ntfs.com/ntfs_vs_fat.htm
2
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
1
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
add a comment |
After a quick search on google I found these:
FAT32
- 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
NTFS:
- 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
References:
- http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html
- http://www.ntfs.com/ntfs_vs_fat.htm
After a quick search on google I found these:
FAT32
- 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
NTFS:
- 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
References:
- http://ask-leo.com/is_there_a_limit_to_what_a_single_folder_or_directory_can_hold.html
- http://www.ntfs.com/ntfs_vs_fat.htm
answered Mar 17 '11 at 8:34
good man
2
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
1
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
add a comment |
2
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
1
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
2
2
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
"Maximum number of files in a single folder: 65,534 (FAT32)" - This limit would seem to be dependent on the length of the filenames. Specifically, if you are using LFNs (ie. not just the 8.3 short names). The short name and each 13 byte block of the LFN are stored in separate directory entries, which can greatly reduce the actual number of files that can be stored. Reference: help.lockergnome.com/windows2/…
– MrWhite
Nov 27 '15 at 16:31
1
1
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
Archive of dead lockergnome link.
– John B
Jul 5 '16 at 22:49
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Dec 30 '15 at 13:26
Smile4ever
17411
17411
answered Aug 23 '10 at 19:29
Dominik WeberDominik Weber
28534
28534
add a comment |
add a comment |
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.
4
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
add a comment |
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.
4
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
add a comment |
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.
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.
edited Jul 1 '16 at 17:13
Scott
15.6k113889
15.6k113889
answered Dec 22 '15 at 15:03
John GroselleJohn Groselle
11
11
4
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
add a comment |
4
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
4
4
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
5 million < 4 billion
– mwfearnley
Nov 25 '16 at 9:07
add a comment |
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.
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
add a comment |
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.
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
add a comment |
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.
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.
answered 2 days ago
Neil MurphyNeil Murphy
1
1
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
add a comment |
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
Without information whether this refers to NTFS or FAT32, and to the root or a subdirectory, this is useless.
– RalfFriedl
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
64 and 128 what? It certainly isn’t 64 files. Without any documentation to backup your answer, this answer, has much to be desired
– Ramhound
2 days ago
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f446282%2fmax-files-per-directory-on-ntfs-vol-vs-fat32%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I seem to recall a hard limit for the root directory of both filesystems and a soft limit (disk size) for child directories.
– lexu
Mar 12 '10 at 13:54
1
Ok I found one part of the answer. For FAT32: max number of files in a directory is 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Does anyone know the answer for NTFS?
– Gaurav
Mar 12 '10 at 14:03
According to MSDN (technet.microsoft.com/en-us/library/cc781134(WS.10).aspx) there can be atleast 300k files in a folder. I suspect that on NTFS max files per folder is limited only by max files per NTFS vol.
– Gaurav
Mar 12 '10 at 14:09