Linux File Systems
Difference
between Windows and Linux File System :
Some of the important
differences between Windows & Linux File Systems are as follows:-
1)Windows shows partitions
of hard drive as drive letters [for e.g. C drive, D drive]. Each file system
has its own letters.
Linux doesn't have
drive letters.Instead. all files are accessible at arbitrary directories. Everything is under root
directory. There are no files above root directory.
2)Windows uses
backslashes [C:\Users] while Linux uses forward slashes [/home/name].
3)Naming a file in
Windows is not case sensitive [FILENAME & filename are same] while naming a
file in Linux is case sensitive [FILENAME & filename are different].
4)On
Windows one cannot delete a file if it is open. But in Linux one can
delete the file even if it is open. Linux application don't
exclusively lock .
5)In
Windows when you write on a file it is directly flushed on disk, whereas
on Linux some data is stored in buffer.
List & Compare different Linux
File System :
On Linux everything is file; if its not a file then it is
process.
ext2, ext3 and ext4 are all file systems created for Linux.
Ext 2
§ Ext2 stands for second extended file system.
§ This was developed to overcome the limitation of
the original ext file system.
§ Ext2 does not have journaling feature.
§ On flash drives, usb drives, ext2 is recommended,
as it doesn’t need to do the over head of journaling.
§ Maximum individual file size can be from 16 GB to
2 TB
§ Overall ext2 file system size can be from 2 TB to
32 TB
Ext 3
§ Ext3 stands for third extended file system.
§ Starting from Linux Kernel 2.4.15 ext3 was
available.
§ The main benefit of ext3 is that it allows
journaling.
§ 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.
§ Maximum individual file size can be from 16 GB to
2 TB
§ Overall ext3 file system size can be from 2 TB to
32 TB
§ 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).
Ext 4
§ Ext 4 stands for fourth extended file
system.
§ It was introduced in 2008.
§ Starting from Linux Kernel 2.6.19 ext4 was
available.
§ Supports huge individual file size and overall
file system size.
§ Maximum individual file size can be from 16 GB to
16 TB
§ Overall maximum ext4 file system size is 1 EB
(exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).
§ Directory can contain a maximum of 64,000
subdirectories (as opposed to 32,000 in ext3)
§ You can also mount an existing ext3 fs as ext4 fs
(without having to upgrade it).
§ 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.
§ In ext4, you also have the option of turning the
journaling feature “off”.
Difference
between Windows and Linux File System :
Some of the important
differences between Windows & Linux File Systems are as follows:-
1)Windows shows partitions
of hard drive as drive letters [for e.g. C drive, D drive]. Each file system
has its own letters.
Linux doesn't have
drive letters.Instead. all files are accessible at arbitrary directories. Everything is under root
directory. There are no files above root directory.
2)Windows uses
backslashes [C:\Users] while Linux uses forward slashes [/home/name].
3)Naming a file in
Windows is not case sensitive [FILENAME & filename are same] while naming a
file in Linux is case sensitive [FILENAME & filename are different].
4)On
Windows one cannot delete a file if it is open. But in Linux one can
delete the file even if it is open. Linux application don't
exclusively lock .
5)In
Windows when you write on a file it is directly flushed on disk, whereas
on Linux some data is stored in buffer.
List & Compare different Linux File System :
On Linux everything is file; if its not a file then it is
process.
ext2, ext3 and ext4 are all file systems created for Linux.
Ext 2
§ Ext2 stands for second extended file system.
§ This was developed to overcome the limitation of
the original ext file system.
§ Ext2 does not have journaling feature.
§ On flash drives, usb drives, ext2 is recommended,
as it doesn’t need to do the over head of journaling.
§ Maximum individual file size can be from 16 GB to
2 TB
§ Overall ext2 file system size can be from 2 TB to
32 TB
Ext 3
§ Ext3 stands for third extended file system.
§ Starting from Linux Kernel 2.4.15 ext3 was
available.
§ The main benefit of ext3 is that it allows
journaling.
§ 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.
§ Maximum individual file size can be from 16 GB to
2 TB
§ Overall ext3 file system size can be from 2 TB to
32 TB
§ 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).
Ext 4
§ Ext 4 stands for fourth extended file
system.
§ It was introduced in 2008.
§ Starting from Linux Kernel 2.6.19 ext4 was
available.
§ Supports huge individual file size and overall
file system size.
§ Maximum individual file size can be from 16 GB to
16 TB
§ Overall maximum ext4 file system size is 1 EB
(exabyte). 1 EB = 1024 PB (petabyte). 1 PB = 1024 TB (terabyte).
§ Directory can contain a maximum of 64,000
subdirectories (as opposed to 32,000 in ext3)
§ You can also mount an existing ext3 fs as ext4 fs
(without having to upgrade it).
§ 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.
§ In ext4, you also have the option of turning the
journaling feature “off”.
Comments
Post a Comment