Score:1

EFI partition name: uppercase or lowercase?

us flag

I'm trying to install Kubuntu 22.04 and I'm having problems with the EFI partition not being found. Is the correct name for that partition uppercase (EFI) or lowercase (efi)? Or does it not matter?

Update 1: The machine is an HP Pavilion Desktop with an extra hard drive. I'm trying to install Kubuntu 22.04 on the second drive. I created a new GPT partition table on that drive. I've already installed the Kubuntu system on one partition there, but I can't boot into it because of the lack of an EFI partition.

Update 2: I'm asking this question because grub-install fails with a complaint that it can't find the EFI directory. The (second) drive contains what should be a perfectly usable EFI partition: 5GB formatted as fat32 which contains an EFI directory.

Update 3:My question embodied an underlying confusion on my part. There's the mount name and separately from that the partition label. The mount name would be either /boot/efi or /boot/EFI. The partition label would be eitherefi or EFI.

ChanganAuto avatar
us flag
The obvious question is does the partition exist or not? If it does and you're trying to dual-boot with Windows already installed make sure you disable its Fast Startup feature and shutdown before booting the Ubuntu installer. If it doesn't and you want to manually create it then use "something else", press "+" and select size and partition type as "efi".
us flag
See Update 1 for details.
ChanganAuto avatar
us flag
OK, the ESP (EFI System Partition) is only needed if installing (and booting, obviously) in UEFI mode. So how come you *can't boot into it because of the lack of an EFI partition*? Was it installed in UEFI mode and now the ESP is missing? You can easily check the drive status and all partitions from the live session using KDE Partition Manager or similar. Or did you installed it in Legacy/CSM"BIOS" mode and then changed the firmware setting to UEFI only? THAT would surely explain why it doesn't boot.
ChanganAuto avatar
us flag
This ^^^ is the clarification needed for your question. Asking about capitalization in this context is nonsensical and an X-Y problem of which I'm sure you're familiar with the meaning. In a nutshell, so far you aren't asking about your actual problem but about something you think is conducive to a solution (it isn't) without a proper understanding of the issue. As usual you can use Boot Repair - https://help.ubuntu.com/community/Boot-Repair#A2nd_option_:_install_Boot-Repair_in_Ubuntu - and post the summary URL here
oldfred avatar
cn flag
Can you boot from HP's UEFI boot menu. Same place you used to boot live installer. HP does not seem to recognize UEFI boot changes with efibootmgr which grub also uses to install & update UEFI settings. All other vendors seem to work Most with HP say they have to go into UEFI settings & change boot order in boot tab. HP - escape + F9 for UEFI boot menu, F10 for UEFI/bios settings Do you have Optane, that always seems to be another HP issue.
us flag
Please see Update 2.
us flag
I'll admit to some confusion about the EFI directory versus the EFI partition. I've tried to have it both ways by providing an acceptable partition labelled EFI and including an EFI directory within it.
us flag
What I'm trying to accomplish should have been pretty straightforward. I want to install Kubuntu 22.04 on the second hard drive and boot into it, essentially ignoring the first hard drive. The installation failure I got was an ugly surprise. ################################################# I'll mention another problem I encountered: the installation simply froze after the initial prompt. I solved that with acpi=off. The need for that is probably an artifact of the way HP sets up the Pavilion.
us flag
Note: it is possible to convert a Linux install between booting with EFI and booting the DOS/MBR way by installing the appropriate grub package and running through its install script, though you have to know what you're doing and mistakes can lock you out requiring a live USB - if you don't know what you're doing a reinstall can be easier. Another tip is that as you've no doubt discovered a lot of computers have "quirks" when it comes to the way they implement EFI boot which will affect your ability for a new OS install to "just work". Google your laptop and "efi boot linux"
oldfred avatar
cn flag
You cannot easily use any ESP other than one one first drive. Whatever system sees as first drive. Ubuntu's Ubiquity only uses first drive, see this very old bug, not fixed. It also has multiple work arounds. https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379 In bug report & probably easiest for most: Remove esp flag from Windows before install to second or external drive - Tim Richardson https://askubuntu.com/questions/16988/how-do-i-install-ubuntu-to-a-usb-key-without-using-startup-disk-creator &
us flag
Please see Updat 3.
Score:1
us flag

The important thing for the EFI system parition is that it's flagged as such when creating the partition, by a partitioning tool that is aware of EFI system partitions. The details of how this is done under the hood, I believe, is that on GPT partitioning schemes it's given a particular GUID and on MBT schemes it's given a particular partition type.

Filesystem should also be FAT32 and it should be big enough (I think most recommend 512MB now which is more than plenty).

The filesystem label is a feature of the filesystem, not the partition table, and doesn't matter what it is. A typical label would be "EFI system partition".

In Linux it should be mounted at /boot/efi for various tools to work with it like grub.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.