About Ext3 Fragmentation and Recovery

Jonny Defh

Ext3 is a journaled file system used for many Linux distributions. Journaling feature helps keeping the system afar most of Linux Recovery needs that can occur due to unexpected system shutdown, file system errors, application (like virus) issues etc. But the issues like excessive ext3 fragmentation have been found to create problems like file system corruption.

A system with fragmented file system shows slow behavior and result as performance degradation problem, especially when applications are running. Ext3 undergoes automatic defragmentation and that´s the reason why we encounter less issues. But if automatic defragmentation fails, it may result as system crash.

As excessive number of files are repeatedly created, modified and deleted on disk, it suffers fragmentation. Instead of allocating contiguous space to a file, system stores a single file in various fragments due to unavailability of adjacent spaces. The issue grows with time. In such cases, system needs time to collect and hence access different file fragments from various parts of disk.

Ext3 doesn´t include any online defragmentation tool. So in order to defragment it, we can either reoptimize the file system structure or use ext2 offline defragmenter called e2defrag. Heavy fragmentation can corrupt the file system. In such cases if backup doesn´t exist, Linux Data Recovery applications will be required.

• We can reoptimize ext3 structure using following command:

# e2fsck -D /dev/hdXY

Note: The command will result in file system corruption if used on mounted file
system.

• e2defrag requires ext3 to be first converted to ext2. Also the tool doesn´t recognize some of new ext3 data structures and features. Thus using the tool can corrupt the file system in certain cases. So, Linux Recovery will be required.

• Third party defragmentation utilities can also be used.

In case of file system corruption, formatting the disk can recreate the file system. So in-place data backup is required to restore data after formatting. But if backup fails or doesn´t retain the required files, Linux Data Recovery software can extract the lost information. These are powerful, interactive and safe Linux Recovery applications that can scan and recover lost data using scanning algorithms.

Stellar Phoenix Data Recovery Linux  uses efficient scanning procedures to recover lost data. This Linux Data Recovery application is compatible with ext2, ext3 and ReiserFS file systems. The software supports most Linux distributions. It has an interactive interface with self-descriptive steps to be followed.