Summary of the file format of Linux-general Linux technology-Linux technology and application information. The following is a detailed description. 1. The hard disk is partitioned by a magnetic track. For example, 1-magnetic track is a partition and-is the second partition. The so-called cylindrical surface is a cylindrical surface composed of the same magnetic track of multiple disks. Therefore, we can also say that the partition is in the unit of cylindrical.
2. the 0th channels of a hard disk are used to store the partition information of the entire hard disk (the number to the number is the drive C, and the number to the number is the drive D, of course, C, d disks, and boot programs are not called in Linux. The content is called MBR.
3. Each partition is a file system. different partitions can be different file systems (that is, file formats) or the same file system. When a partition is formatted as ext2, it is divided into several block groups according to the partition size. Each block group is described by the group description) quick bitmap, inode bitmap, inode table, and data block.
Contents in the superblock:
-Total number of blocks and inode
-Number of unused and used inode/blocks
-Size of a block and an inode
-File System loading time, last Data Writing Time, last disk (fsck) time, and other file system information
-Valid bit value. If the file system has been loaded, this value is 0. If the file system has not been loaded, this value is 1.
[Root @ localhost ~] # Dumpe2fs/dev/sda7
Dumpe2fs 1.40.2 (12-Jul-2007)
Filesystem volume name:/boot
Last mounted on:
Filesystem UUID: 9db97e1e-11c4-4a60-bb74-5bb191aa43f1
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super
Filesystem flags: signed directory hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 26520
Block count: 105808
Reserved block count: 5290
Free blocks: 90137
Free inodes: 26488
First block: 1
Block size: 1024
Fragment size: 1024
Reservedgdt blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 2040
Inode blocks per group: 255
Filesystem created: Tue Apr 15 02:43:42 2008
Last mount time: Sat Apr 19 17:17:29 2008
Last write time: Sat Apr 19 17:17:29 2008
Mount count: 8
Maximum mount count:-1
Last checked: Tue Apr 15 02:43:42 2008
Check interval: 0 ( )
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 93f54d1c-20b6-420a-92d8-9922d3a95197
Journal backup: inode blocks
Journal size: 4114 k
Content in the group:
Group 0: (Blocks 1-8192)
Primary superblock at 1, Group descriptors at 2-2
Reserved GDT blocks at 3-258.
Block bitmap at 259 (+ 258), Inode bitmap at 260 (+ 259)
Inode table at 261-515 (+ 260)
511 free blocks, 2025 free inodes, 2 directories
Free blocks: 5484-5994
Free inodes: 16-2040
Group 1: (Blocks 8193-16384)
Backup superblock at 8193, Group descriptors at 8194-8194
Reserved GDT blocks at 8195-8450
Block bitmap at 8451 (+ 258), Inode bitmap at 8452 (+ 259)
Inode table at 8453-8707 (+ 260)
4262 free blocks, 2040 free inodes, 0 directories
Free blocks: 12123-16384
Free inodes: 2041-4080
4. the reason for disk fragmentation is that the data is deleted, and the disk will be neatly stored during the first data storage, but the deleted content will be in different locations and the size is different, therefore, the remaining space is not consecutive, which causes disk fragmentation. Disk fragments affect the storage and read speed of the disk, because the head cannot continuously read and write data at this time.
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