Error when trying to repair the grub

Hello,

I try to update my computer that was on kernel 5.2 and it seems to remove the kernel and download the kernel 5.5 but for some reason the grub was stuck on 5.2 so when it boot I get the error that the kernel 5.2 was not found.
I try to repair the grub following the wiki instruction but no more luck I got the update-grub stuck with this error:
grub-probe:error:cannot find a GRUB drive for /dev/sdb1

/dev/sdb1 is my liveUSB partition
Now when I try to boot I have nothing at all no grub, no message :frowning:

Not sure where to look now.

can you boot on your USB manjaro ( not your disk )
open a terminal and a browser on this topic
and returns

inxi -Fxxxza
parted -l
efibootmgr

And please add lsblk to @stephane 's list... That will give us all the information we need.

thank for the help

inxi -Fxxxza

it is not present on manjaro architect, I'll need to download maybe the xfce iso.

parted -l

I got nothing :confused:

efibootmgr

efi is not supported on this system

I forget to do lsblk, so I'll do it tomorrow.

I change my screen and now I notice this when booting:

grub>

At that grub> prompt,

use this first post to boot into your install OS.

If you are unable to boot, check if you have any kernels as listed in the command

grub> ls ($root)/boot/

If you have no kernel listed, you may have a more serious problem that happened during the update.
Let us know, someone else may have to help you (linux-aarhus).

and add sudo before parted --list, please (we all tend to forget to include that)

and add sudobeforeparted --list , please (we all tend to forget to include that)
Off-course I did not do that :stuck_out_tongue:
here the result:

Disk /dev/sda : 120GB
Sector size (logical/physical):512B/512B
Partition table : msdos
Disk Flags :
Number Start End Size Type Filesystem Flags
1 1049kB 538MB 537MB primary fat32 boot
2 538MB 120GB 119GB primary

lsblk:

fd0 2:0 1 4k 0 disk
loop0 7:0 0 52,5M 1 loop /run/miso/sfs/livefs
loop1 7:1 0 501,3M 1 loop /run/miso/sfs/roctfs

sda 8:0 0 111,8G 0 disk
|_sda1 8:1 0 512M 0 part
|_sda2 8:2 0 111,3G 0 part

sdb 8:16 1 15,2G 0 disk
|_sdb1 8:17 1 613,4M 0 part /run/miso/boot/mnt
|_sdb2 8:18 1 4M 0 part

sr0 11:0 1 1024M 0 rom

gohlip

grub> ls ($root)/boot/

I got no kernel only: efi/ grub/

Okay, that's bad. Some here have also experienced this after an update. I don't.
So you will need to chroot into the OS and reinstall some kernels.
Search some posts here, 'vmlinuz-xxxx missing after update', 'cannot boot after update', etc..
If all fail or unsure, ping @linux-aarhus for help.

Good luck.

1 Like

Here's a tutorial with explicit rescue steps:

1 Like

I try the tutorial:

pacman -S pacman

I got no error

mkinitcipo -P

No error

But I'm still stuck on grub command line and I still see no kernel :confused:

I try to reinstall the grub now I can access the grub but now I've got an error:

Error: device 'UUID=....' not found. skipping fsck
/new root: can't find UUID=...
You are now being dropped into an emergency shell
can't access tty
rootfs:

My main partition is encrypted.

Try this one:

and do an update-grub there.

If you have full-drive encryption instead of just LUKS home directory encryption you should also have a Crash-proof Backup unless @freggel.doe @gohlip have experience with full drive encryption?

I've not seen the need in my setup, so I've not had to recover it either :white_flag:

1 Like

What's the difference between manjaro-chroot and mhwd-chroot ?
I have a full drive encryption by the way.

Well I think I will just have to reinstall my system :sweat:

manjaro-chroot is newer...

:sob: to hear you have to reinstall...

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

Forum kindly sponsored by