Home  >  Article  >  Operation and Maintenance  >  What is the physical structure used by linux's ext2

What is the physical structure used by linux's ext2

尊渡假赌尊渡假赌尊渡假赌
尊渡假赌尊渡假赌尊渡假赌Original
2023-06-27 13:12:171333browse

The physical structure used by Linux's ext2 mainly has three parts: 1. Boot block, which is used to store the boot program or boot loader; 2. Super block, the metadata of the file system, which contains information about the file system. All information, such as the size of the file system, block size, total number of inodes, free blocks and inodes, etc.; 3. Data blocks, where data is stored in the file system, are divided into three types: data blocks, index blocks and indirect blocks.

What is the physical structure used by linux's ext2

The operating system of this tutorial: Linux5.18.14 system, Dell G3 computer.

Linux's ext2 file system is a file system used in early Linux operating systems. It is a disk file system that uses disk-based block storage technology to organize data. In the ext2 file system, the physical structure is very important because it determines how data is stored and accessed on the disk.

The physical structure of the ext2 file system mainly has three parts: boot block, super block and data block.

1. Boot block

is used to store the boot program or boot loader. When the computer boots up, the BIOS reads the boot program or boot loader from the boot block, which further loads the operating system and kernel.

2. Super block

The metadata of the file system, which contains all information about the file system, such as the size of the file system, block size, total number of inodes, Free blocks and inodes etc. Therefore, the superblock is a key element of the ext2 file system.

3. Data block

The place where data is stored in the file system is divided into three types: data block, index block and indirect block. Data blocks store the actual data of the file, index blocks are used to access large files, and indirect blocks are used to access very large files.

In the ext2 file system, data is organized and stored in the form of blocks. A block is the smallest physical unit in a file system and usually consists of multiple sectors. The size of the block is chosen when the file system is formatted, usually 1KB, 2KB, 4KB, etc.

Each block has a unique identifier called a block number. These block numbers are stored in the superblock. The file system uses these block numbers to access and locate various data blocks.

In summary, Linux's ext2 file system uses disk-based block storage technology to organize and store data. It uses three physical structures: boot block, super block and data block to manage files and directories. Understanding these physical structures is important to understanding file system operation and performance

The above is the detailed content of What is the physical structure used by linux's ext2. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn