Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Gentoo Won't Boot - Stuck at GRUB Prompt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
sdz
n00b
n00b


Joined: 26 Sep 2011
Posts: 38

PostPosted: Mon Aug 05, 2024 10:52 pm    Post subject: [SOLVED] Gentoo Won't Boot - Stuck at GRUB Prompt Reply with quote

I moved my Gentoo install from SSD to NVME using dd. Gentoo did not boot, so I cleaned /boot and /efi to reinstall the kernel and grub.

Now my computer boots only to a grub prompt.

These are the steps I have followed from a System Rescue USB stick. Assume all commands complete successfully without error.

Code:
mkdir /mnt/gentoo
mount /dev/nvme1n1p3 /mnt/gentoo
mount /dev/nvme1n1p1 /mnt/gentoo/efi
mount /dev/nvme1n1p4 /mnt/gentoo/boot

mount -t proc /proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /run /mnt/gentoo/run
mount --rbind /dev /mnt/gentoo/dev

chroot /mnt/gentoo /bin/bash
rm -rf /efi/*
rm -rf /boot/*

cd /usr/src/linux
make install
make modules_install

grub-install --efi-directory=/efi
grub-mkconfig -o /boot/grub/grub.conf
exit

shutdown -r 0


What am I doing wrong?


Last edited by sdz on Tue Aug 06, 2024 5:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
elover
Apprentice
Apprentice


Joined: 20 Nov 2019
Posts: 170
Location: Spain

PostPosted: Tue Aug 06, 2024 12:17 pm    Post subject: Reply with quote

Do you have installkernel with the dracut flag, grub installed?

When you do a make install everything is generated
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Tue Aug 06, 2024 12:29 pm    Post subject: Reply with quote

sdz,

Your approach was correct; something must have gone wrong. Please boot again with your System Rescue USB stick (and chroot again into your Gentoo system) and give us the output of:
- lsblk
- blkid
- fdisk -l (or "parted -l")
- efibootmgr
- ls -l /boot
- ls /lR /efi
- and the content of /boot/grub/grub.cfg
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
sdz
n00b
n00b


Joined: 26 Sep 2011
Posts: 38

PostPosted: Tue Aug 06, 2024 5:08 pm    Post subject: Reply with quote

I followed the steps again slowly, verifying against the Gentoo Handbook. I finally realized my error... the tiny typo. Arg!! ::facepalm::

Incorrect:
Code:
#Incorrect
grub-mkconfig -o /boot/grub/grub.conf

#Correct:
grub-mkconfig -o /boot/grub/grub.cfg


With the correct filename, grub works as expected, and so does my installation.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5104
Location: Bavaria

PostPosted: Tue Aug 06, 2024 6:01 pm    Post subject: Reply with quote

sdz wrote:
I followed the steps again slowly, verifying against the Gentoo Handbook. I finally realized my error... the tiny typo. Arg!! ::facepalm::
[...]
With the correct filename, grub works as expected, and so does my installation.

I didnt have seen it also although you had written .conf in your first post ... :oops:

Great it works now - Have fun with Gentoo ! :D
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum