Hi Alexander,
 
> You normally copy the system with tar, not clone it with dd:
<snip>
> mount /dev/hda7 /mnt/lfs

Noted with tks.  Here I think I have to adjust "/mnt/lfs" to
"/mnt/livecd".  Because /mnt/lfs is the running BLFS 6.1. 
"/mnt/livecd" is for building LiveCD.  Same as to following commands
concerned.

> cp -av /bin /boot /etc /home /lib /opt /root /sbin /srv /usr /var \
>       /mnt/lfs
> mkdir -m1777 /mnt/lfs/tmp
> mkdir /mnt/lfs/{dev,proc,sys,media,mnt}
> mknod -m600 /mnt/lfs/dev/console c 5 1
> mknod -m666 /mnt/lfs/dev/null c 1 3


> This works with filesystems of any size. BTW when applied to a
> mounted filesystem, "dd" damages your data.

Noted with tks.  I'll use "cp" command to duplicate /dev/hda6 on
/dev/hda7


> The rest of your message is ignored because you haven't answered the 
> question at the bottom of my previous mail (aka Lesson 1).

Oh, sorry.  I thought leaving creating ISO image and its burning on CD
to final stage.  I'll answer them at end of this email.


> Also, forget about the hints, they need adjustment in order to work
> with 
> today's LFS. In Lesson 20, you will have a better CD if you succeed
> in all previous lessons.

Please advise "Lesson 20" of which document you referred to.  Tks.



Answers to your previous email dated Tue, 11 Oct 2005 19:27:24 +0600:-

> 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.

Noted with thanks.  One additional question; can I test-run the LiveCD
after its building finished but before creating its ISO image?

 
> Then copy the kernel from /mnt/lfs/boot to /boot/lfscdkernel, and add
> it 
> to your bootloader for dual booting.

Here I have some confusion.  It is necessary to recompile the kernel of
the LiveCD to enable IDE CD-ROMs support and ISO-9660 filesystem as
non-modules, etc.  Whether after compilation while still on
/mnt/livecd/usr/src/linux-2.6.11.12/ Run;

# cp /arch/i386/boot/bzImage /mnt/livecd/boot/lfskernel && cp
System.map /mnt/livecd/boot/

If I'm wrong please correct me.  Tks.

Besides shall I leave the recompilation of kernel to last step of
building LiveCD?


> 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

Noted with thanks.


> 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.

Noted.  I'll post the error message at this stage.  Tks

B.R.
SL
-- 
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to