Re: [OT] files/dir on windoze
- Posted by Pete <pete_stoner at btconnect.com> Jul 12, 2004
- 586 views
Juergen Luethje wrote: > > Elliott Sales de Andrade wrote: > > >> From: Juergen Luethje > >> Date: Sun, 11 Jul 2004 20:41:31 +0200 > >> > >>> Does this happen with all versions of Windows, or just some? > >> > >> Kat wrote she was using Win 95B, I was using Win 98 (partition with > >> FAT 32, 7.58 GB total, 5.14 GB free, 4096 bytes per cluster). Elliot, > >> on what Windows version did you run your test? > >> > > > > Windows XP Pro, but still FAT32, not NTFS. This obviously seems to be the > > problem. > > Two of my programs split Unix mailbox files into separate e-mail files. > All e-mail files that originate from the same mailbox file are written > to one directory. > > One user wrote, that he has got mailbox files with a size up to about > 100 MB, containing about 28,000 messages. My programs build the file > names after the subject of the respective mail. He didn't report a > problem (maybe he uses NTFS), but I'm just calculating: > > - If any file name has 8+3 (+ the dot = 12) characters, they will occupy > 28000 * (1 + ceil(12/13)) = 28000*2 = 56000 entries in the regarding > directory. This is OK. > - If any file name has say 14 characters, all file names would occupy > 28000*3 = 84000 entries. This is not possible on a FAT system, as we > know now. > I found this on the web which explains some of the file limitations NTFS Size Limits Maximum file size Theory: 16 exabytes minus 1 KB (264 bytes minus 1 KB) Implementation: 16 terabytes minus 64 KB (244 bytes minus 64 KB) Maximum volume size Theory: 264 clusters minus 1 cluster Implementation: 256 terabytes minus 64 KB ( 232 clusters minus 1 cluster) Files per volume 4,294,967,295 (232 minus 1 file) Maximum Sizes on FAT32 Volumes A FAT32 volume must have a minimum of 65,527 clusters. Windows XP Professional can format FAT32 volumes up to 32 GB, but it can mount larger FAT32 volumes created by other operating systems. FAT32 Size Limits Maximum file size 4 GB minus 1 byte (232 bytes minus 1 byte) Maximum volume size 32 GB (implementation) Files per volume 4,177,920 Maximum number of files and subfolders within a single folder 65,534 (The use of long file names can significantly reduce the number of available files and subfolders within a folder.) Maximum Sizes on FAT16 Volumes FAT16 supports a maximum of 65,524 clusters per volume. FAT16 Size Limits Maximum file size 4 GB minus 1 byte (232 bytes minus 1 byte) Maximum volume size 4 GB Files per volume Approximately 65,536 (216 files) Maximum number of files and folders within the root folder 512 ( Long file names can reduce the number of available files and folders in the root folder.) regards Pete.