- Step-01: Mount the working partition:
# mount /dev/hda1 /mnt/custom
If you don't want the main temporary directory to be written to the root of /mnt/custom,
you can choose another directory. For example, if the free space is an NFS share, you can
try this:
# mount -o loop /mnt/nfs/usr/dir1/dir2 /mnt/custom
- Step-02: Extract the current files from the cloop image:
# /usr/sbin/sysresccd-custom extract
If there is no error, all the files of the cloop image should have been copied
in /mnt/custom/customcd/files/
- Step-03: Customize files (optional)
You have to customize the files which you have just extracted. You can do this from the
SystemRescueCd, but it's also possible to restart the computer and do it
from any other installed linux system. If you choose to restart, you will have
to restart from the SystemRescueCd, and mount files again (follow step-01 again).
All the changes have to be made in the following directory: (This is the root
of the new filesystem)
/mnt/custom/customcd/files/
- Step-04: Create the new cloop image
In this step, all files from /mnt/custom/customcd/files/ are read, and put inside
the new cloop image. The new cloop image is copied in
"/mnt/custom/customcd/isoroot/sysrcd.dat", but you don't have to concern yourself with this.
# /usr/sbin/sysresccd-custom cloop 250 20000
This creates a cloop for a filesystem that uses 250 MB, and with less than 20000 files. If
the command complains about space missing, try to increase these two parameters. For example,
if your filesystem contains 50000 files and uses 10 MB, the previous command will complain
(no space left on device).
- Step-05: Add files to the ISO image (optional)
By default, you only need the big cloop image file and the isolinux directory. The CDRom
can work with only these two items on the disc. In this step, you can add other files to
the ISO image, outside of the cloop image. For example, you can put big backup files
inside the CDRom, and outside the cloop image, in order to avoid overloading the cloop.
If you are interested in adding such files, you just have to copy the files along with
the sysrcd.dat, in this directory: "/mnt/custom/customcd/isoroot"
# cp -a my-files /mnt/custom/customcd/isoroot
You may add an autorun script to the root of the CDRom, outside of the cloop image. If
you put an autorun script there, it can be run at startup. It allows to automake many
tasks, such as doing a backup. See the autorun section for more details.
# cp autorun /mnt/custom/customcd/isoroot
# chmod 755 /mnt/custom/customcd/isoroot/autorun
Of course, you need to make sure that the size of the isoroot directory is not too big for your
CDR (usually 700 MB). You can use the "du /mnt/custom/customcd/" command for that.
- Step-06: Select your keymap (optional)
In the official version, SystemRescueCd asks you to select a keymap at startup. If you want to
avoid seeing this menu and define a permanent keymap, you can run this command:
# /usr/sbin/sysresccd-custom setkmap <your-keymap>
The second parameter is the name or the number of your keymap in the menu. For example,
french users will use this:
# /usr/sbin/sysresccd-custom setkmap fr
- Step-07: Create the new ISO image
You just have to type this command. The second parameter to provide is the volume name for
the CDRom.
# /usr/sbin/sysresccd-custom isogen my_srcd
- Step-08: Synchronize your disks
Before leaving the system and rebooting, you should make sure all your disks are cleanly
unmounted. The best way to be sure not to lose data is to umount all mounted partitions, especially
the temporary one (/dev/hda1 in this example), and then type "sync"
# cd / ; umount /mnt/custom ; sync
- Step-09: Test and burn the ISO image
The new final ISO image is located in
"/mnt/custom/customcd/isofile/sysresccd-new.iso".
You can burn it with cdrecord, Nero, or any other burning software. If you don't want to burn
a CDR, you can test it with VMWare. You have to tell this software that the CDRom drive to
use is the virtual ISO-image file drive.