Results 1 to 7 of 7

Thread: grub.cfg not found, though it is there.

  1. #1
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    grub.cfg not found, though it is there.

    Did routine update with about 5 items, all something like "Linux headers". It requested reboot. After all I had was black screen with

    Gnu Grub version 1.98-ubuntu7
    grub>

    I have XP on one partition and Ubuntu LL on the other. I cannot get to the boot menu.

    I spent two days communing with the Grub and Grub2 manuals, exploring from the prompt.
    The grub.cfg file is exactly where it should be in /boot/grub
    I've gone over every line and it all looks right.
    I can enter the commands in grub.cfg at the grub prompt for the appropriate linux and Windows boot sections of the boot menu it should build and display and boot into each of those systems, but still whatever should be looking for grub.cfg on boot does not, or does not find it and so it just displays the grub command line prompt.

    sudo update-grub from the Gnome terminal does not change this.

    Anyone have experience with this? thanks

  2. #2
    Join Date
    Feb 2010
    Location
    In My Food Forest
    Beans
    9,318

    Re: grub.cfg not found, though it is there.

    Have you tried booting the LiveCD and running the update-grub command?
    Cheers & Beers, uRock
    [SIGPIC][/SIGPIC]

  3. #3
    Join Date
    Nov 2009
    Beans
    Hidden!

    Re: grub.cfg not found, though it is there.

    I haven't experienced but it seems possible. Yes, grub.cfg is still there but the kernel may not be still there, may it be replacd by an upgraded kernel? So if grub looks for kernel, e.g., 2.6.32 and cannot find it, grub rescue screen may meet you. I'd try to boot manually before doing something else (at least to know if I'm doing it right).

    To do that, you must know the root partition, the exact path to the kernel and root directory. It's normally like this:
    grub> linux /boot/vmlinuz root=/dev/sdx
    grub> initrd /boot/initrd
    grub> boot
    replace /boot/vmlinuz and /boot/initrd with the exact paths. After succeeding in booting, you can refer to manual editing instructions in gnu grub manuals. The word "linux" may be replaced with "kernel" and sdx with hdx.

    For more info, look here:
    http://www.gnu.org/software/grub/man...#GNU_002fLinux
    and compare to here:
    http://orgs.man.ac.uk/documentation/grub/grub_4.html
    Last edited by dagdeniz; August 21st, 2010 at 09:18 PM.

  4. #4
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: grub.cfg not found, though it is there.

    Yes, I am booting manually, as I wrote. It allows me to continue, so I am delaying a wipe and reinstall for now (a bit of a pain for the Linux side, an ENORMOUS pain for the XP side)
    All files are where they should be: vmlinuz and initrd files in /boot. UUID values are kosher. If they were not, I would get the boot menu and THEN errors upon choosing a menu selection.

    There is some other linkage that is missing that the Grub2 manual does not describe, as far I have understood at least, something between BIOS and grub.cfg where the world collapses.

    @urock - have not yet - but unclear how that is different from sudo update-grub from the Gnome terminal - will try.

    thanks for responses.

  5. #5
    Join Date
    May 2009
    Location
    North West England
    Beans
    2,676
    Distro
    Ubuntu Development Release

    Re: grub.cfg not found, though it is there.

    Hi,

    welcome to the forum.

    I don't know what level of experience you have with using the terminal, but if your GRUB is messed up with that error you may well find You did What?!! should get it sorted for you.
    As it also forces Grub to update, it will find your windows area.

    Regards,

    Phill.

  6. #6
    Join Date
    Aug 2010
    Beans
    258
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: grub.cfg not found, though it is there.

    SOLVED!

    I did sudo upgrade-grub before. I needed upgrade-grub2. Probably the same error was somewhere in the coding for the routine upgrades that started this. All is normal now.

    Thanks.

  7. #7
    Join Date
    Jun 2009
    Beans
    286

    Re: grub.cfg not found, though it is there.

    As you have figured out, somewhere in your update process, it changed from "legacy" grub to grub2.

    There is a plethora of information here: https://help.ubuntu.com/community/Grub2

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •