You are not logged in.

#1 2023-04-02 18:18:41

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

[Solved] bootctl gives me "File system /dev/sda2 has wrong type" ??

..Bizarre problem. I'm doing the installation procedure the same way I've done it thousands of times, but now

bootctl --path=/boot install

gives me:

File system "/dev/sda2" has wrong type for an EFI System Partition (ESP)."

even though I formatted it as FAT32 earlier:

mkfs.vfat -F32 /dev/sda2

What could be the problem?

Last edited by nicehand90210 (2023-04-05 10:51:33)

Offline

#2 2023-04-02 20:12:12

mpan
Member
Registered: 2012-08-01
Posts: 1,624
Website

Re: [Solved] bootctl gives me "File system /dev/sda2 has wrong type" ??

Did you follow official guide: creating EFI system partition, exactly and in full?

Offline

#3 2023-04-03 00:13:51

ArchMark
Member
Registered: 2023-03-30
Posts: 36

Re: [Solved] bootctl gives me "File system /dev/sda2 has wrong type" ??

nicehand90210 wrote:
bootctl --path=/boot install
File system "/dev/sda2" has wrong type for an EFI System Partition (ESP)."
mkfs.vfat -F32 /dev/sda2

What could be the problem?

In my many Arch Linux installs of recent that I have  experience this error only when using the partition manager through archinstall 2.5.3-2.5.4 when creating partitions.  I found a bug that would incorrectly detect the ESP partition as a non-FAT32 when it had been formatted correctly.

I think it is buried somewhere in this message.

Offline

#4 2023-04-05 10:45:01

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

Re: [Solved] bootctl gives me "File system /dev/sda2 has wrong type" ??

mpan wrote:

Did you follow official guide: creating EFI system partition, exactly and in full?

I'm using parted, and I have tried it two ways. Historically, the installation guide said NOT to specify a file system type when creting the ESP partition:

parted /dev/sda mkpart esp 2MiB 514MiB

…I did that and ran into the error running bootctl the first time. So I re-read the installation guide, and now it seems to say you DO need to specify the file system when creating the partition (though it doesn't have a specific example for parted), so I did:

parted /dev/sda mkpart esp fat32 2MiB 514MiB

…and got the same error.

Archmark wrote:

In my many Arch Linux installs of recent that I have  experience this error only when using the partition manager through archinstall 2.5.3-2.5.4 when creating partitions.  I found a bug that would incorrectly detect the ESP partition as a non-FAT32 when it had been formatted correctly.

I'm not using archinstall so I'm guessing this doesn't apply?

Offline

#5 2023-04-05 10:51:11

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

Re: [Solved] bootctl gives me "File system /dev/sda2 has wrong type" ??

Found the problem. The guide says to set the esp flag on in the partitioning tool, which I didn't do. Instead, I'd set the boot flag on, which is historically how I've done it and how it was formerly documented in the guide.

Offline

Board footer

Powered by FluxBB