Boot issue after firmware upgrade

I have a problem after updating my firmware. So it’s no Manjaro issue. I don’t get the device booting properly. After BIOS update I have access to the UEFI firmware and as expected boot entries have been lost. I tried to boot into a Manjaro USB key and ended up in grub_rescue :scream:. Then I tried an Arch ISO key with success. Now I’m at root@Archiso# :zany_face:. I guess I should just chroot into Manjaro and restore the bootloader, it would be great if someone could assists me to avoid that I fully bork my system :sweat_smile:

/dev/nvme0n1p1 is my ESP
/dev/nvme0n1p2 is my Manjaro partition

Could this be OK?

# mount /dev/nvme0n1p2 /mnt
# mount /dev/nvme0n1p1 /mnt/boot/efi
# mount -t proc proc /mnt/proc
# mount -t sysfs sys /mnt/sys
# mount -o bind /dev /mnt/dev
# mount -t devpts /dev/pts /mnt/dev/pts/
# mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
# chroot /mnt /bin/bash
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
# umount /mnt/dev/pts
# umount /mnt/dev
# umount /mnt/sys
# umount /mnt/proc
# umount /mnt/boot/efi
# umount /mnt
# poweroff

It looks okay to me, but you may not be able to manually unmount the virtual filesystems, nor do you need to power off at the end. I would simply recommend a clean reboot after exiting the chroot. At least then you’ll know whether it worked.

Also, you have not mentioned whether your root filesystem is btrfs or ext4. This could be important, depending on when you installed the system.

1 Like

You are on ext4 right?
Otherwise, it seems correct to me but i have only mounted with the manjaro automated chroot so far. I wonder if sys, proc and dev are really needed in that case or you can only do with the root an efi.

1 Like

It’s ext4, thanks for your advice my friend!

2 Likes

You might be right, as long they don’t hurt… :grin:

I’ll try:

# mount /dev/nvme0n1p2 /mnt
# mount /dev/nvme0n1p1 /mnt/boot/efi
# mount -t proc proc /mnt/proc
# mount -t sysfs sys /mnt/sys
# mount -o bind /dev /mnt/dev
# mount -t devpts /dev/pts /mnt/dev/pts/
# mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
# chroot /mnt /bin/bash
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
# reboot

:crossed_fingers:

I hope I find the right keys on the US keyboard setting :face_with_monocle:

1 Like

In that case, a simple… :backhand_index_pointing_down:

manjaro-chroot -a

… will mount everything for you. :wink:

Edit: Oops, I missed that you’re in an Arch ISO now. But I believe they have an arch-chroot command, which should do the same thing.


The Plasma live session should allow you to select a German keyboard via the System Settings. :wink:

Except the he seems to have some bad iso. Not that a new iso cannot be redownloaded from the live system but the manual method will also work.

As my laptop was new there was a bios update about once a month so i have done it so often that at the end i made a text file in my home with the commands ready to copy paste

su - (manjaro manjaro)
manjaro-chroot -a
root # grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck
root # grub-mkconfig -o /boot/grub/grub.cfg
2 Likes

… but not from a Arch ISO boot :sweat_smile:

I just booted the Arch key into console…

1 Like

I’ve amended my post above… :backhand_index_pointing_down:

Thank you both for your assistance, my Manjaro booted again :two_hearts:

2 Likes

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