LFS 6.3 - Chapter 8.4 - Cannot install grub

Colin Kemp godrocksyou88 at gmail.com
Sat Jun 21 16:11:38 PDT 2008



On Jun 21, 2008, at 6:29 PM, "Rafael Lopez" <rafa2005ar at gmail.com>  
wrote:

> 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
Did you mean $LFS/home here?
> 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
These last 3 commands are not needed when resuming.
>
> 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 <dbn.lists at gmail.com>:
>> On Thu, Jun 19, 2008 at 11:23 AM, Rafael Lopez  
>> <rafa2005ar at gmail.com> wrote:
>>> 2008/6/19, Dan Nicholson <dbn.lists at gmail.com>:
>>>>
>>>> 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

Just a couple of things as shown above

---------------
Colin Kemp
GodRocksYou88 at gmail.com


More information about the lfs-support mailing list