#[Solved]Deleted my efi partition, what to do now?

100 messages · Page 1 of 1 (latest)

real acorn
#

Hey, Guys
I was trying to find some clue about why my graphics card was not working so I though better install POP OS, but when I got to the installation part,
I forgot that I had the arch efi in the partition and then formated that efi partition and now there is only pop's efi I can't boot arch, What should I do?

#

Deleted my efi partition, what do now?

#

Deleted my efi partition, what to do now?

topaz root
real acorn
#
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                         
├─sda1
│    vfat   FAT32 ESP   236C-CC06                             740.6M    28% /boot/efi
├─sda2
│    swap   1           ada265ac-21ca-4516-b65c-8cbc819b49b6                
│ └─cryptswap
│    swap   1     cryptswap
│                       d68e7d7b-c4c7-45b2-9d9f-152cb7ca1fc8                [SWAP]
├─sda3
│    crypto 2     ARCH_LUKS
│                       54da6e10-61f4-494a-afb9-9a97d2cc3f9b                
└─sda4
     ext4   1.0         a64da53b-4685-40f7-bcc8-02053f5e0dd0  182.6G     6% /
zram0
                                                                            [SWAP]
nvme0n1
│                                                                           
├─nvme0n1p1
│    vfat   FAT32 SYSTEM
│                       8694-8975                                           
├─nvme0n1p2
│                                                                           
├─nvme0n1p3
│    ntfs         Windows
│                       322891282890EBDB                                    
├─nvme0n1p4
│    ntfs         Nilesh
│                       01D842CE05F8FE90                                    
└─nvme0n1p5
     ntfs         Windows RE tools
                        A0B2C926B2C901B0        
#

My roots are on separate partitions

#

just efi

topaz root
#

is sda1 your ESP?

real acorn
#

sda1 is where my efi was

topaz root
#

tree /boot/efi

real acorn
topaz root
#

There should be an arch-install-scripts package in the POP OS repo that provides arch-chroot.

topaz root
# real acorn Ok

Since you use full system encryption, I assume you mount sda1 as /boot in arch?

real acorn
#

yup

#

I just have my root encrypted

#

not the boots

topaz root
real acorn
#

Yes

topaz root
#

and mount arch rootfs in /mnt
sda1 in /mnt/boot

#

I see you have both grub and systemd-boot, which one do you use for arch?

topaz root
real acorn
# topaz root What is the current output of `efibootmgr`?
BootCurrent: 0005
Timeout: 0 seconds
BootOrder: 0005,0003,0006,0004,0000,0001,0002,0007,9999
Boot0000* Ultramarine
Boot0001* Windows Boot Manager
Boot0002* Internal Hard Disk
Boot0003* GRUB
Boot0004* Fedora
Boot0005* Pop!_OS 22.04 LTS
Boot0006* Linux Boot Manager
Boot0007* Internal Hard Disk
Boot9999* USB Drive (UEFI)

topaz root
real acorn
#

ok

#

thanks

real acorn
#

Can I do these things by going into the /EFI/ direcectory and then

1.grub-install /dev/sda --target=x86_64-efi --efi-directory=/boot

  1. efibootmgr -c -d /dev/sda -p 1 -L <ArhcLinux> -l /EFI/<pop-os>/grubx64.efi
random fractal
#

For that I will need to unmout the efi partition right?
Nope has to be mounted

topaz root
#

It also seems to me that the path should be \EFI\GRUB\grubx64.efi

#

And Pop OS uses EFISTUB

random fractal
#

PopOS?

topaz root
real acorn
topaz root
#

No unique ESP for each OS required

#

If you have grub in place, you can simply add it to the boot entries

#

Some firmware made by mediocre vendors would delete entries if there were many, hence this is a possible explanation for the disappearance of the original grub entry.

topaz root
# real acorn Here

However, it seems to me that you have mounted esp under an OS as /boot in the past, judging by the presence of the grub tree in the output of tree /boot/efi.

real acorn
topaz root
#

Do you mount it as /boot in arch?

real acorn
real acorn
topaz root
real acorn
#

Well, Could you please explain the steps, If you don't want that's okay.

topaz root
real acorn
#

Well I don't completely understand the underlying concept for the moment, I just understand this command and I found it in a guide online.

#

Do I need to run the second one only? or the whole

real acorn
topaz root
real acorn
#

I never new this tool existed

#

Looks like it's in my book marks now

real acorn
topaz root
#

Change the boot record title to whatever you like

real acorn
#

Yes, the first command had the title I myself changed, Learnd that you put <thisng to change in > angle brackets

real acorn
#

Only windows have \backwards slashes

topaz root
real acorn
#

Created new boot EFI entry, but I don't have all these OS's in my efi? What are all the others doing there?

#

the 008 One Arch Linux, I just created.

topaz root
topaz root
real acorn
#

I'm saying about all these other enteries, other that POP OS and ARCH LINUX, What are they doing there? I didn't put them there and I don't have any other OS on dev/sda

real acorn
topaz root
real acorn
#

Thanks, but I didn't get the option to choose POP

topaz root
real acorn
#

Again, Sorry

#

So, I did get the grub menu but It only had arch in it

#

It didn't had the option to choose to boot pop os

#

Is it because grub read /boot first

#

then /boot/efi?

#

[Solved]Deleted my efi partition, what to do now?

topaz root
real acorn
#

then, DO i need to manual add pop with the same command?

topaz root
real acorn
#

OHH

#

Let me check

#

Yes.. there it is

topaz root
real acorn
topaz root
real acorn
#

Well, You know I never played doom

#

But people seem to love it.

topaz root
#

And the classic version is now also open source (GPL v3).