Linux file system superblock
来源:互联网 发布:debian centos 哪个好 编辑:程序博客网 时间:2024/05/21 13:59
Unix / Linux filesystem blocks
The blocks used for two different purpose:
- Most blocks stores user data aka files (user data).
- Some blocks in every file system store the file system’s metadata. So what the hell is a metadata?
In simple words Metadata describes the structure of the file system. Most common metadata structure are superblock, inode and directories. Following paragraphs describes each of them.
Superblock
Each file system is different and they have type like ext2, ext3 etc. Further each file system has size like 5 GB, 10 GB and status such as mount status. In short each file system has a superblock, which contains information about file system such as:
- File system type
- Size
- Status
- Information about other metadata structures
If this information lost, you are in trouble (data loss) so Linux maintains multiple redundant copies of the superblock in every file system. This is very important in many emergency situation, for example you can use backup copies to restore damaged primary super block. Following command displays primary and backup superblock location on /dev/sda3:# dumpe2fs /dev/hda3 | grep -i superblock
Output:
Primary superblock at 0, Group descriptors at 1-1Backup superblock at 32768, Group descriptors at 32769-32769Backup superblock at 98304, Group descriptors at 98305-98305Backup superblock at 163840, Group descriptors at 163841-163841Backup superblock at 229376, Group descriptors at 229377-229377Backup superblock at 294912, Group descriptors at 294913-294913
- Linux file system superblock
- Linux 文件系统的 Superblock, Inode, Dentry 和 File
- Linux 文件系统的 Superblock, Inode, Dentry 和 File
- 简单介绍Linux文件系统中superblock、inode、dentry、file
- Linux file system hierarchy
- Linux File System - Basics
- linux file system
- Embedded Linux - File System
- linux file System directory
- linux file System inode
- Linux File System浅析
- linux file system
- linux File-Handling System Calls
- 剖析 linux file system-Ext2
- linux mount ntfs file system
- Identify Linux File System Type
- linux file system brief intro
- Linux File System brief intro
- 几何画板中直角符号不带阴影的原因
- 高仿拼多多应用源码
- Android Studio 2.2 预览 - 新的UI设计师和约束布局
- linux学习顺序 - 09年旧文
- 巴士模板中开启点赞功能及房产页与维盟路由定时重启
- Linux file system superblock
- java枚举创建,定义注意事项
- Android使用EventBus
- linux 开发工具-09年旧文
- Linux中使用team方法绑定网卡
- Linux命令之dos2unix - 将DOS格式文本文件转换成UNIX格式
- Linux+qt生成和调用静态库
- jar包查找工具
- Android Studio之新建jniLibs(类似小问题)