File system is divided in two segments called User Data and Metadata. In this article I am trying to explore how to create and convert various Linux file systems and high level difference amongst Ext2, Ext3 and Ext4 file systems. Before moving further readings, let me introduce a brief about Linux file systems.
Ext2 – Second Extended File System
- Ext2 file system was introduced in 1993 and Ext2 was developed by Remy Card. It was the first default file system in several Linux distro like RedHat and Debian.
- It was to overcome limitation of legacy Ext file system.
- Maximum file size is 16GB – 2TB.
- Journaling feature is not available.
- It’s being used for normally Flash based storage media like USB Flash drive, SD Card etc.
Ext3 – Third Extended File System
- Ext3 file system was introduced in 2001 and same was integrated in Kernel 2.4.15 with journaling feature, which is to improve reliability and eliminates need to check file system after unclean shutdown.
- Max file size 16GB – 2TB.
- Provide facility to upgrade from Ext2 to Ext3 file systems without having to back up and restore data.
Ext4 – Fourth Extended File System
- Ext4, the high-anticipated Ext3 successor.
- On October 2008, Ext4 as stable code were merged in the Kernel 2.6.28 which contains Ext4 file system.
- Backward compatibility.
- Max file size 16GB to 16TB.
- Ext4 file system have option to Turn Off journaling feature.
- Other features like Sub Directory Scalability, Multiblock Allocation, Delayed Allocation, Fast FSCK etc.