Re: Stuck at grub prompt after reordering partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 21, 2024 at 12:15 PM Klaus-Peter Schrage via users
<users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Am 20.04.24 um 23:16 schrieb George N. White III:
> > I assume you can still boot with manual grub commands.
> Yes, linux ..., initrd ..., boot
> or: >configfile (hd0,1)/grub2/grub.cfg
> which immediately brings back the grub menu.

So this suggests the EFI grub.cfg is found and loaded, but it doesn't
find /boot/grub2/grub.cfg

> What I found: If I write the "real" grub.conf directly to the efi
> partition (*|grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg), then I
> boot to the grub menu as desired (I have read in the fedora wiki that I
> should refrain from this ...).

So if you can EFI grub.cfg correct, /boot/grub2/grub.cfg should be OK

> So the errors seems to be in this file
> /boot/efi/EFI/fedora/grub.cfg:
>     search --no-floppy --root-dev-only --fs-uuid --set=dev
>     206c0b5f-eddf-42e8-96f1-e666c5635cd0
>     set prefix=($dev)/grub2
>     export $prefix
>     configfile $prefix/grub.cfg

Mine is:
search --no-floppy --fs-uuid --set=dev c5f18a2c-ee16-454e-b85d-6d7f03b86532
set prefix=($dev)/grub2
export $prefix
configfile $prefix/grub.cfg

Note the difference in the "search" line.  Mine does not have the
--root-dev-only argument.  Other than that they appear to be the same
(other than the UUID of course),  Try editing that out?

After that I think you are deeper into grub2 than my experience goes.
I.e., is $dev getting set correctly? etc.

Another thought, though a longshot.....  Make sure the EFI grub.cfg
has proper line terminators?  I have no idea if grub cares, but mine
has Unix-standard LF.  But I'm wondering if you have CR-LF, maybe it
treats the CR as part of the UUID?  Which then causes it to not find
the UUID?
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux