You are not logged in.

#1 2023-08-05 16:15:18

gkun
Member
Registered: 2016-06-11
Posts: 91

[SOLVED] How to recover arch install

Good morning to everyone,  after three years of use my mainboard died (it actually caught fire because a fan cable melted on it, but that is another story) and I  needed to build a new pc.

My arch install was on uefi on a 480 gb ssd with the uefi partition, main partition and swap. The new pc will not find a boot partition. It will boot from a USB though. I tried to chroot in the pc and reinstall grub, but this did not work...

What could I do?

Last edited by gkun (2023-08-05 22:15:34)

Offline

#2 2023-08-05 16:22:27

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,096

Re: [SOLVED] How to recover arch install

Did you move over the SSD from your old system to your new system? Or did you perform a brand-new install on a new disk?

Offline

#3 2023-08-05 16:29:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,607

Re: [SOLVED] How to recover arch install

Reinstalling the bootloader should add the nvram entry. What are you seeing in the firmware's boot menu?

Offline

#4 2023-08-05 16:53:06

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install

twelveeighty wrote:

Did you move over the SSD from your old system to your new system? Or did you perform a brand-new install on a new disk?


Just moved the ssd. Too many things i installed and set up, i don't want a new install

Offline

#5 2023-08-05 16:59:31

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install

Scimmia wrote:

Reinstalling the bootloader should add the nvram entry. What are you seeing in the firmware's boot menu?


Oh the boot leader just gives me an "insert bootable media " error. I tried to install grub but had to use the no-nvram option cause it would not run with "efibootmgr failed to register the boot entry" error

Offline

#6 2023-08-05 17:08:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,607

Re: [SOLVED] How to recover arch install

Sounds like you're booting with the CSM (legacy mode, BIOS compatibility, etc). Turn that off.

Offline

#7 2023-08-05 17:15:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] How to recover arch install

gkun, if you were wondering whence your posts disappeared, I think you had meant to hit reply, not report.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2023-08-05 17:22:23

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install

Scimmia wrote:

Sounds like you're booting with the CSM (legacy mode, BIOS compatibility, etc). Turn that off.


I will try

Offline

#9 2023-08-05 17:22:58

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install

ewaller wrote:

gkun, if you were wondering whence your posts disappeared, I think you had meant to hit reply, not report.


Oh ...yeah,  that must have happened, i am using a phone and my sight is beginning to fade.  I had thought it was a login problem

Last edited by gkun (2023-08-05 17:26:39)

Offline

#10 2023-08-05 19:00:37

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install

Scimmia wrote:

Sounds like you're booting with the CSM (legacy mode, BIOS compatibility, etc). Turn that off.


I am back. I disabled cms support and the motherboard is back to "no bootable devices found" in the boot menu...

Which means my attempt to install grub over my existing install failed

Last edited by gkun (2023-08-05 19:01:24)

Offline

#11 2023-08-05 19:38:06

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install

This is now the situation,  I tried to install grub again:

root@archiso #mount /dev/sda3 mnt

root@archiso#mount /dev/sdal mnt/esp

root@archiso~# arch-chroot mnt [root@archiso /]# Is

bin dev etc lib lost+found mnt
home lib64 media proc run snap sys usr boot esp opt root sbin srv tmp

[root@archiso /]# cd esp

[root@archiso esp]# ls

EFI grub

[root@archiso esp]# efivar-tester

bash: efivar-tester: command not found

[root@archiso esp]# grub-install --target-x86_64-efi --efi-directory-/esp --boot

loader-id-arch_grub

Installing for x86_64-efi platform.

EFI variables are not supported on this systen. EFI variables are not supported on this system.

grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.

[root@archiso esp]#

Before chroot I loaded the efivarfs module, apparently to no avail

Offline

#12 2023-08-05 22:11:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,607

Re: [SOLVED] How to recover arch install

Offline

#13 2023-08-05 22:14:42

gkun
Member
Registered: 2016-06-11
Posts: 91

Re: [SOLVED] How to recover arch install


Solved! I was using an iso on a legacy boot USB to chroot and that would not possibly work. Made a new USB from an iso and everything worked. I have my old install on my new pc.

Thanks!

Offline

Board footer

Powered by FluxBB