![](https://seccdn.libravatar.org/avatar/77cb4da5f72bc176182dcc33f03a18f3.jpg?s=120&d=mm&r=g)
On 28/06/2020 21.59, Michael Fischer wrote:
On Sun, Jun 28, Andrei Borzenkov wrote:
28.06.2020 14:58, Michael Fischer пишет:
Hello all (and hopefully Andrei),
While reading the recent thread (... Zypper dup renders 15.1 to 15.2...) I got curious about my own system - which had a reinstall (15.0) a few months ago, which went...poorly. It took several installs and boot attempts to get the thing to come up (which is really odd because it was a reinstall of 15.0 on top of the same 15.0 on seemingly perfectly good hardware)
Now I see that perhaps my /boot/efi is not configured correctly?
Yes.
$ sudo fdisk -l /dev/nvme0n1* Disk /dev/nvme0n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: C2D48243-DA0E-456D-BD55-D3BEE176DBEC
Device Start End Sectors Size Type /dev/nvme0n1p1 2048 1026047 1024000 500M Microsoft basic data
The "type" of ESP is supposed to be "EFI System". Anything else is up to firmware implementation. Explicit firmware boot entries that point to this partition will likely work. "Boot from hard disk" in BIOS boot menu selection (exact name varies between vendors) may not be offered at all.
Also os-prober and other operating systems may fail to find ESP.
I would change type to "EFI System" just to be sure.
Thank you. I suspected as much. What are the commands I would want to use for this (these?) operations?
fdisk would do. ~# fdisk /dev/nvme0n1 Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors Disk model: Samsung SSD 970 EVO Plus 500GB Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 40891E95-... Device Start End Sectors Size Type /dev/nvme0n1p1 2048 1026047 1024000 500M Microsoft basic data /dev/nvme0n1p2 42969088 252684287 209715200 100G Linux swap /dev/nvme0n1p3 252684288 315598847 62914560 30G Linux filesystem /dev/nvme0n1p4 315598848 317702143 2103296 1G Linux filesystem /dev/nvme0n1p5 317702144 632270847 314568704 150G Linux filesystem Command (m for help): Help: GPT M enter protective/hybrid MBR Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type <===== Command (m for help): t Partition number (1-5, default 5): 1 Partition type (type L to list all types): L 1 EFI System C12A7328-F81F-11D2-BA4B-00A0C93EC93B <=== 2 MBR partition scheme 024DEE41-33E7-11D3-9D69-0008C781F39F 3 Intel Fast Flash D3BFE2DE-3DAF-11DF-BA40-E3A556D89593 ... q
/dev/nvme0n1p1: SEC_TYPE="msdos" UUID="5591-235C" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="f95c0606-ecaa-44af-8fd0-51f9980f26a9"
Seems I want that to show `LABEL="ESP"` when I'm done.
Changing the label can have consequences, if something accesses the disk by the label.
Also, that `SEC_TYPE="msdos"` probably wants to go away?
No. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)