Hi,
i have completed compiling Linux From Scratch 8.1 on Ubuntu-16.04(minimal).
while setting up GRUB i have set the root to the wrong partition, the grub.cfg file is shown below:
Code:
set default=0
set timeout=5
insmod ext2
set root=(hd1,0)
menuentry "GNU/Linux, Linux 4.12.7-lfs-8.1" {
linux /boot/vmlinuz-4.12.7-lfs-8.1 root=/dev/sdb1 ro
}
plus i had run
Code:
grub-install /dev/sda
hence GRUB had shown the following error:
Code:
error: no such partition
so i clicked on 'c' and set the root to (hd1,1) and the OS booted. After which i updated the grub.cfg file 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
}
and again rebooted to check the configuration, but it seems as though the change is not getting reflected as it still gives me the same error and i have to once again set the root to (hd1,1).
so my question is how do you permanently update the grub? i have also tried
Code:
grub-install /sda/sdb
but it seems to not make a difference.