0

I have made LFS.  But unfortunately, when I installed GRUB, I got an error that said ext2 system isn’t supported.  But I added --force into grub-install --force /dev/sda and it installed, so I tried rebooting, and it automatically puts me into GRUB rescue shell.  Is there any way to repair it, or do I have to compile everything again?

I tried finding a kernel from the GRUB shell to load it, but I can’t really find anything.  And, when doing ls (hd0,gpt1), I don’t see any files or directories.

16
  • 2
    My first guess is that you didn't create a "BIOS boot partition" or have it formatted (I mean you shouldn't). You pretty much never want to grub-install with --force. If it can't complete without it, it's almost for sure you have done something wrong.
    – Tom Yan
    Commented May 22 at 6:38
  • 1
    And why EXT2? It's a filesystem from the past century, literally. Commented May 23 at 12:10
  • 1
    Linux supports a wide variety of filesystems but EXT2 is hopelessly out of date and has been superseded by EXT3 and EXT4, the latter the most used nowadays. And modern GRUB doesn't support it as you found out already. And what do you mean by boot partition exactly? A separated /boot is seldom needed (some server implementations use it). Do not confuse it with the ESP (EFI System Partition) that's required for any UEFI based computer, i.e., anything from 2012 or newer. That one must be FAT32 as per UEFI standards. Commented May 23 at 14:22
  • 1
    The unformatted "BIOS boot partition" (~1-1MB) mentioned in the 1st comment is only necessary when forcing a "BIOS"/Legacy/CSM installation onto a GPT drive (in lieu of the MBR that the old 'msdos' partitioning type has). I'm not sure if doing that is advisable and, likewise, choosing EXT2 is shooting your own feet. Commented May 23 at 14:26
  • 1
    What you've been told is also outdated an lacks nuance. There's a reason why not a single mainstream distro installer creates a separated boot partition when allowed to automatically partition, enough said. And you're again confusing a lot of things here -and- 250MB is ridiculously small nowadays, another reason why /bootis left as just a folder inside the root. I seems that the people you've been listening to are very old and outdated themselves. Commented May 23 at 17:50

0

You must log in to answer this question.

Browse other questions tagged .