With freshly created partitions available, they now need to be formatted. In this book,
ext4 will be used as the filesystem.
While not yet supported by the 3.4.x kernel used in this book,
is very interesting as it is optimized for SSD, USB, or microSD flash usage. This is something that could be interesting in future.
The command to format a partition is
mkfs.ext4, and the parameters that are of interest are the device node being formatted and optionally
-L, which is used to give the partition a name.
Formatting the root partition is shown here:
Formatting the swap partition can be done using the command ...