Linux disk and file management system

Source: Internet
Author: User

Basically Linux's Orthodox file system is EXT2, and the information in this filesystem is mainly:

Superblock: Record The overall information of this filesystem, including the total amount of inode/block, the amount of usage, the amount of surplus, and the format and relevant information of the file system;

Inode: Records the properties of a file, a file occupies an inode, and records the block number of the file's data

Block: The actual record of the contents of the file, if the file is too large, will occupy more than block.

EXT2 file system data Access as an indexed file system (indexed allocation)

The reason for defragmentation is that the block that is being written to is too discrete, and the performance of the file reads will be poorly caused. This can be done by defragmenting the blocks of the same file.

EXT2 file system mainly includes: boot sector, Superblock, Inode Bitmap, block bitmap, Inode table, data block and other six parts.

The data block is used to place the contents of the archive, the block size supported in the Ext2 file system is 1k,2k and 4K three kinds.

Inode records the attributes/permissions of the file, and other important items are: Each inode size is fixed to 128bytes; Each file occupies only one inode; therefore, the number of files that can be created by the filesystem is related to the number of inode;

The block of the file records the actual data of the file, and the block of the directory records the comparison table of the file name and its inode number at the bottom of the directory;

Log file system will be a number of pieces and admission, at any time to record the main activities of loading file system, can speed up the system recovery time;

Linux file system to increase performance, will make the main memory as a large number of disk cache;

Entity link just one more file name link to that inode number

Symbolic links are similar to Windows shortcut features.

The use of the disk must go through: Split, format and mount, the respective command is: Fdisk,mkfs,mount three instructions

Boot automatically mount can refer to/etc/fstab settings, set up must use MOUNT-A test syntax correct no

Linux disk and file management system

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.