Linux file system superblock
2016-05-25 10:03
387 查看
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-1 Backup superblock at 32768, Group descriptors at 32769-32769 Backup superblock at 98304, Group descriptors at 98305-98305 Backup superblock at 163840, Group descriptors at 163841-163841 Backup superblock at 229376, Group descriptors at 229377-229377 Backup superblock at 294912, Group descriptors at 294913-294913
相关文章推荐
- linux下QtCreator工程文件中配置Wl,rpath参数
- linux添加开机自动启动程序
- linux nano 编辑器的 使用
- linux时间的查看与修改
- CentOS两台服务器利用scp拷贝文件
- linux系统/var/log目录下的信息详解
- Linux: vi 编辑器中文乱码
- linux的vi命令
- linux—vmare下手动编译二进制文件装vmtool
- Linux常用命令
- Unbuntu 14.4Tab键不能自动补全
- Xclock 生成
- Telnet部署与启动 windows&&linux
- linux下devicetree中惯用的of函数
- Linux FTP的安装与配置
- 常用linux高级命令
- 【VNC】Linux环境VNC服务安装、配置与使用
- Centos 如何安装Django环境
- 如何给Ubuntu linux 安装VMware Tools 工具
- 【Linux】虚拟机桥接IP固定