help-grub
[Top][All Lists]
Advanced

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

Drops to command prompt; configfile /grub2/grub.cfg needed to boot


From: Brian J. Murrell
Subject: Drops to command prompt; configfile /grub2/grub.cfg needed to boot
Date: Wed, 24 Jul 2024 18:11:47 -0400
User-agent: Evolution 3.52.3 (3.52.3-1.fc40)

On a Fedora 40 machine (with grub 2.06) the partition I had for /boot
was too small.

Rather than trying to mess around with moving and growing partitions I
decided to just create a new (extended) partition out of the empty
space at the end of the disk.  It really is empty space that I did not
originally create any more partitions in so it was an easy choice.

After having created the new partition and copying the existing boot
partition's contents to it and then mounting the new partition on /boot
and editing /boot/grub2/grub.cfg to change all of the "msdos5"
references to "msdos7" (to reflect the new partition) I went ahead and
did a:

# grub2-install --root-directory /boot /dev/sda

to make GRUB use the new partition.  I got one warning when I did that:

Installing for i386-pc platform.
grub2-install: warning: Sector 32 is already in use by the program `FlexNet'; 
avoiding it.  This software may cause boot or other problems in future.  Please 
ask its authors not to store data in the boot track.
Installation finished. No error reported.

My understanding is that GRUB knows about this "FlexNet" bit and works
around it.

Now when I boot this system it says it's starting GRUB and then
immediately drops to a GRUB command line with no other errors or
messages.  At the GRUB prompt it's as easy as running:

configfile /grub2/grub.cfg

to get the GRUB menu.  Note that before doing so, I used "cat
/grub2/grub.cfg" to verify that GRUB was indeed using my new partition
by noting the references to "msdos7" instead of "msdos5" as it was
previously when it was on the previous partition.

So given that GRUB works so far as to just need a "configfile
/grub2/grub.cfg" at the GRUB menu to start the boot menu, what do I
need to do to make that automatic without dropping to the GRUB prompt?

Cheers,
b.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]