Emergency Mode "Failed to mount /efi" during boot (systemd-boot + Btrfs + NVMe)

Maybe your EFI partition has the wrong flags?

How do I check and fix?

You can see the flags with sudo parted -l. You should see boot, esp

Yup, there it is without boot and esp

~
❯ sudo parted -l
[sudo] password for neo: 
Model: ATA ST1000LM035-1RK1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      2097kB  317MB   315MB   fat32              boot, esp
 2      317MB   1000GB  1000GB               root


Model: WD Blue SN570 250GB (nvme)
Disk /dev/nvme0n1: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  106MB   105MB   fat32        EFI system partition          boot, esp, no_automount
 2      106MB   123MB   16.8MB               Microsoft reserved partition  msftres, no_automount
 3      123MB   55.6GB  55.5GB  ntfs         Basic data partition          msftdata
 5      55.6GB  56.7GB  1074MB  fat32                                      bls_boot
 4      56.7GB  250GB   193GB   btrfs

what should be done?

Use parted to set the boot flag.

Instructions are here:

I am a bit afraid to touch that now when things are working. Can I leave it as it is or is there any risk?

As long as everything is working, you can leave it.

Just pay attention to your updates. Make sure you aren’t getting errors when systemd updates.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.