Understanding UNIX / Linux filesystem Superblock
admin
2023-02-03 23:00:06
0

This is second part of "Understanding UNIX/Linux file system", part I ishere. Let us take an example of 20 GB hard disk. The entire disk space subdivided into multiple file system blocks. And blocks used for what?

Unix / Linux filesystem blocks

The blocks used for two different purpose:

  1. Most blocks stores user data aka files (user data).

  2. 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/sda1 | grep -i superblock
Output:

Primary superblock at 0, Group descriptors at 1-7
Backup superblock at 32768, Group descriptors at 32769-32775
Backup superblock at 98304, Group descriptors at 98305-98311
Backup superblock at 163840, Group descriptors at 163841-163847
Backup superblock at 229376, Group descriptors at 229377-229383
Backup superblock at 294912, Group descriptors at 294913-294919
Backup superblock at 819200, Group descriptors at 819201-819207
Backup superblock at 884736, Group descriptors at 884737-884743
Backup superblock at 1605632, Group descriptors at 1605633-1605639
Backup superblock at 2654208, Group descriptors at 2654209-2654215
Backup superblock at 4096000, Group descriptors at 4096001-4096007
Backup superblock at 7962624, Group descriptors at 7962625-7962631
Backup superblock at 11239424, Group descriptors at 11239425-11239431
Backup superblock at 20480000, Group descriptors at 20480001-20480007
Backup superblock at 23887872, Group descriptors at 23887873-23887879


相关内容

热门资讯

今日重大通报“皇豪众娱辅助器?... 家人们!今天小编来为大家解答皇豪众娱透视挂怎么安装这个问题咨询软件客服徽4282891的挂在哪里买很...
终于了解“棋乐碰胡究竟有挂吗?... 家人们!今天小编来为大家解答棋乐碰胡透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪里买很...
重磅消息“永州扯胡子到底是不是... 重磅消息“永州扯胡子到底是不是挂?”(确实真的有挂)您好,永州扯胡子这个游戏其实有挂的,确实是有挂的...
今日重大通报“姜丝麻将是不是有... 今日重大通报“姜丝麻将是不是有挂?”(必胜开挂神器)您好,姜丝麻将这个游戏其实有挂的,确实是有挂的,...
玩家分享攻略“家乡大贰怎么开挂... 有 亲,根据资深记者爆料家乡大贰是可以开挂的,确实有挂(咨询软件无需打开...
今日重大发现“福建麻将有没有挂... 您好:福建麻将这款游戏可以开挂,确实是有挂的,需要了解加客服微信【9784099】很多玩家在这款游戏...
骚乱持续蔓延,伊朗高官警告特朗... 澎湃新闻记者 南博一环球网援引法新社报道称,对于美国总统特朗普威胁要就伊朗骚乱事件进行干涉一事,伊朗...
【第一财经】“AAPOKER有... 家人们!今天小编来为大家解答AAPOKER透视挂怎么安装这个问题咨询软件客服徽9784099的挂在哪...
终于明白“熊猫来了可以开挂吗?... 网上科普关于“熊猫来了有没有挂”话题很是火热,小编也是针对熊猫来了作*弊开挂的方法以及开挂对应的知识...
今日重大消息“乐酷炸/金/花怎... 网上科普关于“乐酷炸/金/花有没有挂”话题很是火热,小编也是针对乐酷炸/金/花作*弊开挂的方法以及开...