LFS not booting Grub error

Karl Wilbur karl at karlwilbur.net
Mon Jan 19 07:28:46 PST 2004

If you built LFS on a partition of your host drive and can still boot to 
your host partition or if you built LFS on a seoerate drive and can 
still boot to your host drive, either way boot you host system, then you 
can still chroot into the LFS build then rebuild GRUB.

Remember that GRUB has a slightly different naming system for hard 
drives than what you maybe used to.

hda = (hd0)
hda1 = (hd0,0)
hda2 = (hd0,1) ...

and root is not the "/" partition necissairly.  For example if you 
created a boot partition (mount point /boot) seperate from your root 
partition (mount point /) then GRUB expects that you give it the boot 
partition with the root command.

Example drive partitions:
hda1	/boot	e2fs
hda2	/	reiserfs(or whatever)
hda3	swap	swap

then GRUB wants:
root (hd0,0)

Hope this helps someone.


Serge Denault wrote:

> Hi everyone,
> As I mentioned in a former post I am almost there but lfs doesn' boot:
> --GRUB  version 0.93  (640K lower / 3072K upper memory)
>  [ Minimal BASH-like line editing is supported.  For the first word, TAB
>    lists possible command completions.  Anywhere else TAB lists the possible
>    completions of a device/filename. ]
> grub> root (hd0,3)
>  Filesystem type is ext2fs, partition type 0x83
> grub> setup (hd0,3)
>  Checking if "/boot/grub/stage1" exists... no
>  Checking if "/grub/stage1" exists... no
> Error 15: File not found --
> Well, these stage files are indeed where they should be. Why is it not
> finding them??
> Someone suggested to recompile Grub. Very nice, but how can someone do that?
> It is now impossible to chroot again. Or is it?
> Thanks

More information about the lfs-support mailing list