MBR and super block in Linux

Source: Internet
Author: User
Tags what file system

MBR, 512 bytes = 446 + 64 + 2 (446 bytes -- bootProgram64 bytes -- Partition Table 2 bytes -- aa55)
MBR (Master Boot Record), which is a Chinese guide record.
The first sector of the hard disk's 0 track is called MBR, Which is 512 bytes in size, and this area can be divided into two parts. The first part is pre-boot (pre-boot zone), accounting for 446 bytes; the second part is the Partition Table partition (Partition Table), accounting for 66 bytes, which is equivalent to a small program, the function is to determine which partition is marked as an active partition, then read the start zone of that partition, and runCode. It does not belong to any operating system, nor can it be read by disk operation commands provided by the operating system. But we can use the int13h 2 function provided in the ROM-BIOS to read the content of this sector, it can also be read by the software tool norton8.0 diskedit. EXE.

Q: What file system information does a Linux super block contain?

A: The super block contains important file system information such as the I node table and the idle block table.

 

Linux super block details:

Each file in Linux is assigned a unique value, which is called an index node. the index node is stored in an index node table <inode table>, which is allocated during disk formatting. each actual disk or partition has its own index node table. an index node contains all information about the file, including the address and file type of the data on the disk. the file type includes information such as common files, directories, and special files.

Linux hard disks are organized in the following ways: boot area, superblock, and inode ), data Block (datablock), directory block (diredtory block ). the super block contains the overall information about the file system on the hard disk or partition, such as the size of the file system. The data structure behind the super block is the index node, it contains almost all information about a specific file, such as the file access permission, owner, size, Creation Time, and corresponding directory block and data block; A data block is the location where the file content is stored. however, the index node does not include the file name. The file name is placed in the directory block. the directory contains the file name and the index node number of the file.

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.