Michael Oberg - Freiberuflicher EDV-Berater und Software-Entwickler
Frame Version


An CD image gets created from the current system by the script CREATE-CD. This happens with the following command:

<path to the myLinux package>/compile scripts/CREATE CD

The Package listing must be complete and unchanged. It gets copied as an archives on the CD.

Ideal way would be, if the myLinux package would be located on an different partition than the current system - like it was at the beginning of the compiling process. In this case the partition must be mounted in /mnt. This happens automatically, if the partition before beginning of the compiling were indicated in the configuration file mylinux.conf.
In the indicated example the myLinux partition was mounted in /dev/hda4, the compiling was started out of the /root directory on /dev/hda2 and in the file mylinux.conf the partitions /dev/hda2 and /dev/hda3 were indicated as additional partitions. Therefore these were mounted in /mnt/hda2 and /mnt/hda3, the command for creating the CD image reads:


Naturally contents of the folders /mnt and /proc were not copied on the CD during the image creation, just as little like the still in the master directory contained packages and SOURCE listings.

The several temporary folders and developed files in the master directory and are again deleted. A folder /CD, which contains the complete CD contents, remains and the image /livecd.img itself.

If the three SOURCE folders are deleted before, the storage requirement amounts about 2,4 GB.


The script implements several steps:

  • Copy of all relevant system folders in /Live-CD,
  • Creation of installation Skripts, which will be found later in the /root folder on the Live-CD: install-files.sh copies the data of the Live-CD onto the goal partition, install-config.sh configures the system,
  • Deletion of Kernel sources (these only takes away unnecessarily space on an Live-CD) as well as different log files and Caches,
  • Providing the RAM disk in /Live-RAM - into this all files are moved, to which the current system implements write accesses; the other files are getting loaded by symbolic links to /mnt/cdrom/Live-CD directly from the CD,
  • Creation of the preinit skript, which looks for and mounts the CD after loading the Kernel,
  • Creating the RAM disk image,
  • configuring the Bootloader syslinux, including the move of the Kernel,
  • Addind of the Icon, the package mylinux-usermanager-x.xx.tgz and an archive of the Kernel sources (those were deleted above),
  • and finally the creation of the CD-image.

Remark: The preinit-script has still another useful feature - it still looks before the examination of the CD-drive assembly a Windows disk with a file preinit and runs these. In this way the behavior of the live-cd can be modified.