I recently finally finished my build of LinuxFromScratch version 7.9-SYSTEMD. There is one change I had to make from the book. I needed to aquire a patch for the package inettools
that caused PATH_PROCNET_DEV
to be undefined. Besdides that, my LFS build is on a second hard drive and will be booting independently from the host system. I am running Ubuntu 16.06 in VMWare and the LFS target machine is also ion VMWare. After the kernel starts to load it goes into a panic state saying:
[ 10.063526] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
I have already check whether or not the fs type and hard disk type are enabled in the kernel, rebuilt, and still to no avail. Is there anything I have missed in trying to fix this?
EDIT: Changing the hard disk type from SCSI to SATA did not work, nor did changing it to IDE
EDIT: This is my current grub.cfg file:
set default=0
set timeout=5
insmod ext2
set root=(hd0,gpt2)
menuentry "LinuxFromScratch-7.9-SYSTEMD" {
linux /boot/vmlinuz-current-lfs-7.9-systemd root=/dev/sda2 ro
}
EDIT: Running update-grub
on the host successfully found the installation, but it still fails to boot with the same Kernel Panic error. I will try rebuilding my kernel to see if there's something I missed in its copnfiguration
sda
orsda1
?