Subscribe:

Ads 468x60px

Pages

Thursday, August 4, 2011

Ext2 Vs Ext3 Vs Ext4



Ext2, Ext3 and Ext4 are all filesystems created for Linux. This article explains the following:
  1. High level difference between these filesystems.
  2. How to create these filesystems.
  3. How to convert from one filesystem type to another.



Ext2:
1.       Ext2 stands for second extended file system.
2.      It was introduced in 1993. Developed by Rémy Card.
3.      This was developed to overcome the limitation of the original ext file system.
4.      Ext2 does not have journaling feature.
5.      On flash drives, usb drives, ext2 is recommended, as it doesn’t need to do the over head of journaling.
6.      Maximum individual file size can be from 16 GB to 2 TB
7.      Overall ext2 file system size can be from 2 TB to 32 TB

Ext3
1)      Ext3 stands for third extended file system.
2)     It was introduced in 2001. Developed by Stephen Tweedie.
3)     Starting from Linux Kernel 2.4.15 ext3 was available.
4)     The main benefit of ext3 is that it allows journaling.
5)     Journaling has a dedicated area in the file system, where all the changes are tracked. When the system crashes, the possibility of file system corruption is less because of journaling.
6)     Maximum individual file size can be from 16 GB to 2 TB
7)     Overall ext3 file system size can be from 2 TB to 32 TB
8)     There are three types of journaling available in ext3 file system.
         ·         Journal – Metadata and content are saved in the journal.
        ·         Ordered – Only metadata is saved in the journal. Metadata are journaled only after    writing the content to disk. This is the default.
       ·         Writeback – Only metadata is saved in the journal. Metadata might be journaled either before or after the content is written to the disk.

You can convert a ext2 file system to ext3 file system directly (without backup/restore).

Ext4
1)      Ext4 stands for fourth extended file system.
2)     It was introduced in 2008.
3)     Starting from Linux Kernel 2.6.19 ext4 was available.
4)     Supports huge individual file size and overall file system size.
5)     Maximum individual file size can be from 16 GB to 16 TB
6)     Overall maximum ext3 file system size is 1 EB (exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).
7)     Directory can contain a maximum of 64,000 subdirectories (as opposed to 32,000 in ext3)
8)     You can also mount an existing ext3 fs as ext4 fs (without having to upgrade it).
9)     Several other new features are introduced in ext4: multiblock allocation, delayed allocation, journal checksum. fast fsck, etc. All you need to know is that these new features have improved the performance and reliability of the filesystem when compared to ext3.
10)  In ext4, you also have the option of turning the journaling feature “off”.

0 comments:

Post a Comment