Linux Filesystems

Even though the newly added drive is now recognized by the operating system, it's not usable until it is partitioned and a filesystem is created on it. The default filesystem for Linux is the extended type-2 filesystem (ext2). Characteristics of an ext2 filesystem are listed in Table 9.3.

Table 9.3. Second Extended (ext2) Filesystem Characteristics
CharacteristicLimit
Maximum filesystem size4 terabytes
Maximum file size2 gigabytes
Maximum filename length255 characters
Minimum block size1,024 bytes
Default inode allocation1 per 4,096 bytes of partition space

The filesystem structure is built when the make filesystem utility (mkfs) is run. This utility is actually just a front-end program that calls subordinate routines for filesystem ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.