|
楼主 |
发表于 2005-8-10 09:46:02
|
显示全部楼层
Hi blackwolf,
Tks for your advice.
Assuming your suggestion starting on FC3, the Host. I shall perform following steps after starting FC3;
$ su
password
# export LFS=/mnt/lfs
# mount /dev/hda6 /mnt/lfs
# mkdir -p $LFS
# echo $LFS
/mnt/lfs
After the kernel is builded, you must copy the bzImage & System.map to /boot of LFS system(/mnt/lfs/boot).
# find /mnt/lfs/ -name System.map*[code:1]
/mnt/lfs/sources/linux-2.6.11.12/System.map
/mnt/lfs/boot/System.map-2.6.11.12[/code:1]
# ls /mnt/lfs/boot/[code:1]
config-2.6.11.12 grub lfskernel-2.6.11.12 System.map-2.6.11.12[/code:1]System.map is already there
# find /mnt/lfs/ -name bzimage*
No output
Whether I have to run "make bzImage" ONLY on "linux-2.6.11.12" source directory to generate it also in chroot environment???
Where bzimage will be generated, in which directory???
After finish then run
# ln -s /path/to/bzimage /mnt/lfs/boot/bzimage
and run /etc/grub in chroot enviroment.
Then continue
Enter chroot environment:
New chroot in Section After 6.62. Cleaning Up
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/revisedchroot.html
# /usr/sbin/chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash --login
then run
# /etc/grub
and edit[code:1]grub> root (hd0,5) [ENTER]
grub> setup (hd0) [ENTER]
grub> quit [ENTER][/code:1]
then edit the file /boot/grub/menu.lst of LFS system(/mnt/lfs/boot/grub/menu.lst) follow the LFS book.
Whether you meant following
8.4. Making the LFS System Bootable
http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html
Create a “menu list” file defining GRUB's boot menu:[code:1]cat > /boot/grub/menu.lst << "EOF"
# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
default 0
# Allow 30 seconds before booting the default.
timeout 30
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS 6.1
root (hd0,3)
kernel /boot/lfskernel-2.6.11.12 root=/dev/hda4
EOF[/code:1](Remark: I already completed this part previously, confirmed on my Notes)
and then run "The FHS stipulates that GRUB's menu.lst file should be symlinked to /etc/grub/menu.lst. To satisfy this requirement, issue the following command:"[code:1]
mkdir /etc/grub &&
ln -s /boot/grub/menu.lst /etc/grub[/code:1]
when you restart the PC, if you see a green grub menu, the grub of LFS is working How to get back/boot to FC3, the Host afterwards.
and the hostsystem can be remove. You meant removing[code:1]title LFS 6.1 (2.6.11.12)
root (hd0,5)
kernel /boot/lfskernel-2.6.11.12 ro root=/dev/hda6 vga=795
[/code:1]from /etc/grub.conf of FC3, the Host
TIA
B.R.
satimis
P.S. with the grub.img floppy I can now boot straight to LFS 6.1 |
|