Linux File Systems
Linux File Systems
Linux File Systems
https://www.thegeekstuff.com/2011/05/ext2-ext3-ext4/
ext2, ext3 and ext4 are all filesystems created for Linux. This article explains the following:
mkfs.ext3 /dev/sda1
(or)
mke2fs –j /dev/sda1
mkfs.ext4 /dev/sda1
(or)
mke2fs -t ext4 /dev/sda1
umount /dev/sda2
tune2fs -j /dev/sda2
mount /dev/sda2 /home
Note: You really don’t need to umount and mount it, as ext2 to ext3 conversion can happen on a live
file system. But, I feel better doing the conversion offline.
umount /dev/sda2
tune2fs -O extents,uninit_bg,dir_index /dev/sda2
e2fsck -pf /dev/sda2
mount /dev/sda2 /home
Again, try all of the above commands only on a test system, where you can afford to lose all your data.
What Is A File System?
A file system is a set of rules used to decide how data is stored and fetched in
a storage device, be it a hard drive, flash drive, or something else. You can compare
the conventional way of storing data in our offices in different files to the file systems
deployed in computing.
A defined set of data called a ‘File’ is stored at a specified location in a storage device.
If the file system is kicked out of the computing world, all we will be left with is a
large chunk of unrecognizable data in our storage media.
There are many types of files systems available for different storage options like the
Disk File System, Flash File System, Tape File System, and so on. But for now, I’ll be
restricting myself with the three Disk File Systems FAT32, NTFS, and exFAT.
FAT32 surmounted the limited volume size offered by the FAT16 file system. The 32-
bit File Allocation Table was released in August 1995, with the launch of the
Windows 95 operating system. FAT32 allows you to store files of size up to 4GB and
the maximum disk size can go up to 16TB.
So, the fatty file system can’t be used to install heavy apps or store large files, that’s
why the modern Windows uses a new file system known as NTFS, for which we don’t
have to worry about the file size and disk size limits.
Almost all versions of Windows, Mac, and Linux are compatible with FAT32
filesystem.
However, their friendship didn’t last long and the two parted their ways,
consequently developing their own version of the new file system. In 1989, IBM
made HPFS which was used in the OS/2 operating system while the partnership was
still going on. Microsoft launched NTFS v1.0 and released it with Windows NT 3.1 in
1993.
NTFS v3.1 was launched with Microsoft’s Windows XP and it hasn’t been changed
much since then, although, numerous additions like partition shrinking, self-healing,
and NTFS Symbolic links have been added. Also, the implemented capacity of NTFS
file system is only 256 TB out the whopping 16 EB – 1 KB which was done with the
launch of Windows 8.
Other notable features include reparse points, sparse file support, disk usage
quotas, distributed link tracking, and file-level encryption. The NTFS file system
supports backward compatibility with the previous versions.
The NTFS file system is supported by Windows XP and later versions. Apple’s Mac
OSX provides read-only support for an NTFS-formatted drive and only a few Linux
variants are able to provide write support for NTFS.
Currently, Microsoft holds the US Patent 8321439 for Quick File Name Lookup using
Name hash. It is a method which escalates file search speed. They’ve not released a
complete specification set for the exFAT file system, for which the vendors have to
obtain a restricted license from Microsoft.
Most of the countries recognize the US Patent Law and thus, any implementation of
the exFAT file system is not possible for the vendors which intend it to be a part of an
open-source operating system or commercial software.
Launched in 2006, exFAT file system has the same 16 EB file size limit as NTFS, but it
is way lighter as it doesn’t contain many of the extra features that the latter has.
Talking about the compatibility, full read and write support is provided by Mac,
Android, and Windows operating systems. But for Linux distributions, the
appropriate software facilitates the support.
Update: Microsoft has now announced that it will make its exFAT patents available to
Linux and open source via the Open Invention Network.
Behaves as a fusion
between FAT32 and
Cross-platform Inexhaustible
NTFS by providing
Pros compatibility, limits for file and
practically unlimited
lightweight. partition size
file size and partition
size.
Did you find this comparison of NTFS, FAT32, and exFAT file systems helpful? Drop
your thoughts and feedback.