[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-knoppix] Re: customizing compressed loop image


Thanks for this!

From: Christian Perle <perle@itm.tu-clausthal.de>
Subject: [debian-knoppix] customizing compressed loop image
Date: Sun, 14 Jul 2002 20:48:56 +0200

> Customizing Knoppix compressed loop image
> Boot Knoppix, set up networking if necessary.
> Choose an ext2 partition on your hard disk with at least 3.5GB free space,
> mount it on /mnt and create a directory knx_root on it:
> mkdir /mnt/knx_root
> Copy the contents of the compressed loop filesystem to knx_root:
> cp -a * /mnt/knx_root
> Do a "change root" to knx_root:
> chroot /mnt/knx_root 
> Edit /etc/apt/sources.list if necessary. Add/remove packages with
> "apt-get install" or "apt-get remove". Keep in mind that after remastering
> the compressed loop filesystem has to fit on the CD.
> Then leave the chroot shell with "exit".
> Now remaster the compressed loop filesystem:
> (this requires _huge_ amounts of memory, so consider using an additional
> swap file/partition)
> mkisofs -R /mnt/knx_root | create_compressed_fs - 65536 > /mnt/KNOPPIX
> You may remove knx_root now:
> rm -rf /mnt/knx_root
> Next step is copying the contents of the Knoppix CD to /mnt/knx_cd, where
> the file KNOPPIX/KNOPPIX has to be replaced by the one created above.
> Make sure that the file boot.img is located physically before the file
> KNOPPIX. (ls -U)
> Now remaster the bootable CD image:
> mkisofs -r -J -b KNOPPIX/boot.img -c KNOPPIX/boot.cat \
>   -o /mnt/my_knx.iso /mnt/knx_cd
> Write the file my_knx.iso with cdrecord to a CD-R.
debian-knoppix mailing list

Reply to: