HD Doctor Logo

ext4: What it is, how it works and why it matters

Direct answer

ext4 (fourth extended filesystem) is the default filesystem of most Linux distributions since 2008. Successor to ext3, adds extents, delayed allocation, journaling and supports volumes up to 1 exabyte.

Full definition

ext4 structure: replicated superblock, block groups with inode and block bitmaps, inode tables (1 per file with metadata), and data in extents (contiguous ranges) instead of ext3's indirect block map. Journaling in ordered (default), writeback or journal mode protects against power-loss corruption. In Linux recovery, the key is the superblock and inode table. When a file is deleted in ext4, the inode is zeroed but extents continue pointing to data until rewritten. Tools like extundelete, ext4magic and debugfs can recover recently-deleted files before allocation reuses the blocks.

Need to recover data or have a technical question?

Senior engineers in PT, EN and ES.

Related terms