View previous topic :: View next topic |
Author |
Message |
sdz n00b
Joined: 26 Sep 2011 Posts: 38
|
Posted: Mon Aug 05, 2024 10:52 pm Post subject: [SOLVED] Gentoo Won't Boot - Stuck at GRUB Prompt |
|
|
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 |
|
|
elover Apprentice
Joined: 20 Nov 2019 Posts: 170 Location: Spain
|
Posted: Tue Aug 06, 2024 12:17 pm Post subject: |
|
|
Do you have installkernel with the dracut flag, grub installed?
When you do a make install everything is generated |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Tue Aug 06, 2024 12:29 pm Post subject: |
|
|
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 |
|
|
sdz n00b
Joined: 26 Sep 2011 Posts: 38
|
Posted: Tue Aug 06, 2024 5:08 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Tue Aug 06, 2024 6:01 pm Post subject: |
|
|
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 ...
Great it works now - Have fun with Gentoo ! _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
|