Basically, the most important file system of Linux is EXT2, and the information in this file system is mainly:
Superblock: Records The overall information of this file system, including the total amount of inode/block, usage, amount remaining, and file system format and related information.
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.
The data access for the Ext2 file system is an indexed file system (indexed allocation).
The reason for defragmentation is that the block that the file is written to is too discrete, and the performance of the file reads becomes poor. This can be done by defragmenting the blocks that belong to the same file.
EXT2 file system mainly has the 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 file, the block size supported in the Ext2 file system is 1KB, 2KB and 4KB three kinds.
Data such as the attributes/permissions of the Inode record file, each inode size is fixed to 128bytes, each file occupies only one inode, so the number of files the file system can create is related to the number of inode.
The actual data of the block record file of the file, and block of the directory records the comparison table of the filename and its inode number in the directory.
The log (journal) file system will have one more record area, keeping track of the main activity of the file system and speeding up system recovery time.
The Linux file system increases performance by allowing the primary storage to be cached as a large number of disk caches.
The actual connection is just one more file name connection to the inode number.
Symbolic connections are similar to Windows shortcut features.
Disk usage must be partitioned, formatted, and mounted, and the commands used are Fdisk, MKFS, and Mount respectively.
Boot automatically mount can refer to/etc/fstab settings, set up must use MOUNT-A test syntax correct no.
Linux disk and file system management