Stephen Liu wrote:
Hi Alexander,
Tks for your further advice.
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.
The box has 2 working systems, both bootable (dual-boot), as follows;
1) FC3, the host, previously used for building BLFS 6.1 with 3
partitions as;
/ /dev/hda2
/swap /dev/hda3
/home /dev/hda5
2) BLFS 6.1, with full Linux function and running strong
/ /dev/hda6
/swap is shared with FC3 "i.e. /dev/hda3)
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.
The same HD has another partition /dev/hda7 with ext3, same as other
partitions. This partition is for building LiveCD.
My problem is;
I could not figure out how to clone /dev/hda6 (BLFS 6.1) on /dev/hda7
(for building LiveCD). These 2 partitions are of unequal size.
You normally copy the system with tar, not clone it with dd:
mount /dev/hda7 /mnt/lfs
tar -C / -lcpvf- | tar -C /mnt/lfs -xf -
mknod -m600 /mnt/lfs/dev/console c 5 1
mknod -m666 /mnt/lfs/dev/null c 1 3
Or, equivalently,
mount /dev/hda7 /mnt/lfs
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.
The rest of your message is ignored because you haven't answered the
question at the bottom of my previous mail (aka Lesson 1).
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.
--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page