Linux is not booting & going into Grub> prompt. How do i reinstall linux kernel?

Rango80s

New Member
Joined
Jun 21, 2023
Messages
4
Reaction score
1
Credits
53
Hi guys. My Fedora 38 is not booting and going into Grub> prompt. This happened after i tried to make timeshift work with btrfs files system. I think i tried unmount and it failed.

I also deleted some POPos partition completely. After that it didn't boot. Not sure which step caused this freak out. Window 11 is also not booting. Debian 12 last system installed is booting.

I'm using reFind boot manger for triple boot. Grub files are missing from boot folder in Fedora 38 but are present in Debian 12 boot folder which makes me think grub is missing form fedora 38 install?

I performed following troubeshooting steps and posting screenshots as results.

AT fedora38 grub menu

I'm at grub>ls

grub> ls (hd0,gpt4) is where fedora /home and /root directory is at. When i do

grub> ls (hd0,gpt4)/root/boot/

boot directory is empty

This is triple boot maching where boot manager is reFind boot manager. My windows boot is also gone labled windowx-lite. I can however boot into debian12 system which was installed last.

Debian12 boot directory has files in it, so i'm assuming either grub config is gone or entire boot is gone from fedora or is manged somewhere else in reFind directory.

When i boot into debian12 and mount /dev/nvme0n1p4 is where root and home folders are for fedora38 os is installed. I'm including screenshots.

I would greatly appriciate help in resolving this issue. Also how do i got the windows 11 to boot up as well. Win11 i can reinstall at worst case. Big thanks in advance for help.

grub>

52990241615_626d2dac8d_h.jpg


lsblk -f

52990020799_36d587e0ea_o.png


blkid

52989882171_f68e090ade_h.jpg


fdisk -l

52989882176_859f18e692_o.png
 


Can i just add fedora 38 OS into Debian 12 grub boot menu.

Windows 11 is booting from debian 12 grub menu but there is no Fedora OS entry in grub of debian 12.

I have prober-os installed on debian system to detect other OS. Whatever method is easier to get Fedora to boot up.

Is there a way to add fedora OS into debian 12 grub boot so i can just choose boot into fedora? It would makes things easier if i can just choose fedora from debian grub boot menu?

I can do basic things in linux but some of this stuff is way over my head.

Also as side note, I was also able to interupt debian grub by hitting C at debian 12 grub to take a look at config file and do set and take a look at entries there. Fedora entries are different but i'm not familiar with how to set all those parameters. I can post both of those configs if that would help. Debian 12 is booting into OS. Fedora 38 is not. Windows 11 is booting from debian12 grub menu but Fedora 38 is missing from deb12 grub boot menu. All those OS are also listed in refind boot manager from which only debian12 is boot up.
 
Last edited:
have you run the command update-grub in a terminal either with sudo if you have that set up or after using su to get to root? probably the easiest would be to try

sudo update-grub
and see if fedora is mentioned in the output after the command runs.
 
Thank you for help. I just did that on debian12 and it finds debian and windows11 but not fedora.
 
grub> ls (hd0,gpt4)/root/boot/

boot directory is empty
i believe update-grub looks for kernels to add to the configuration file. i had forgotten that you said /boot is empty. i don't have a fedora 38 virtual machine to check, but on most distributions that use grub kernels are kept in /boot. if that directory is entirely empty, that would probably be why the update didn't work. it sounds like overall you may be missing more than just the grub configuration info for fedora unfortunately.
 
That makes sense, grub is there hence it boots to grub> and not into grub rescue> and i see it also in (hd0, gpt1)/efi under that directory, there is fedora folder, debian folder as well and it looks like grub is on that partition. Grab looks for that linux kernel under that directory (hd0,gpt4)/root/boot/ and craps out since fedora kernel is not present there to boot Fedora into OS.
Makes total sense.

So how do i reinstall linux kernel into that fedora directory (hd0,gpt4)/root/boot/ ,either manually or threw live fedora cd into that partition.

All those OS are in their own partitions so i'm not sure how this happened. I didn't run any commands to remove or even reinstall kernel.
 
Last edited:
Hi guys. My Fedora 38 is not booting and going into Grub> prompt. This happened after i tried to make timeshift work with btrfs files system. I think i tried unmount and it failed.

I also deleted some POPos partition completely. After that it didn't boot. Not sure which step caused this freak out. Window 11 is also not booting. Debian 12 last system installed is booting.

I'm using reFind boot manger for triple boot. Grub files are missing from boot folder in Fedora 38 but are present in Debian 12 boot folder which makes me think grub is missing form fedora 38 install?

I performed following troubeshooting steps and posting screenshots as results.

AT fedora38 grub menu

I'm at grub>ls

grub> ls (hd0,gpt4) is where fedora /home and /root directory is at. When i do

grub> ls (hd0,gpt4)/root/boot/

boot directory is empty

This is triple boot maching where boot manager is reFind boot manager. My windows boot is also gone labled windowx-lite. I can however boot into debian12 system which was installed last.

Debian12 boot directory has files in it, so i'm assuming either grub config is gone or entire boot is gone from fedora or is manged somewhere else in reFind directory.

When i boot into debian12 and mount /dev/nvme0n1p4 is where root and home folders are for fedora38 os is installed. I'm including screenshots.

I would greatly appriciate help in resolving this issue. Also how do i got the windows 11 to boot up as well. Win11 i can reinstall at worst case. Big thanks in advance for help.

grub>

52990241615_626d2dac8d_h.jpg


lsblk -f

52990020799_36d587e0ea_o.png


blkid

52989882171_f68e090ade_h.jpg


fdisk -l

52989882176_859f18e692_o.png
Honestly, I've never been successful in grub rescue. It's usually a corrupted ssd. I've always had to wipe and reformat and boot up an ISO. Hopefully you back eveything up. Good luck.
 

Staff online

Members online


Top