Thank you. Your advise have got me back on the right tracks.
For the record, here are the instructions that can be used to get into
the building environment after a reboot from chapter 6.60 up.
RESUMING LFS FROM 6.60 TO THE END
=================================
export LFS=/mnt/lfs
mkdir -pv $LFS
mount /dev/hda1 $LFS
mount /dev/hda3 /home
swapon /dev/hda2
mkdir -pv $LFS/{dev,proc,sys}
mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
2008/6/19, Dan Nicholson <[EMAIL PROTECTED]>:
> On Thu, Jun 19, 2008 at 11:23 AM, Rafael Lopez <[EMAIL PROTECTED]> wrote:
>> 2008/6/19, Dan Nicholson <[EMAIL PROTECTED]>:
>>>
>>> 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".
>>
>> Hi you there. Thank you for your support !!
>>
>> I´m not sure what exactly is unsderstood by "bind mounting" (yes, I'm
>> such a newby....).
>> But I can explain what I do when going to work on my LFS project at
>> presente stage of building.
>> What I do is to follow a procedure taken from the hint "How to resume
>> your work after a break at different LFS stages" at
>> http://www.linuxfromscratch.org/hints/downloads/files/stages-stop-and-resume.txt
>> in paragraph "From section 6.62. Cleaning Up to The End" to resume the
>> building environment:
>
> That hint is a little old and not quite accurate anymore. Ch. 6.60
> describes what you would do to reenter the chroot after you've built
> all the packages. It contains links back to the sections describing
> devices and kernel file systems.
>
> http://www.linuxfromscratch.org/lfs/view/6.3/chapter06/revisedchroot.html
>
> If you follow those instructions, you will have a "bind" mounted /dev
> in the chroot that just mirrors your /dev filesystem outside the
> chroot. Then you'll have all your devices available and grub should
> work.
>
> --
> Dan
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page