Stephen Liu wrote:
I have following questions. Could you please shed me some lights?
1) Is the BLFS 6.1 to build a LiveCD on it necessary running during
building? OR booting another Linux to start building, i.e BLFS 6.1 not
working.
You need two Linux systems:
a) a "normal" LFS/BLFS or other system on /dev/hda6, your primary
working system that you regularly boot into.
b) a system on /dev/hda7, that will eventually be burned onto the CD.
This system has a modified version of bootscripts and configuration
files in order to account to the fact that the CD is read-only. These
bootscripts and configuration files are incompatible with normal
hard-disk booting, thus you should not add this copy of LFS to GRUB.
Looks like you have trouble understanding the hints that create a full
working CD, since they contain too much new information for you. Let's
create a few non-working CDs and thus attack the problem step by step.
The first step is described below. Please notify upon completion.
Build a fresh new LFS on /dev/hda7 as the book says, except for the
following things:
1) Don't install GRUB on it, don't add it for dual-booting.
2) Make sure that the kernel of this LFS supports IDE CD-ROMs and
ISO-9660 filesystem as non-modules.
3) Adjust /mnt/lfs/etc/fstab so that it doesn't reference your hard disk
(/dev/hda) at all.
4) Install openssl and lynx from BLFS while still in chroot.
Then, install cdrtools on your regular system (/dev/hda6 in your case).
Run the following commands:
cd /mnt
mkisofs -R -o cdrom.iso lfs
They will make a non-bootable CD image with your LFS. Burn it.
Then copy the kernel from /mnt/lfs/boot to /boot/lfscdkernel, and add it
to your bootloader for dual booting. If your CD drive is /dev/hdb, you
need the following lines:
title LFSCD
root (hd0,5) # same as for your normal system on /dev/hda6
kernel /boot/lfscdkernel root=/dev/hdb
If you insert the CD while looking at your boot loader screen, and then
select this entry, the kernel will be loaded from the hard disk, but it
will use the CD as its root filesystem. Of course the boot process will
fail later because the CD is read-only, but I won't explain any further
until you get to this point and tell me the exact error message as a
proof that you got here.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page