LFS 6.3 - Chapter 8.4 - Cannot install grub

Dan Nicholson dbn.lists at gmail.com
Thu Jun 19 06:24:34 PDT 2008


On Thu, Jun 19, 2008 at 5:04 AM, Rafael Lopez <rafa2005ar at gmail.com> wrote:
> Hi Murali,
>
> 1. Only one hard drive
>
> 2. & 3. From OUTSIDE chroot:
> root [ / ]# df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/mapper/lfs-cd     1548144   1265408    204096  87% /
> /dev/hda1              3447108    823280   2448724  26% /mnt/lfs
> /dev/hda3              8396592    185140   7784928   3% /home
> root [ / ]#
>
> 2. & 3. From INSIDE chroot:
> root:/# df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> none                    128264         0    128264   0% /dev/shm
> none                    128264         0    128264   0% /dev/shm
> none                    128264         0    128264   0% /dev/shm
> none                    128264         0    128264   0% /dev/shm
> none                    128264         0    128264   0% /dev/shm
> none                    128264         0    128264   0% /dev/shm
> none                    128264         0    128264   0% /dev/shm
> root:/#

Are you bind mounting the /dev partition when you enter the chroot? If
you can't see /dev/hd* from within the chroot, then neither can grub
and it can't determine your partition layout. Grub keeps your list of
partitions in the file /boot/grub/device.map.

To just have grub write the device.map file, run the command "echo
quit | grub --batch".

--
Dan



More information about the lfs-support mailing list