9.1. Creating a linux Filesystem

The rest of this chapter assumes you already installed needed packages. If it's not the case, you should go to squashfs3.4 You should also have configured your kernel properly, as described in Section 4.1, “Configuring the Kernel”

You will need some space on a drive to make a partition for building your CD or DVD.

First, make a partition with your favorite partitioning program, eg. cfdisk or fdisk or some other. That partition doesn't need to be bigger than the size of the dvd or cd you intend to make.

[Note]

Note

All instructions in this section and the following need to be run as user root, to ensure a successful build

Issue the following command:

dd if=/dev/zero of=/dev/<xxx>

Where /dev/<xxx> is the partition you just created.

Create an ext2 filesystem on the partition, using:

mke2fs -m 0 -L livecd /dev/<xxx>
tune2fs -i 0 /dev/<xxx>

Option -m 0 is used to prevent mke2fs to reserve blocks.

Option -i 0 is used to prevent filesystem from being automatically checked.

Now that the filesystem has been set up on the key, go to Section 10.1, “ The Build”