The correspondence between the file system type and the OS and the restrictions are organized.
The file system is one of the functions provided by the OS, and is a function required for managing and operating data stored in storage devices such as HDDs and USB memory. FAT32, exFAT, NTFS, etc. can be specified when formatting, but the supported formats differ depending on the OS.
For example, FAT32 is compatible with many operating systems such as Windows, Mac, Linux, and raspbian, so if you use a storage device formatted with FAT32, you can transfer data between personal computers. However, note that there are restrictions on the size limit of one file and the number of files that can be stored in one folder for each file system.
The sites referred to in the survey of this article are listed in the related links at the bottom of the page.
I investigated FAT32, exFAT, NTFS, and ext4, which I often use personally.
RW: Read / write RO: Read only ×: Not supported
File system | Windows | Mac | Linux | Volume size | Maximum size of 1 file | Maximum number of files in one directory |
---|---|---|---|---|---|---|
FAT32 | RW | RW | RW | 2TiB * 32GiB on Windows |
4GiB | 65,535(※1) |
exFAT | RW | RW | × | 64ZiB | 16EiB | 2,796,202 |
NTFS | RW | × | × | 16EiB | 16EiB | 4,294,967,295 |
ext4 | × | × | RW | 1EiB | 16TiB | i-nodedependent upon |
File name format | Root directory | Subdirectory | File name Remarks |
---|---|---|---|
8.3 formats | 65,535 | 65,534 | Up to 12 characters for uppercase letters and symbols only |
13 characters | 65,535÷3→21,845 | 65,534÷3→21,844 | 小文字や数字含む13 charactersの例 |
25 characters | 65,535÷4→16,383 | 65,534÷4→16,383 | 小文字や数字含む25 charactersの例 |
When I tried to handle "2017 Test images [41K/6GB]" of COCO dataset on RaspberryPi, when I tried to copy to a USB memory formatted with FAT32, the following error occurred and the restrictions of FAT32 This survey was conducted because it was found that the number of files in one directory was exceeded.
I hope it will be helpful for those who have encountered similar problems.
Windows copy error (unexpected error, 0x80070052)
WSL file copy error ("cannot create regular file")
Recommended Posts