You are not logged in.

#1 2022-07-24 21:06:47

userak
Member
Registered: 2017-02-04
Posts: 42

[solved] Arch boot error : file missing

I was trying to update my arch installation which failed and now I can't boot into it.

I have a dual boot arch installation with windows. Arch installation is encrypted with dm-crypt and luks.

After entering the grub unlock password, ai am getting the following error..

loading initial ramdisk...
error: file '/initramfs-linux.img' not found...

Last edited by userak (2022-07-27 06:48:08)


A newbie archlinux user ...

Offline

#2 2022-07-24 22:48:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [solved] Arch boot error : file missing

How did the update fail?

You really needed to finish the update before rebooting. It sounds like the post transactions hooks didn't run. You'll need to boot an install disk, mount everything, chroot in, and regenerate the initramfs (or just reinstall the kernel).

After that, you really need to reinstall everything that was part of the failed update.

Last edited by Scimmia (2022-07-24 22:49:14)

Offline

#3 2022-07-25 05:21:09

userak
Member
Registered: 2017-02-04
Posts: 42

Re: [solved] Arch boot error : file missing

Update failed because of some package signature issue.

I tried booting fallback-initramfs-linux.img still getting the same error. Can you confirm if the path it is searching in for 'initramfs-linux.img' file is correct? It is searching it in the "/" root directory and not the "/boot" directory.

Last edited by userak (2022-07-25 05:25:18)


A newbie archlinux user ...

Offline

#4 2022-07-25 06:22:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,534

Re: [solved] Arch boot error : file missing

It is searching the root directory of the boot partition.

Scimmia wrote:

You'll need to boot an install disk, mount everything, chroot in, and regenerate the initramfs (or just reinstall the kernel).

After that, you really need to reinstall everything that was part of the failed update.

Though

Update failed because of some package signature issue.

, while vague enough, should™ probably have been idempotent (ie. no update was executed at all)
=> You want to inspect the pacman log to see what actually went wrong.

Offline

#5 2022-07-27 06:47:43

userak
Member
Registered: 2017-02-04
Posts: 42

Re: [solved] Arch boot error : file missing

I have finally solved the issue, thanks you guys for the help.

This is what I did..
1. Booted system using a live archlinux usb drive.

2. Decrypted encrypted (dmcrypt + luks) root and boot partitions.

 cryptsetup open /dev/sda6 root
 crypsetup open /dev/sda5 boot 

3. Mounted decrypted mapped "root" partition to the "/mnt", mounted decrypted boot partition to "/mnt/boot".

mount /dev/mapper/root /mnt
mount /dev/mapper/boot /mnt/boot 

4. Mounted ESP partition to "/mnt/boot/efi".

 mount /dev/sda1 /mnt/boot/efi 

5. Chroot into the "/mnt".

 arch-chroot /mnt 

6. Regenerated grub configuration file.

 grub-mkconfig -o /boot/grub/grub.cfg 

7. Reinstalled grub.

 grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Arch 

* once the system started booting I was getting a fatal error right before the login screen. I switched to another terminal ( ctrl + alt + F2)

* tried updating the system
[sudo pacman -Syu]

* After the updates were downloaded I was getting an error something like "key xyz could not be looked up remotely; package abc invalid or corrupted (PGP signature)".

* I tried updating the arch keyring

 sudo pacman -S archlinux-keyring 

* After the keyring was updated, I tried updating the system again, this time it was successfull.

problem solved...

Last edited by userak (2022-07-27 07:07:30)


A newbie archlinux user ...

Offline

Board footer

Powered by FluxBB