Maximum number of files on a USB drive
Solved
crepijules
Posted messages
80
Status
Membre
-
crepijules Posted messages 80 Status Membre -
crepijules Posted messages 80 Status Membre -
Hello!
I have a little issue, actually, I have a USB stick that I use to store many (really a lot) of files. Their size isn't really big, it's almost just text files. The problem is I have several tens of thousands of them...
So, I have a USB stick (with ample capacity), formatted in FAT32. I can move about 21,500 files, and then I get an error. The only solution I found was to create different folders at the root, but that's not very practical for using these files.
I have already tried to search on good old Google, but it keeps redirecting me to results about the maximum file size, not their number.
Thanks in advance!
I have a little issue, actually, I have a USB stick that I use to store many (really a lot) of files. Their size isn't really big, it's almost just text files. The problem is I have several tens of thousands of them...
So, I have a USB stick (with ample capacity), formatted in FAT32. I can move about 21,500 files, and then I get an error. The only solution I found was to create different folders at the root, but that's not very practical for using these files.
I have already tried to search on good old Google, but it keeps redirecting me to results about the maximum file size, not their number.
Thanks in advance!
4 réponses
quentin2121
Posted messages
9063
Registration date
Status
Membre
Last intervention
Ambassadeur
1 311
Hello,
What is the error message after the file limit on this USB stick?
--
“Seize your chance, hold your happiness, and go towards your risk. By looking at you, they will get used to it.” René Char
What is the error message after the file limit on this USB stick?
--
“Seize your chance, hold your happiness, and go towards your risk. By looking at you, they will get used to it.” René Char
Hello
here is what I found:
--
If my answer helped you, click the Thank you button.
Mark as resolved if your issue is fixed.
here is what I found:
For FAT32: the maximum number of files in a directory is 65,534 (using long file names can significantly reduce the number of files and subdirectories available in a folder.)
--
If my answer helped you, click the Thank you button.
Mark as resolved if your issue is fixed.
Hello, it's simple, you cannot copy more than 65,534 files into a directory if that's what you're trying to do. And the longer the filenames are, the lower the limit (originally 65,534) will be... The solution: back up the files to a disk and then convert the drive to NTFS, and you can then copy the files back to the drive, allowing you to organize the files as you wish without any restrictions.
Hello,
First of all, thank you for your responses!
I had written a message but it got lost during sending...
In fact, the file names are indeed about 10 characters on average.
The solution after all is to automatically create files (named 1, 2, 3, etc.), since the files will have to be sent to another storage anyway and that storage cannot be formatted.
Thank you for your help :)
First of all, thank you for your responses!
I had written a message but it got lost during sending...
In fact, the file names are indeed about 10 characters on average.
The solution after all is to automatically create files (named 1, 2, 3, etc.), since the files will have to be sent to another storage anyway and that storage cannot be formatted.
Thank you for your help :)
In fact, these files are intended for a server, and I cannot modify the formatting of the server's disks. Therefore, the files cannot be stored in the same directory anyway.
The solution I have opted for (if it can help others by the way):
Create folders with an incremented name (1, 2, 3, 4, 5, etc.) that contain about 5000 files each,
Then move these folders one by one (to avoid a halt in the middle of the download if I need to remove my USB drive),
Finally, connect my USB drive to the server so that it can retrieve all the folders present on the drive overnight, so that I can retrieve the empty drive in the morning.
The server will also, during the copy, register each file name in a database (it has not yet been decided in which format, either in a .txt file named after the folder with one line per file name present in the folder, or in a MySQL type database), so that when the user searches for a file, the server can know which folder it is in.
The solution I have opted for (if it can help others by the way):
Create folders with an incremented name (1, 2, 3, 4, 5, etc.) that contain about 5000 files each,
Then move these folders one by one (to avoid a halt in the middle of the download if I need to remove my USB drive),
Finally, connect my USB drive to the server so that it can retrieve all the folders present on the drive overnight, so that I can retrieve the empty drive in the morning.
The server will also, during the copy, register each file name in a database (it has not yet been decided in which format, either in a .txt file named after the folder with one line per file name present in the folder, or in a MySQL type database), so that when the user searches for a file, the server can know which folder it is in.