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. /dev/hda6 (BLFS 6.1) 5G with about 1.5G used /dev/hda7 (LiveCD) 2G not used yet To my knowledge following command line dd if=/dev/hda6 of=/dev/hda7 bs=4096 conv=notrunc,noerror only works on equal size partitions. I have been searching on Internet to confirm it without result. Otherwise I'll use following methods 1) Boot up FC3 2) # dd if=/dev/hda6 of=/home/myimage.img (can I use /home for keeping myimage.img? It has sufficient spare space) 3) # dd if=myimage.img of=/dev/hda7 hoping that they work on unequal size partitons. > The first step is described below. Please notify upon completion. I'm now preparing a working_notes based on "Easy Boot CD of your LFS" http://www.linuxfromscratch.org/hints/downloads/files/boot-cd_easy.txt with steps to be taken in full detail. The said notes will consist 2 parts; Part_1 : Building LiveCD Part_2 : Compression steps (creating ISO image and CD burning shall not be included. They are basic technique on Linux) I'll post the said notes on this LIST after success completion. So that other folks subscribed to this LIST shall be benefitted. > Build a fresh new LFS on /dev/hda7 as the book says, except for the > following things: I'll build LiveCD on BLFS 6.1 after reducing its size to <1GB by removing some packages manually before start. BLFS 6.1 is already a full function system running without problem. Now the point is here. If I follow "Easy Boot CD of your LFS" the steps is less complicate. But I need a working BLFS 6.1 on /dev/hda7 to start. On the other hand if I follow "Beginners Guide To Creating A Live CD With LFS 6.0" http://www.linuxfromscratch.org/hints/downloads/files/bootcd-2.6-udev-nptl.txt I don't need a working BLFS 6.1 running on /dev/hda7. But the steps are more complicate, populating devices being necessary, similar to the steps on building LFS. If I solve the problem cloning BLFS 6.1 on /dev/hda7 I prefer to follow "Easy Boot CD of your LFS" > 1) Don't install GRUB on it, don't add it for dual-booting. Yes. I won't modify /boot/grub/menu.lst of FC3 > 2) Make sure that the kernel of this LFS supports IDE CD-ROMs and > ISO-9660 filesystem as non-modules. I'll recompile the kernel as described on "Easy Boot CD of your LFS" > 3) Adjust /mnt/lfs/etc/fstab so that it doesn't reference your hard > disk > (/dev/hda) at all. Here # cat /mnt/lfs/etc/fstab # Begin /etc/fstab # file system mount-point type options dump fsck # order /dev/hda6 / ext3 defaults 1 1 /dev/hda3 swap swap pri=1 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 shm /dev/shm tmpfs defaults 0 0 /dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0 usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 /dev/hdc /mnt/cdwriter iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0 /dev/hdd /mnt/cdrom iso9660 user,iocharset=iso8859-1,noauto,ro,exec 0 0 # End /etc/fstab Whether to remove; /dev/hda6 /dev/hda3 /dev/hdc /dev/hdd retaining "/dev/fd0" > 4) Install openssl and lynx from BLFS while still in chroot. > > Then, install cdrtools on your regular system (/dev/hda6 in your > case). Yes. already installed. Others noted with thanks. BR SL -- http://linuxfromscratch.org/mailman/listinfo/livecd FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
