ext la gi

Each tệp tin system has its advantages and disadvantages. In this article, we will take a detailed look at the features of the EXT (Ext 2, Ext3 Ext4) Linux File System.

The Ext4 Linux File System

Contents

  1. What is the EXT tệp tin system?
  2. Evolution of the EXT tệp tin system. The changing history in versions.
  3. Features of the Ext4 tệp tin system
  4. Advantages and disadvantages of the Ext4 tệp tin system
  5. The EXT tệp tin system structure
  6. Is it worth turning off journaling
  7. How vĩ đại open an EXT drive in Windows?
  8. The best alternatives vĩ đại the EXT tệp tin system

What is the EXT tệp tin system?

The EXT (Extended File System) tệp tin system was designed especially for the Linux operating system. The main goal that the creators of EXT had in mind was vĩ đại overcome the maximum size of writable files, which at that time, was 64 MB only. Thanks vĩ đại creating a new metadata structure, the maximum possible tệp tin size was increased vĩ đại 2GB. At the same time, the maximum length of tệp tin names increased vĩ đại 255 bytes.

Bạn đang xem: ext la gi

Remy Card, the chief designer of the EXT tệp tin system, admired the UFS file system, ví some of its features were passed on vĩ đại EXT.

Even though Linux supports a large number of tệp tin systems, EXT is preferred since it was built on the Linux kernel.

Although EXT overcame the main drawbacks of the Minix file system (which was used in Linux at the time), its main drawback was the timestamps. EXT allowed only one timestamp per tệp tin. For this reason, EXT‘s development continued, and in later versions, it was constantly evolving and adding new features.

It became very popular not only among Linux users but also among Android điện thoại thông minh owners. That is why Android uses the Ext4 file system by mặc định.

Evolution of the EXT tệp tin system. The changing history in versions.

As mentioned above – although EXT overcame the limitations of the Minix file system, it still had a lot of drawbacks. That is why the development of EXT did not stop, and three more versions were added in the future.

The evolution of the EXT filesystem

Ext2

Just lượt thích the previous one, Ext2 was created by Remy Card. This tệp tin system saw the world in January 1993.

The most important innovation was that now data is written in blocks of equal length. It allowed increasing the filesystem performance significantly. Besides, the usage of data blocks allows for increasing the maximal size of the stored files. Now it was 2 TB instead of 2 GB. The tệp tin name length was still 255 bytes.

But the Ext2 had quite a few disadvantages. The biggest issue was the lack of Journaling. If a power failure happened while writing the files vĩ đại the disk, the tệp tin system would get corrupted, and it was quite hard vĩ đại recover.

In some cases, the lack of journaling was a definite plus. For example, Ext2 is faster than thở Ext3. That is why in some cases, Ext2 is still in use today. Also, the lack of journaling reduces the load on SSD drives. That is why some companies use Ext2 and use RAID as data protection.

For more details about RAID, you can read the article “RAID – what is it and how you can use it?“

One more drawback of the Ext2 file system was high data fragmentation which lead vĩ đại a performance loss. That is, during writing the tệp tin was split into several parts, and then they were written in different parts of the hard drive. Thus, the reading process took longer. The more information was stored on the disk — the lower was the tốc độ of reading/writing data.

That is why the development of the EXT tệp tin system didn’t stop at this version and in November 2001 the next version – Ext3 – appeared.

Ext3

The Ext3 file system is an improved version of Ext2. Information is still written in data blocks of the same length, and the maximum tệp tin size remains the same – 2TB.

However, it includes journaling, a technology that significantly reduces the risk of data loss.

The essence is the following – the tệp tin system marks all planned changes in the data structure. In case of power loss, the system instantly reads the information from the “journal” and the files are not lost.

Ext3 supports three levels of journaling:

  1. Journal – the tệp tin system writes both metadata and user data vĩ đại the journal, thereby virtually guaranteeing successful tệp tin system recovery in the sự kiện of a power loss. At the same time, this method most severely degrades tệp tin system performance.
  2. Writeback – first, the metadata is written vĩ đại the log, and only then, the information is written vĩ đại the tệp tin system. There is no synchronization of metadata and information in the tệp tin system. This level of journaling is the fastest since there is no need for validation. The main disadvantage however is that if something happens vĩ đại the system, you will lose the data.
  3. Ordered (ordered journaling) – the writing process is done in a certain order: first, the metadata is written vĩ đại the log, then the user data is written vĩ đại the tệp tin system. After that, the metadata is connected vĩ đại the files on the disk. In the case of a power failure, only the files written vĩ đại the disk at that moment “disappear”. The tệp tin system structure is not damaged.

The Ext3 file system became quite popular and was used until the next version – Ext4.

Ext4

Ext4 – was introduced in 2008 and is currently the latest version of the EXT file system. It uses basic principles of Ext3, but the tốc độ has been increased significantly (it’s even faster than thở in Ext2), the maximum tệp tin size has been increased vĩ đại 16 GB, tư vấn for drives up vĩ đại 1 Exabyte has been added, and much more.

There are quite a lot of innovations. Go vĩ đại the next point in this article vĩ đại read about them.

Features of the Ext4 tệp tin system

Although the Ext4 file system uses the basic concepts of Ext3, it has a lot of innovations that have made it ví popular

For first, the space-based tệp tin recording method is used in Ext4 vĩ đại increase the performance. It means that before the tệp tin is written vĩ đại the disk, the filesystem allocates the surface area, and then write the data vĩ đại the kết thúc of that one.

The Ext4 file system has added backward compatibility with Ext2 and Ext3 for the first time. For example, you can automatically mount Ext3 using the Ext4 driver.

The next point is the introduction of extents. The thing is that in old versions the tệp tin data blocks are displayed in the old way, i.e. all blocks belonging vĩ đại a certain tệp tin are displayed. This imposes some limitations when working with large files. For example, it reduces performance.

Implementing extents allows displaying a large number of consecutive blocks of information with a single descriptor. Such an approach increases tệp tin system performance by several times. The system stores only the address of the first and last data block, which corresponds vĩ đại a large tệp tin.

Reducing tệp tin fragmentation by allocating memory blocks more efficiently is one more innovation. Before writing a tệp tin, Ext4 highlights blocks that are nearby in order vĩ đại reduce the time needed vĩ đại find the right block while reading the data.

Ext4 has a delayed allocation feature, which allocates memory blocks immediately before writing files vĩ đại disk. Such a solution allows vĩ đại reduce the load on the cache memory and therefore increase performance.

Xem thêm: yêu chiều vợ nhỏ

New for Ext4 is the ability vĩ đại create an unlimited number of subdirectories without performance loss. The reason is that Ext4 uses HTree data structure, which is a version of the B-tree adapted specially for Ext4.

An innovation that improves performance and security at the same time is the implementation of journal checksums. This method constantly checks data blocks for corruption. In turn, this reduces journaling time and increases performance.

A quick tệp tin system checking is now available. The way it has been implemented is as follows: in Ext4, the inodes tables and không tính tiền block groups are marked. It means that only blocks with data will be checked during the tệp tin system kiểm tra.

A new feature is e4defrag, which allows you vĩ đại defragment both the whole disk and individual files. Fragmentation reduction not only makes the system faster but also reduces the load on the processor, etc.

As you can see there are quite a few innovations, and they greatly improve security and performance. In turn, this is exactly what users need. That’s why Ext4 is ví popular today.

Advantages and disadvantages of the Ext4 tệp tin system

Despite the introduction of new features and performance improvements, the Ext4 file system has a lot of disadvantages as well. Therefore, before you start using it on your disk, we suggest the user compare its advantages and disadvantages.

The advantages of Ext4 include the following:

  1. Journaling – the tệp tin system keeps a change journal, ví in case of failures, you can restore the tệp tin system structure without any problems;
  2. Encryption support – users can now encrypt their data without performance degradation;
  3. High stability – Ext4 tệp tin system can control its state by itself. It is done with the help of journal checksums. Also, more than thở 10 years have passed since the release of Ext4, and during that time it has proved itself as a very reliable tệp tin system;
  4. Supported by mặc định in many distributions – which means that you’ll have all the Ext4 tools you need out of the box. It is also used in memory cards in Android smartphones, which means you will not need vĩ đại install additional software vĩ đại work with điện thoại thông minh data;
  5. Active development – as of today, developers are actively working on improving Ext4. You will constantly get new opportunities for working with data;
  6. Low fragmentation – you get a very fast tệp tin system. Often lack of fragmentation is the deciding factor when it comes vĩ đại what tệp tin system vĩ đại use on flash drives and removable media;
  7. A large number of limits – during the creation of the tệp tin system, a certain number of inodes are created which are needed vĩ đại write the files. In some tệp tin systems, the number of inodes may be too small and the user will not be able vĩ đại write a new tệp tin even if there is không tính tiền space on the disk. It can happen if you have a lot of small files. Fortunately, Ext4 does not have this problem and there are enough inodes for users and server systems alike;

Unfortunately, the disadvantages of Ext4 are also quite a few. Among the most significant are:

  1. Lack of tư vấn for next-generation tệp tin system features – Ext4 does not tư vấn volume management, data deduplication, etc;
  2. Lack of checksum verification for data – this makes it impossible vĩ đại detect data corruption due vĩ đại hardware failures;
  3. Poor scalability – despite the fact that the maximum size of a partition is 1 Exabyte, in reality, if you create partitions larger than thở 100 Terabytes, the performance is very slow;
  4. Lack of tư vấn for transparent compression and transparent encryption – these technologies are still in the experimental stage;
  5. Inodes take up vĩ đại 10% of the partition space – if fewer inodes are allocated when the tệp tin system is created there is a possibility they will lập cập out and the user will not be able vĩ đại write new files even if the disk has không tính tiền space;

Now you can compare the advantages and disadvantages of the Ext4 tệp tin system and decide for yourself if you want vĩ đại use it or not.

The EXT tệp tin system structure

The structure of the EXT file system is the same as that of most UNIX file systems. Schematically, it can be shown as follows:

The EXT filesystem structure

That is, you can distinguish several main components in the EXT structure:

  1. Superblock – located at the beginning of the tệp tin system (usually in the first 1024 bytes of the partition). The system automatically creates several copies of the superblock, as it cannot function without such one. The superblock stores basic information about the tệp tin system, such as:
    1. the total number of data blocks and inodes for the entire tệp tin system;
    2. the number of không tính tiền inodes and data blocks into which files can be written;
    3. the size of the inode and data block (these data are specified when the tệp tin system is created);
    4. information about the tệp tin system – mounting time, last changes, etc.
  2. Immediately after superblock, there is a global table of block group descriptors (Group Description Table). This table describes the first and last blocks for each group of blocks, as well as information about wherein each group the inodes table begins, the beginning of data blocks, etc.
  3. Block Bitmap is a special table that specifies which blocks in a group are used and which are không tính tiền. This information is used during block information allocation. 0 means block is không tính tiền and 1 means block is occupied.
  4. Inode Bitmap – is the same that the block bitmap, but displays information about không tính tiền inodes, which can be used vĩ đại write new files.
  5. Data Blocks – the allocated physical blocks of memory where user data is stored.

The tệp tin system structure is roughly the same for Ext2, Ext3, and Ext4. Only the functionality of each version of the EXT file system differs.

Is it worth turning off journaling

The main purpose of journaling is vĩ đại ensure that the tệp tin system structure can be restored in case of failures or sudden power outages. At the same time, the journaling process requires some time and resources. Therefore, some users decide vĩ đại disable journaling to get more performance.

It is subjective, as disabling Journaling only makes sense if you have advanced data protection features (e.g. if you use RAID 5).

If you have no additional security — don’t disable Journaling as the performance gain is very small, while the risk of losing important data is several times greater.

However, if you decide vĩ đại disable Journaling, make sure vĩ đại protect your important data first by backing it up, using a RAID array, or at least using an uninterruptible power supply.

How vĩ đại open an EXT drive in Windows?

The Windows operating system natively uses the NTFS file system. Therefore, as soon as you plug in a drive formatted in EXT, Ext2, Ext3, Ext4 – you will immediately get a notification that the drive’s tệp tin system is unsupported.

The first (and best) way is vĩ đại use the RS Partition Recovery program. This program is easy vĩ đại use. All you need is vĩ đại install it on your computer. Then you can immediately connect the Ext2,3,4 drive and work with the data. You don’t even need vĩ đại reboot your computer.

Recovery Software logo

But most importantly, RS Partition Recovery allows you vĩ đại recover lost data if something happens vĩ đại the tệp tin system or with the tệp tin itself. For example, you accidentally deleted a file – no problem. You formatted the drive with important information – no big khuyến mãi. RS Partition Recovery will recover your data.

We would also lượt thích vĩ đại mention the tư vấn for

ALL modern tệp tin systems, which makes RS Partition Recovery a kind of universal tool, which should be in the arsenal of everyone who works with data.

The second way is vĩ đại install the EXT2FSD — driver that adds tư vấn for the Ext 2, 3, or 4 tệp tin system in Windows.

Installing the EXT2FSD driver

The main disadvantage of this method is that the EXT2FSD driver sometimes conflicts with the Windows drivers, and instead of the promised EXT support you may get a non-working operating system. Also, attempts vĩ đại restore Windows functionality may often lead vĩ đại the loss of important data. Not only on the C:\ drive but also on the external drive (if it was connected vĩ đại the computer at the time of the failure).

The third way is vĩ đại install a special plug-in for Total Commander called ext4tc. This method also has pitfalls. Firstly, you will need vĩ đại buy Total Commander itself and then install ext4tc plugin additionally.

In addition, sometimes after installing the ext4tc plugin, the tệp tin manager crashes. Therefore, you should be careful when manipulating important data.

We strongly recommend not vĩ đại risk important information because sometimes it costs more than thở the whole computer and programs. That is why it is better vĩ đại use the first method described above.

The best alternatives vĩ đại the EXT tệp tin system

There is more and more information on the trang web that since Ext4 does not tư vấn next-generation features – the Linux operating system will switch vĩ đại Btrfs soon. That is why many users wonder if it is worth using Ext4 or if it is better vĩ đại install an alternative tệp tin system lượt thích Btrfs or a different one.

The decision is up vĩ đại the user, but really — Ext4 does not tư vấn a lot of today’s features. So if you want vĩ đại use a time-proven filesystem but are ready vĩ đại give up a lot of modern features, your choice is Ext4. It is stable, widely supported, and works fine.

Xem thêm: bác sĩ cầm thú

If you want vĩ đại have a modern filesystem that will tư vấn all the new features, and at the same time not be afraid vĩ đại khuyến mãi with a somewhat less mature ecosystem, Btrfs is your choice. Also, you’ll be one step ahead, since most Linux distributions will be using it by mặc định shortly.

A Linux laptop

If you are looking for the best tệp tin system for your server and you are looking for reliability and minimal risk of data loss, the best alternative is the ZFS tệp tin system. There is one thing — you have vĩ đại read a lot of information and learn a lot of commands vĩ đại use it as efficiently as possible.

A trang chính server

Using or not the EXT tệp tin system is up vĩ đại everyone. We hope that after reading this article — you will be able vĩ đại make the choice that best suits your needs.