Uefi
無法格式化我的 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.fat給出以下內容:
#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
FAT32 文件系統有一個最小大小:它應該包含至少 65525 個群。群大小是扇區大小的倍數。在您的情況下,扇區大小為 4096,並且
mkfs.vfat
每個集群的扇區數使用了預設的 8 倍數。用於-s 1
為每個群指定一個扇區:mkfs.fat -v -F 32 -S 4096 -s 1 /dev/sde1
這導致集群大小為 4096,它應該足夠小以容納超過 264 MiB 分區中的最小值 65525 個集群。