Now configure GRUB, note that the configuration here is not the same as those in section 8, "Boot LFS".

Enter the grub shell

grub

GRUB uses its own naming structure for drives and partitions in the form of (hdn,m), where n is the hard drive number and m is the partition number, both starting from zero. For example, partition hda1 is (hd0,0) to GRUB and hdb3 is (hd1,2).

Tell GRUB where to search for its stage{1,2} files. The Tab key can be used everywhere to make GRUB show the alternatives:

root (hd1,0)

Tell GRUB to install itself into the MBR of the BLFS disk (noted, do that on hd1 only, don't do that on hd0, which is the Ubuntu disk)

setup (hd1)

If all went well, GRUB will have reported finding its files in /boot/grub. That's all there is to it. Quit the grub shell: