Creating an ext3 Partition
You can create ext3 partitions by adding parameters to the mke2fs command. Executing mke2fs -j creates an ext3 filesystem. For example:
# mke2fs -j /dev/md0The program mkfs.ext3 is equivalent to executing mke2fs -j.
The size of the journal can be fine-tuned, but must be a minimum of 1024 blocks and cannot exceed 102,400 blocks. If you are using a block size of 2048 bytes, the minimum usable journal size is 2 MB and the maximum is 200 MB. By default, 8192 blocks are allocated (32 MB when using a 4 KB block size). The default block size for an ext3 filesystem, as for an ext2 filesystem, is 4096 bytes. Thus, the following example creates an ext3 filesystem with a journal size of 16 MB (4096 blocks * 4096 bytes per block).
# mke2fs -j -J size=16 /dev/md0Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access