• RSS
  • SmsJobs
  • Sms
  • GoogleBuzz
  • Facebook
  • Twitter
  • Linkedin
  • Youtube
The Linux Juggernaut

The Linux Juggernaut

roles on……

Do you like www.linuxnix.com ? Please consider supporting us by becoming a subscriber and get a Linux basics e-book for free.
ext2_ext3

The differences between Ext2 and Ext3 file systems are as follows.

Sl.No

EXT2

EXT3

Journaling

No journaling

Has journaling

Speed of file system(read-write)

Bit faster

Bit slower then ext2 file-system

Data corruption

File system may be corrupted due to unplanned reboots

Prevents file-system corruption

Way to recover data

Require fsck to recover data after unplanned reboot

Does not require(automatic file recovery is done at booting time)

Online file system growth.

By default there is no Online file system growth.

Online file system growth

Commands to format

mkfs.ext2 or mke2fs

mkfs.ext3 or mke2fs -j

Max file size(if block size is 1kB)

2GB

16GB

De-fragmentation

Easy and done with e2defrag

There is no data security when doing de-fragmentation.

Data accommodation

More data can be accommodated in a give space

Less date is written when compare to ext2 in a give space due to journaling.


Some FAQ’s:

1. What is Journaling?
Ans : In general, Journaling file systems avoid file system corruption by maintaining a journal. The journal is a special file that logs the changes destined for the file system in a circular buffer. At periodic intervals, the journal is committed to the file system. If a crash occurs, the journal can be used as a checkpoint to recover unsaved information and avoid corrupting of file system meta-data.

2.How many file systems supported by linux? and what are they?
Ans : As of now(09-Nov-2009)
Linux will supports : Btrfs, cifs, davfs, ext, ext2, ext3, ext4, exofs, hpfs, JFS minix, msdos, ncpfs, NiLFS(2), ntfs, nfs, proc, smbfs, iso9660, sysv, hpfs, affs, ufs, umsdos, vfat, xia, xfs, ZFS.
Note : Please add some more file systems which you people know in the comment section. So that i will update the post with new file systems.

3.What is the maximum size of a partition we can create using ext2 and ext3?
Ans : 4TB partition
can be created in each ext2 and ext3 file system respectively.

4.What is the maximum size of a file we can create in ext2?
Ans :
The maximum size what we can create is 2GB to 2TB. It depends on the block size we taken when we are formatting. If the block size is 1KB we can not create a file more than 2GB in ext2 file system.

5.What is “ext” in ext2 and ext3?
Ans :
When linux first implemented the default file system is minixfs, in subsequent years it was replaced its successor file system called extended file-system. So the naming convention. So ext2 is second version of extended file system. Same explanation is given to ext3 and ext4.

6. Some points about ext4
a.
It supports 64 bit storage limits, where as ext, ext2, ext3 are 32Bit storage limits and minix is 16Bit storage limit.
b.Have backward compatibility and performance is improved from lower version.
c.Extents are introduced (An extent is a range of contiguous physical blocks, improving large file performance and reducing fragmentation. A single extent in ext4 can map up to 128MB of contiguous space with a 4KB block size).

And there are many more advantages please see the below links for more info about all the file systems..
http://en.wikipedia.org/wiki/Ext4
http://en.wikipedia.org/wiki/Ext3
http://en.wikipedia.org/wiki/Ext2
http://en.wikipedia.org/wiki/Extended_file_system
http://www.ibm.com/developerworks/library/l-journaling-filesystems/index.html
http://www.oracle.com/technology/pub/articles/calish_filesys.html
http://www.cyberciti.biz/tips/understanding-unixlinux-file-system-part-i.html Please comment your thoughts regarding this post. To give feed back click here.

Do you like www.linuxnix.com ? Please consider supporting us by becoming a subscriber and get a Linux basics e-book for free.
bySurendra On Tuesday-November - 10 - 2009
  • http://www.blogger.com/profile/04824429006883859455 rockravinder10

    it very good information thank u

  • http://www.blogger.com/profile/12971989109849579563 Surendra Kumar Chowdary

    thanks for the comment

  • Anonymous

    This site has very useful information, thanks and keep it updating accordingly.

    Thanks
    Kartik Gupta

  • Srinivas Kotaru

    I stumbled upon this site today and found really useful. It fills some gaps to every system administrator irrespective of whether they experienced or not. It requires lot of passion and interest on subject to write or maintain such blog.

    This internet is all about wonderful guys like you …

    Good luck

    Srinivas

  • Pingback: Some interview topics | The Linux Juggernaut

  • aditya

    heyyy..yuppyyyy
    documents are really fabulous boss
    thats great..
    thanks!!

    • http://www.linuxnix.com Surendra

      This really helps us to improve our posts and work with more standards

      Thanks,
      Surendra

  • Pingback: How to find block size in Linux and Unix | The Linux Juggernaut

  • Santhosh

    carry on with your fantabulous work. I realy appreciate. A Person like you can uplift the popularity and knowledge of the linux operating system

    • http://www.linuxnix.com Surendra

      This really helps us to improve our posts and work with more standards

      Thanks,
      Surendra.

  • Ewq

    shanmugam is
     

email newsletter

Redhat Flagship dist

Redhat announced that they are going to release RHEL7 by ...

12 examples to use f

Flower brackets examples This is a small post on how to ...

7 Linux read command

read command examples read command is useful in scripts when reading ...

7 linux sort command

Linux/Unix sort command examples This is a small tutorial on how ...

How to find command

How to find command location in Linux and Unix This is ...

  • About Linux Juggernaut

    How the blog name selected? Juggernaut: * a massive inexorable force that seems to crush everything in its way ...readmore>>

  • Contact Me

    Contact us Send an Email Phone number and vCard LinkedIn profile Advertise with us
  • About Me

    Surendra Kumar Chowdary

    My name is Surendra Kumar Anne. I am from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present i work at Persistent Systems as Module Lead.   read more »