Stuck after grub /boot/initramfs-5.4-x86_64.img not found

Afer selecting manjaro in the grub loader it shows the following error

If i press any key my mouse and keyboard shutdown. I did a system update yesterday but didn’t get any error message. I appreciate any help.

Your update was probably interrupted. You’ll have to boot from the install medium in live mode and complete the update from there in a chroot.

When booted up from the live medium, open up a terminal window and issue the following commands… :arrow_down:

sudo su -
manjaro-chroot -a
pacman-mirrors -f 5 && pacman -Syyu

Let it finish doing its thing, and then reboot the machine.

1 Like

Can you boot with the Manjaro USB stick and show content of /boot ?

Is another OS installed?

I have windows 10 installed on a second hd and i am currently creating a manjaro usb stick

[manjaro@manjaro ~]$ sudo su -
[manjaro ~]# 
[manjaro ~]# manjaro/chroot /a
-bash: manjaro/chroot: No such file or directory
[manjaro ~]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your
==> Detected systems:
 --> 0) ManjaroLinux
 --> 1) Windows
==> Select system to mount [0-1] : 
==> Mounting (ManjaroLinux) [/dev/sda1]
 --> mount: [/mnt]
[manjaro /]# pacman/mirrors -f 5 && pacman -Syyu
bash: pacman/mirrors: No such file or directory
[manjaro /]# pacman-mirrors -f 5 && pacman -Syyu
::INFO Downloading mirrors from
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.116 Germany        :
  0.137 Germany        :
  0.086 Germany        :
  0.153 Germany        :
  0.112 Germany        :
  0.138 Germany        :
  0.161 Germany        :
  0.409 Germany        :
::INFO Writing mirror list
::Germany         :$repo/$arch
::Germany         :$repo/$arch
::Germany         :$repo/$arch
::Germany         :$repo/$arch
::Germany         :$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to synchronize all databases
[manjaro /]# 

That is the result. I had some typos i noticed to late(not used to the qwerty layout). But i left them in, incase they messed something up.

The content of boot on my manjaro ssd

You have to delete /var/lib/pacman/db.lck. That file will exist because you interrupted the update process.

rm /var/lib/pacman/db.lck

Just found that on the wiki as well. Followed the instructions after that and now it boots again. Thanks for the help.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.