Linux Learning Notes (iii) disk and file system management

Source: Internet
Author: User
Tags comparison table

1, basically the main Linux file system for EXT2, the file system information is mainly:

(1) Superblock: Record The overall information of this file system, including the total amount of inode/block, the amount of usage, the amount of surplus, and the format and related information of the file system.

(2) Inode: Record the attributes of a file, a file occupies an inode, while recording the block number of this file's data.

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

2. Ext2 file system data access is an indexed file system (indexed allocation).

3, the need to defragment the reason is that the file write block is too discrete, the file read performance will become very poor. This can be done by defragmenting the blocks that belong to the same file.

4, EXT2 file system mainly has the boot Sector,superblock,inode bitmap,block bitmap,inode table,data block and other six parts.

5, the data block is used to place the contents of the file files, the Ext2 file system supports the block size of 1KB, 2KB, 4KB three kinds of.

6, the Inode record file attributes/permissions and other data, each inode size is fixed to 128bytes; Each file consumes only one inode, so the number of files the file system can build is related to the number of inode.

7. The actual data of the block record file of the file, the block of the directory records the comparison table of the filename and its inode number.

8, log (joural) file system will be more than a piece of record area, at any time to record the main activities of the file system, can speed up the system recovery time.

9, the Linux file system to increase performance, will let the main memory as a large number of disk cache.

10, the actual connection is only one more file name to the inode number connection.

11, the symbolic connection is similar to the Windows shortcut function.

12, the use of the disk must be partitioned, formatted and mounted, respectively, the command used for Fdisk, MKFS and Mount.

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

Linux Learning Notes (iii) disk and file system management

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.