Hi,
I have finished compilation of LFS-8.1 on ubuntu minimal(16.04) LTS.
during the creation of the GRUB file i had setup root to the wrong partition to.
Code:
set default=0
set timeout=5
insmod ext2
set root=(hd1)
menuentry "GNU/Linux, Linux 4.12.7-lfs-8.1" {
linux /boot/vmlinuz-4.12.7-lfs-8.1 root=/dev/sdb1 ro
}
hence the GRUB menu showed wrong showed:
Code:
error: no such partition
after figuring out the correct partition, i updated the grub.cfg file directly to:
Code:
set default=0
set timeout=5
insmod ext2
set root=(hd1,1)
menuentry "GNU/Linux, Linux 4.12.7-lfs-8.1" {
linux /boot/vmlinuz-4.12.7-lfs-8.1 root=/dev/sdb1 ro
}
but on rebooting the GRUB menu still shows the same error. i have also tried:
Code:
set default=0
set timeout=5
menuentry "GNU/Linux, Linux 4.12.7-lfs-8.1" {
set root=(hd1,1)
insmod ext2
linux /boot/vmlinuz-4.12.7-lfs-8.1 root=/dev/sda2 ro
}
as the LFS environment does not have a update-grub, im not sure how to fix this issue in the LFS environment itself for i have also erased the host system.