ext3, the third extended filesystem, is a Linux filesystem that adds a journal to the older ext2 on-disk format, so that the filesystem can return to a consistent state after a crash without a full scan. It entered the mainline Linux kernel in version 2.4.15 in 2001 and became the default filesystem of most major distributions for nearly a decade.
Its central design choice was backward compatibility: an ext2 volume can be converted to ext3 in place, and an ext3 volume can still be mounted as ext2. Today ext3 is considered a legacy format, superseded by ext4, but it remains important for understanding Linux filesystem design and for maintaining older systems.
How ext3 journaling works
ext3 protects metadata by writing intended changes to a journal, a reserved area on disk, before applying them to their final location. The journal is managed by the kernel layer called JBD (Journaling Block Device). Updates are grouped into transactions, and a transaction becomes durable only when its commit block is written.
After an unclean shutdown, the kernel replays committed transactions from the journal and discards incomplete ones. Recovery therefore takes seconds rather than minutes or hours, because it depends on the journal size, not on the size of the filesystem. Without a journal, ext2 required a full fsck run that grew with disk capacity.
The structure beneath the journal is unchanged from ext2. Data is organized into block groups, each with its own bitmaps and a share of the inode table, and files use direct and indirect block pointers rather than extents. The journal itself is normally stored as a hidden file with inode number 8.
Journaling modes and key limits
ext3 offers three journaling modes, selected with the data= mount option, which trade write performance against the protection of file contents. All three modes journal metadata; they differ in how file data is treated.
| Mode | What is journaled | Consistency and speed |
|---|---|---|
| data=journal | Metadata and file data | Strongest protection, data written twice, slowest |
| data=ordered | Metadata only, data flushed first | Default; no stale data after a crash, moderate speed |
| data=writeback | Metadata only, no ordering | Fastest; files may contain old blocks after a crash |
The ordered mode became the default because it prevents a file from pointing at blocks that still contain another file’s old data, without the cost of writing every block twice. Its well-known side effect is that an fsync call on one file can force all pending data of the filesystem to disk, causing noticeable latency spikes.
The size limits of ext3 depend on the block size chosen at creation time. The next table shows the commonly cited maximums.
| Block size | Maximum file size | Maximum filesystem size |
|---|---|---|
| 1 KiB | 16 GiB | 2 TiB |
| 2 KiB | 256 GiB | 8 TiB |
| 4 KiB | 2 TiB | 16 TiB |
Other notable limits include one-second timestamp resolution, no support for dates after January 2038 with the standard 128-byte inodes, and a cap of 32,000 subdirectories in a single directory. The HTree directory index, enabled with the dir_index feature, makes lookups in large directories fast.
ext3 compared with ext2 and ext4
ext3 sits between ext2, which has no journal, and ext4, which redesigned allocation while keeping the same family structure. The comparison below shows why ext4 replaced it on nearly all new installations.
| Feature | ext2 | ext3 | ext4 |
|---|---|---|---|
| Journal | None | Yes, via JBD | Yes, via JBD2 with checksums |
| Block mapping | Indirect blocks | Indirect blocks | Extents |
| Maximum volume | 16 TiB | 16 TiB | 1 EiB in design |
| Timestamp precision | 1 second | 1 second | Nanoseconds |
| Delayed allocation | No | No | Yes |
| Crash recovery time | Full fsck | Journal replay | Journal replay |
The family is forward compatible: the ext4 driver can mount an ext3 volume directly, and modern kernels no longer contain a separate ext3 driver, because since Linux 4.3 the ext4 code handles ext3 volumes. Compared with XFS or Btrfs, ext3 lacks features such as online defragmentation, snapshots and data checksums.
Creating, converting and maintaining ext3
Administrators manage ext3 with the e2fsprogs toolset, the same utilities used for ext2 and ext4. The format can be created directly, added to an existing ext2 volume or upgraded to ext4 later.
| Task | Typical command | Note |
|---|---|---|
| Create a new volume | mkfs.ext3 /dev/sdb1 | Same as mkfs -t ext3 |
| Convert ext2 to ext3 | tune2fs -j /dev/sdb1 | Adds a journal in place, no data loss |
| Check consistency | fsck.ext3 -f /dev/sdb1 | Run on an unmounted volume |
| Enable ext4 features | tune2fs -O extents,uninit_bg,dir_index | Existing files keep indirect blocks |
| Mount with a mode | mount -o data=writeback | Also set in fstab |
Converting ext3 to ext4 with tune2fs is one-way in practice: once extents are written, older ext3 drivers can no longer read the volume. A full backup before conversion and a forced fsck afterward are the standard precautions. Only new files benefit from extents unless data is copied again.
Limitations and common misconceptions
ext3 is reliable, but several of its properties are often misunderstood by those who maintain older Linux systems.
- A journal is not a backup. It keeps the filesystem structure consistent but does not protect against deletion, corruption by applications or disk failure.
- Ordered mode does not guarantee application data integrity. Programs must still call fsync to make their own writes durable.
- Deleted files are hard to recover because ext3 clears block pointers in the inode when a file is removed.
- Large file deletion is slow, since every indirect block must be read and freed, unlike extent-based designs.
- Periodic forced checks triggered by mount count or interval can delay boot on large volumes unless tuned with tune2fs.
For new deployments, ext4 or XFS is the recommended choice. ext3 is still found in embedded devices, old virtual machine images and archives, where its simplicity and broad tool support remain useful.
A plain-language summary
ext3 is a way of organizing files on a Linux disk. Its main idea is a diary of planned changes. Before the system changes where files are stored, it first writes down what it is about to do.
If the power goes out in the middle of the work, the computer reads the diary when it starts again and finishes or cancels the unfinished steps. That makes startup after a crash quick and safe, instead of checking the whole disk piece by piece. Newer systems use ext4, which keeps the same idea but handles large disks and files better.
An example from practice
A small engineering firm still runs an internal document server installed in 2009 on a 2 TB disk formatted as ext3 in ordered mode. During a storm, the building loses power and the server shuts down abruptly. When power returns, the kernel replays the journal in under ten seconds, and the server is back online before staff notice the outage. On the firm’s older ext2 test machine, the same event once required a 40-minute fsck.
Planning a hardware refresh, the administrator decides against an in-place tune2fs conversion. Instead, the data is copied with rsync to a new ext4 volume on a larger disk, so that every file uses extents and the volume gains nanosecond timestamps and support for dates beyond 2038. The outcome is a faster, future-proof server with the original ext3 disk kept as a read-only archive.