#命令行的方式:
先用df命令查看一下各个分区的挂载
找到是linux的ext*文件系统后,找到设备名(如/dev/*)
注意如果不是linux文件系统,使用dumpe2fs命令会报错

使用sudo dumpe2fs /dev/*即可查看到superblock内容展示(可能会非常长哦)

dumpe2fs 1.42.13 (17-May-2015)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          eea208b8-58ac-4cf0-9da1-d04ccc275c2f
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              3219456
Block count:              12856832
Reserved block count:     642841
Free blocks:              4974449
Free inodes:              2132596
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1020
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Thu Jun 27 06:28:01 2019
Last mount time:          Mon Apr 27 09:27:17 2020
Last write time:          Mon Apr 27 09:27:16 2020
Mount count:              54
Maximum mount count:      -1
Last checked:             Thu Jun 27 06:28:01 2019
Check interval:           0 (<none>)
Lifetime writes:          126 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       2673173
Default directory hash:   half_md4
Directory Hash Seed:      14900622-9129-42c1-9ecb-1812ee7e1f32
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x0006eccc
Journal start:            8227


Group 0: (Blocks 0-32767) [ITABLE_ZEROED]
  Checksum 0x9269, unused inodes 0
  Primary superblock at 0, Group descriptors at 1-4
  Reserved GDT blocks at 5-1024
  Block bitmap at 1025 (+1025), Inode bitmap at 1041 (+1041)
  Inode table at 1057-1568 (+1057)
  21073 free blocks, 0 free inodes, 565 directories
  Free blocks: 10528-10531, 10803-10819, 10834, 10839, 10844-11071, 11232-11311, 11328-11455, 11505, 12016-12095, 12129-12130, 12154-12159, 12242-12245, 12247-32767
  Free inodes: 
Group 1: (Blocks 32768-65535) [ITABLE_ZEROED]
  Checksum 0x36cb, unused inodes 0
  Backup superblock at 32768, Group descriptors at 32769-32772
  Reserved GDT blocks at 32773-33792
  Block bitmap at 1026 (bg #0 + 1026), Inode bitmap at 1042 (bg #0 + 1042)
  Inode table at 1569-2080 (bg #0 + 1569)
  0 free blocks, 273 free inodes, 879 directories
  Free blocks: 
  Free inodes: 15425-15467, 15524, 15775, 15792, 15794-15799, 15801-15805, 15808-15814, 15816, 15838-15843, 16001-16005, 16015, 16091, 16187, 16189, 16192-16384
Group 2: (Blocks 65536-98303) [ITABLE_ZEROED]
  Checksum 0xc5ea, unused inodes 7835
  Block bitmap at 1027 (bg #0 + 1027), Inode bitmap at 1043 (bg #0 + 1043)
  Inode table at 2081-2592 (bg #0 + 2081)
  0 free blocks, 8142 free inodes, 49 directories, 7835 unused inodes
  Free blocks: 
  Free inodes: 16434-16740, 16742-24576
。。。。。
Group 392: (Blocks 12845056-12856831) [INODE_UNINIT, ITABLE_ZEROED]
  Checksum 0xb7b7, unused inodes 8192
  Block bitmap at 12582920 (bg #384 + 8), Inode bitmap at 12582929 (bg #384 + 17)
  Inode table at 12587026-12587537 (bg #384 + 4114)
  11776 free blocks, 8192 free inodes, 0 directories, 8192 unused inodes
  Free blocks: 12845056-12856831
  Free inodes: 3211265-3219456

加一个grep检索出我们想要的信息,如:
sudo dumpe2fs /dev/sda1 | grep -i "Block size"

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐