LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   error: unknown filesystem (https://www.linuxquestions.org/questions/linux-from-scratch-13/error-unknown-filesystem-4175728844/)

riko 09-11-2023 03:43 AM

error: unknown filesystem
 
I just completed LFS Version 12 in VMWare. After restarting, grub displays "error: unknown filesystem"
I created a snapshot before rebooting so I could work directly back into the host system
When I first partitioned the hard disk, I created an msdos partition table instead of GPT. Could this be the cause of the problem?
I have successfully created an LFS 11.3 before, using a GPT partition table.
I followed all the previous instructions that worked which successfully last time at LFS 11.3
My grub.cfg file is as follows:
Code:

# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod part_mbr
insmod ext4
set root=(hd1,2)
menuentry "GNU/Linux, Linux 6.4.12-lfs-12.0" {
        linux /boot/vmlinuz-6.4.12-lfs-12.0 root=/dev/sdb2 ro
}

Please tell me what other files I need to upload
Any help would be appreciated!

hazel 09-11-2023 06:18 AM

My guess is improper kernel config. If you're not using an initrd, you need to have all relevant drivers built in. That means EXT4 obviously but also MSDOS_PARTITION. Since you used GPT last time around and most LFS users use "make oldconfig" to build subsequent kernels, you may need to go back and change that, just as you did for GRUB.

bryan_S 09-11-2023 08:26 AM

See section 8.79.2 Configuring E2fsprogs in the LFS book. If this is the issue, you can remove the "metadata_csum_seed" feature by using tune2fs on the unmounted filesystem; then grub should be able to recognize it.

I just had to do this myself. Mageia 9 grub couldn't recognize my LFS-12 ext4 filesystem with metadata_csum_seed enabled.


All times are GMT -5. The time now is 05:41 AM.