Block is a segment of data that contains data for the file, binary, dll, metadata, etc. Block is used to store information about files. Some blocks hold metadata about file system and called superblock.
块是包含文件,二进制文件,dll,元数据等数据的数据段。块用于存储有关文件的信息。 一些块包含有关文件系统的元数据,称为超级块。
超级块 (Super Block)
The superblock is a segment of metadata that contains information about the file system on a block device. Superblock provides the following information about a file, binary, dll, metadata, etc.
超级块是元数据的一部分,其中包含有关块设备上文件系统的信息。 Superblock提供以下有关文件,二进制文件,dll,元数据等的信息。
size of the file system
文件系统的大小
block size of the file system
文件系统的块大小
empty or filled blocks of the file system
文件系统的空白块或填充块
size and allocation of inode tables
inode表的大小和分配
To access a file in a file system requires access to the superblock to get information about the file. The superblock is backed up into multiple areas of a disk.
要访问文件系统中的文件,需要访问超级块以获取有关文件的信息。 将超级块备份到磁盘的多个区域中。
列出超级块和备份 (List Super Block and Backups)
We can list super block backups with dumpe2fs
command. Backup superblocks will list with the group descriptors.
我们可以使用dumpe2fs
命令列出超级块备份。 备份超级块将与组描述符一起列出。
$ sudo dumpe2fs /dev/sda1 | grep -i superblock

- The primary superblock is at 0主超级块位于0
- Backup superblocks are separated to the different locations of the disk 备份超级块分离到磁盘的不同位置
列出块的详细信息(List Details Of Blocks)
We can use dumpe2fs tool to list all block information. But this will create a lot of output.
我们可以使用dumpe2fs工具列出所有块信息。 但这会产生很多输出。
$ sudo dumpe2fs /dev/vda1

- `Last mounted on` provides the last path the given file system is mounted which is `/` in this example.“最后安装在”提供给定文件系统的最后安装路径,在此示例中为“ /”。
- `Filesystem UID` is the unique identifier about the file system “文件系统UID”是有关文件系统的唯一标识符
- `Filesystem magic number` is the number which numbers the file system type“文件系统魔数”是对文件系统类型进行编号的数字
- `Filesystem revision`文件系统修订
- `Filesystem features` are the features provided by the filesystem“文件系统功能”是文件系统提供的功能
- `Filesystem flags`文件系统标志
- `Default mount options``默认挂载选项`
- `Filesystem state` show the health of the file system which is clean in this example. “文件系统状态”显示文件系统的运行状况,本示例中该文件系统是干净的。
- `Errors behavior` will specify what will be done if some error occurs during mount “错误行为”将指定如果在挂载过程中发生一些错误将如何处理
- `Filesystem OS type` shows the file system OS which is `Linux` in this case.“文件系统OS类型”显示文件系统OS,在这种情况下为Linux。