About that part “parted -l | grep -iE “^Disk /|esp” | grep -B1 esp”
I got this from here.:
part.:
If the system is installed in UEFI
Find existing $esp partitions if more than one
As for the two commands output
**efibootmgr -v**
EFI variables are not supported on this system.
error trace:
**sudo parted -l**
Model: WD My Passport 070A (scsi)
Disk /dev/sda: 249GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 249GB 249GB primary boot
2 249GB 249GB 33.6MB primary fat16 esp
Model: ADATA SX8200PNP (nvme)
Disk /dev/nvme0n1: 512GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
2 538MB 2685MB 2147MB linux-swap(v1) swap
3 2685MB 4833MB 2147MB
4 4833MB 512GB 507GB
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: The partition's data region doesn't occupy the entire partition.
Ignore/Cancel?
odel: WD Virtual CD 070A (scsi)
Disk /dev/sr0: 700MB
Sector size (logical/physical): 2048B/2048B
Partition Table: mac
Disk Flags:
Number Start End Size File system Name Flags
1 2048B 32.8kB 30.7kB Apple
2 437MB 598MB 161MB DiscRecording 4.0.3d3
Model: CT500P2SSD8 (nvme)
Disk /dev/nvme1n1: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 17.4kB 134MB 134MB Microsoft reserved partition msftres
2 135MB 500GB 500GB ntfs Basic data partition msftdata
Model: Unknown (unknown)
Disk /dev/zram0: 33.5GB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 33.5GB 33.5GB linux-swap(v1)
Disk have created partitions, but even if I do quick format and start a new installation, it does not change anything.