Linux-Supported file systems-general Linux technology-Linux technology and application information. The following is a detailed description. What is a file system? Most of the current operating systems read data from hard disks. Each operating system uses the same hard disk in the x86 architecture. However, each operating system has its unique method of reading files. That is to say, each operating system has different methods of reading hard disks, thus creating different file systems.
For example, the default file system of Windows 98 is FAT (or FAT16), Windows 2000 has the so-called NTFS file system, and Linux's orthodox file system is ext2 (Linux second extended file system, ext2fs, Linux second extension file system ). Whether the system can read a file system depends on the "core function. Linux core must be able to understand a certain file system to read the data content of the file system. That is to say, the file system to be supported must be compiled into the core to be supported. Therefore, we can find that Windows and Linux are not allowed to use Linux hard disk data when they are installed in different partitions of the same hard disk. Why? Because the core of Windows does not know the Linux File System.
Currently, the default File System of Fedora Core IV is ext3 (Third Extended File System, Third Extended File System). It is an upgraded version of Ext2 and mainly adds the journaling function. However, ext3 supports ext2 and so on. In addition, if you want to mount the original Windows system to Linux, Linux also supports file systems such as MS-DOS, VFAT, FAT, and BSD. For Windows nt ntfs file systems, not all Linux versions are supported. For example, FC4 is not supported by default. How can we see it? The file system supported by Linux depends on whether the core is compiled. Therefore, you can go to/lib/modules/'uname-R'/kernel/fs in Linux.
Directory. If you want a file system, this core is supported. Many functions required by Linux can be completed on ext2, but ext2 lacks a log management system. If a problem occurs, the repair process will be slower. Most recently released Linux versions use ext3 or reiserfs by default.
What is a log file system? Or, what is the difference between ext3 and ext2? Ext3 is actually a log-type data record. To write data to the hard disk, ext2 writes data directly, but ext3 writes the "to start writing" information to the log record area before writing data. After the data is written, the "Write completed" information is written to the log record area. What are the advantages of this operation? The biggest benefit is data integrity and restoration ".
What is "restoring force? In the early days, if the ext2 file system experiences a power failure, the file system should check file consistency. This check process requires a complete comparison of the files in the entire partition, which is very slow and takes a long time. If it is ext3, you only need to check the "log record area" to know which files are being written when the power is down. You only need to check these files. This saves a lot of time for file checks.
So we need to select ext3. Michael K. Johnson, Chief core developer at Red Hat, said:
"Why is the conversion from ext 2 to ext3? There are four main reasons: availability, data integrity, speed, and ease of conversion ". "Availability," he said, which means that from system suspension to rapid recovery, rather than sustained e2fsck repair. The log condition of ext3 can avoid data corruption. He also pointed out: "In addition to writing a number of data more than once, ext3 is often faster than ext2, because the ext3 log enables the hard disk read head to be moved more effectively ". However, perhaps the deciding factor lies in Mr. Johnson's 4th reasons.
"We can easily change from ext2 to ext3 to obtain a strong log-type file system without reformatting ". This is correct. In order to experience the benefits of ext3, you do not need to perform long, tedious, and easy-to-generate wrong backup and reformat operations.
This information can be found at Whitepaper: Red Hat's New Journaling File System: ext3 (http: // www.redhat.com/support/wpapers/redhat/ext3. Using ext3 or other log-type file systems is advantageous. The biggest benefit is, of course, the efficiency of troubleshooting error problems is relatively high. In any case, you only need to first know this: ext2 is a regular Linux File System, and ext3 and other log file systems have replaced it in recent years.
Linux VFS (Virtual Filesystem Switch ):
After learning about file systems, we will mention how to manage these file systems at the core of Linux? In fact, the entire Linux System reads the file system through the core functions of the Virtual Filesystem Switch. That is to say, the entire Linux File System is actually managed by VFS, and users do not need to know what the file system is on each partition. VFS will take the initiative to help us read data.
This is undoubtedly a very useful feature. Why? As long as the system administrator sets the file system modules corresponding to the main file systems from the very beginning, the core VFS will take over the access mode of the file system. Users can freely use various file systems on the system without knowing what each file system is. Very convenient.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service