EFIパーティション(FAT32)をフォーマットできません

EFIパーティション(FAT32)をフォーマットできません

EFIパーティションをフォーマットすると、次のエラーが発生します。

Not enough clusters for a 32 bit FAT!" 

私のディスクは4096セクタサイズを使用しています。

#mkfs.fat -v -F 32 -S 4096 /dev/sde1

mkfs.fat 4.1 (2017-01-24)
WARNING: Not enough clusters for a 32 bit FAT!
/dev/sde1 has 255 heads and 63 sectors per track,
hidden sectors 0x4000;
logical sector size is 4096,
using 0xf8 media descriptor, with 67584 sectors;
drive number 0x80;
filesystem has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 16 sectors, and provides 8440 clusters.
There are 32 reserved sectors.
Volume ID is 05deb9f7, no volume label.

私のディスクパーティション:

gdisk -l /dev/sde
GPT fdisk (gdisk) version 1.0.1

Partition table scan:
   MBR: protective
   BSD: not present
   APM: not present
   GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sde: 244190646 sectors, 931.5 GiB
Logical sector size: 4096 bytes
Disk identifier (GUID): D0BA102E-86C5-4379-B314-9534F873C377
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 244190640
Partitions will be aligned on 256-sector boundaries
Total free space is 244123051 sectors (931.3 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048           69631   264.0 MiB   0700  EFI_FAT32

fsckファイル以下を考慮すると:

#fsck.fat -v /dev/sde1
fsck.fat 4.1 (2017-01-24)
Checking we can access the last sector of the filesystem
Warning: Filesystem is FAT32 according to fat_length and fat32_length fields,
  but has only 8440 clusters, less than the required minimum of 65525.
  This may lead to problems on some systems.
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
      4096 bytes per logical sector
     32768 bytes per cluster
        32 reserved sectors
First FAT starts at byte 131072 (sector 32)
         2 FATs, 32 bit entries
     65536 bytes per FAT (= 16 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 262144 (sector 64)
      8440 data clusters (276561920 bytes)
63 sectors/track, 255 heads
     16384 hidden sectors
     67584 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sde1: 1 files, 1/8440 clusters

ベストアンサー1

FAT32ファイルシステムの最小サイズには65525以上のクラスタを含める必要があります*。クラスタサイズはセクタサイズの倍数です。あなたの例では、セクターサイズは4096です。mkfs.vfatクラスタあたりのセクタ数は、デフォルトの倍数である8を使用します。-s 1クラスタごとのセクタを指定するために使用されます。

mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sde1

その結果、クラスターサイズは4096になります。これは、264MiBパーティションに少なくとも65525個のクラスターを収容できるほど小さくなければなりません。


* WindowsドキュメントからUEFI/GPTベースのハードディスクパーティション:

高度なフォーマット4Kプライマリドライブ(セクタあたり4KB)ドライブの場合、FAT32ファイル形式の制限により、最小サイズは260MBです。 FAT32ドライブの最小パーティションサイズは、セクタサイズ(4KB)×65527 = 256MBと計算されます。

Advanced Format 512eドライブは、エミュレートされたセクタサイズが512バイトであるため、この制限の影響を受けません。 512バイトx 65527 = 32MB

おすすめ記事