dumpe2fs打印“ext2/ext3”文件系统的超级块和快组信息。
语法
dumpe2fs (选项) (参数)
选项
-b:打印文件系统中预留的块信息;
-ob<超级块>:指定检查文件系统时使用的超级块;
-OB<块大小>:检查文件系统时使用的指定的块大小;
-h:仅显示超级块信息;
-i:从指定的文件系统映像文件中读取文件系统信息;
-x:以16进制格式打印信息块成员。
参数
文件系统:指定要查看信息的文件系统。
实例
1 dumpe2fs /dev/sda3 >a.log 2 [root@28 ~]# head -100 a.log 3 Filesystem volume name: <none> 4 Last mounted on: / 5 Filesystem UUID: 1819c4c1-3907-4248-91f7-ae95ffbeb1d2 6 Filesystem magic number: 0xEF53 7 Filesystem revision #: 1 (dynamic) 8 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 9 Filesystem flags: signed_directory_hash 10 Default mount options: user_xattr acl 11 Filesystem state: clean 12 Errors behavior: Continue 13 Filesystem OS type: Linux 14 Inode count: 5169152 15 Block count: 20657920 16 Reserved block count: 1032896 17 Free blocks: 19931644 18 Free inodes: 5113289 19 First block: 0 20 Block size: 4096 21 Fragment size: 4096 22 Reserved GDT blocks: 1019 23 Blocks per group: 32768 24 Fragments per group: 32768 25 Inodes per group: 8192 26 Inode blocks per group: 512 27 Flex block group size: 16 28 Filesystem created: Sat Nov 26 19:11:51 2016 29 Last mount time: Sat Dec 31 00:13:10 2016 30 Last write time: Sat Nov 26 19:57:45 2016 31 Mount count: 13 32 Maximum mount count: -1 33 Last checked: Sat Nov 26 19:11:51 2016 34 Check interval: 0 (<none>) 35 Lifetime writes: 3586 MB 36 Reserved blocks uid: 0 (user root) 37 Reserved blocks gid: 0 (group root) 38 First inode: 11 39 Inode size: 256 40 Required extra isize: 28 41 Desired extra isize: 28 42 Journal inode: 8 43 Default directory hash: half_md4 44 Directory Hash Seed: b240aaed-83b3-4750-b226-09e11191e2a8 45 Journal backup: inode blocks 46 Journal features: journal_incompat_revoke 47 Journal size: 128M 48 Journal length: 32768 49 Journal sequence: 0x00000727 50 Journal start: 1 51 52 53 Group 0: (Blocks 0-32767) [ITABLE_ZEROED] 54 Checksum 0x88c7, unused inodes 8179 55 Primary superblock at 0, Group descriptors at 1-5 56 Reserved GDT blocks at 6-1024 57 Block bitmap at 1025 (+1025), Inode bitmap at 1041 (+1041) 58 Inode table at 1057-1568 (+1057) 59 23446 free blocks, 8180 free inodes, 2 directories, 8179 unused inodes 60 Free blocks: 9322-32767 61 Free inodes: 13-8192 62 Group 1: (Blocks 32768-65535) [INODE_UNINIT, ITABLE_ZEROED] 63 Checksum 0x8194, unused inodes 8192 64 Backup superblock at 32768, Group descriptors at 32769-32773 65 Reserved GDT blocks at 32774-33792 66 Block bitmap at 1026 (+4294935554), Inode bitmap at 1042 (+4294935570) 67 Inode table at 1569-2080 (+4294936097) 68 7187 free blocks, 8192 free inodes, 0 directories, 8192 unused inodes 69 Free blocks: 33823, 33872-33919, 34012-34015, 34068-34079, 34808-34815, 52344-52346, 52479-52607, 52624-52671, 52704-52707, 52881-52895, 52912-52919, 52931-52941, 52946-52991, 53212-53247, 56325, 56327-56354, 56356-56909, 56969-57855, 58144-59391, 61440-65535 70 Free inodes: 8193-16384 71 Group 2: (Blocks 65536-98303) [INODE_UNINIT, ITABLE_ZEROED] 72 Checksum 0x2a97, unused inodes 8192 73 Block bitmap at 1027 (+4294902787), Inode bitmap at 1043 (+4294902803) 74 Inode table at 2081-2592 (+4294903841) 75 25175 free blocks, 8192 free inodes, 0 directories, 8192 unused inodes 76 Free blocks: 65536-69631, 73663-75775, 77824-77833, 77907-78079, 78603-78643, 79562-98303 77 Free inodes: 16385-24576 78 Group 3: (Blocks 98304-131071) [INODE_UNINIT, ITABLE_ZEROED] 79 Checksum 0xa330, unused inodes 8192 80 Backup superblock at 98304, Group descriptors at 98305-98309 81 Reserved GDT blocks at 98310-99328 82 Block bitmap at 1028 (+4294870020), Inode bitmap at 1044 (+4294870036) 83 Inode table at 2593-3104 (+4294871585) 84 6594 free blocks, 8192 free inodes, 0 directories, 8192 unused inodes 85 Free blocks: 99338-99359, 99372-99391, 99449-99474, 99793-99866, 99894-100074, 100209-100351, 102400-106495, 106522-108543, 108550, 108563-108571 86 Free inodes: 24577-32768 87 Group 4: (Blocks 131072-163839) [INODE_UNINIT, ITABLE_ZEROED] 88 Checksum 0xfa36, unused inodes 8192 89 Block bitmap at 1029 (+4294837253), Inode bitmap at 1045 (+4294837269) 90 Inode table at 3105-3616 (+4294839329) 91 31087 free blocks, 8192 free inodes, 0 directories, 8192 unused inodes 92 Free blocks: 132753-163839 93 Free inodes: 32769-40960 94 Group 5: (Blocks 163840-196607) [INODE_UNINIT, ITABLE_ZEROED] 95 Checksum 0x0890, unused inodes 8192 96 Backup superblock at 163840, Group descriptors at 163841-163845 97 Reserved GDT blocks at 163846-164864 98 Block bitmap at 1030 (+4294804486), Inode bitmap at 1046 (+4294804502) 99 Inode table at 3617-4128 (+4294807073) 100 31743 free blocks, 8192 free inodes, 0 directories, 8192 unused inodes 101 Free blocks: 164865-196607 102 Free inodes: 40961-49152