I recently installed Windows and Arch linux on dual boot. I left 512MB of empty space for windows to create the boot partition in, but it only used 100MB. Now I need more space in the boot partition so I resized the partition using cfdisk, but as expected, that didn't resize the file system.
The EFI boot partition (/dev/sda2
) is formatted as fat32, as shown by parted.
$ sudo parted /dev/sda2
(parted) print
Model: Unknown (unknown)
Disk /dev/sda2: 512MiB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00MiB 512MiB 512MiB fat32
But when I try to use fatresize, it complains about the partition format.
$ sudo fatresize -s 512M /dev/sda2
fatresize 1.1.0 (20200405)
Error: /dev/sda2 is not valid FAT16/FAT32 partition.
So how can I resize the file system? I would rather not have to reinstall windows.
mkfs
a new FAT32 and copy files back.fstab
entries if you're mounting the partition using filesystem's ID.