3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

FAT32の最大容量は4GBじゃない

Posted at

A. 4GB-1 バイトです

なぜか4GBのファイルが入らなかったから不思議に思いました。
wikipediaには書いてあります

FAT12 FAT16 FAT32 exFAT
最大ファイルサイズ 32MiB 2GiB
4GiB (NT)
4GiB - 1 byte 16EiB
クラスタサイズ 512byte 〜 32KiB 512byte 〜 32KiB(NT系では64KiB、セクタサイズが512バイトより大きい場合は 256KiB) 512byte 〜 32KiB(NT系では64KiB、セクタサイズが512バイトより大きい場合は 256KiB) 512byte 〜 32MiB
最大ファイル数 4,077 65,517 268,435,437 ディレクトリ毎に 2,796,202
最大ボリュームサイズ 32MiB 2GiB
4GiB (NT)
2TiB
8TiB(2KiBセクタ)
TBU
最大ファイル名長 8.3形式、または255文字 8.3形式、または255文字 8.3形式、または255文字 255文字

検証

dd of=zero if=/dev/zero bs=4294967296

4294967295バイトまでしか入りません。

dd: error writing 'zero': File too large
0+3 records in
0+2 records out
4294967295 bytes (4.3 GB, 4.0 GiB) copied, 36.0136 s, 119 MB/s
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?