Next Previous Contents

7. Developers informations

7.1 Creating images of BOOT/ROOT/Eltorito

Creating the BOOT disk

Creating the ROOT disk

Creating the Eltorito bootcd image

The best way is to update an existring image. The size of the file is 2.88 MB (2949120 bytes). It contains a FAT file systems.

First, mount the image: mount -o loop bootcd.img /mnt/bootcd

Then, replace the vmlinuz with a new kernel (it can be the bootdisk.raw), and replace the initrd.img with another root (it can be rootdisk.raw).

You will need syslinux to make this image bootable. It's easier to use than LILO.

Now, umount the bootcd image with umount /mnt/bootcd

Run losetup /dev/loop0 bootcd.img, run syslinux syslinux -s bootcd.img, and detach the loop device: losetup -d /dev/loop0

7.2 Testing the file system support of partimage

In this section, we will explian how to test the file system support of partimage. Then, it does not explains how to test all the options (compression, splitting,) but only how to be sure the data of the file system can be saved and restored successfully, and the result will be the exact copy of the original. The goal of this test is to know if you will obtain a valid partition after the restoration, with all your files, or if a bug will encounter the data lost.

Tests are more useful if they are made on difficult file systems. For example it's easier to encounter a bug on a fragmented file system. Thus, making tests on fragmented partitions can give better informations to the developpers, because it can work, even when it's not the best condition of use. Likewise, making test on partitions which contains free space is more interesting.

If you want to create a test partition, the best thing to do it to fill all the space with files, and to erase some of them after, in order to create a fragmented file system.

There are two ways to test the copy of a partition:

a) Using two test partitions of the same size

You need to have free disk space, to save an image, and to create a new partition. We will copy an existing partition to another one, using partimage. We need two partitions:

What to do:

b) Using only one partition and aide

First, you will require AIDE (Advanced Intrusion Detection Environment). It's a free software.


Next Previous Contents