Linux dumpe2fs命令

Linux dumpe2fs命令:查看文件系统信息。

Linux dumpe2fs命令 功能描述

使用dumpe2fs命令可以查看文件系统的相关信息,特别是超级块的信息。

Linux dumpe2fs命令 语法

dumpe2fs [选项] [设备]

命令中各选项的含义如表所示。

dumpe2fs命令选项含义

Linux dumpe2fs命令 示例



查看/dev/sda1设备的超级块信息

[root@rhel ~]# dumpe2fs -h /dev/sda1
dumpe2fs 1.41.12 (17-May-2010)
Filesystem volume name:  <none>
Last mounted on:         /boot
Filesystem UUID:         bec50cdd-090c-47ad-83d5-25328b4ab8ec
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 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:            25688
Block count:            102400
Reserved block count:    5120
Free blocks:            70259
Free inodes:            25650
First block:            1
Block size:             1024
Fragment size:          1024
Reserved GDT blocks:     256
Blocks per group:       8192
Fragments per group:     8192
Inodes per group:       1976
Inode blocks per group:  247
Flex block group size:   16
Filesystem created:      Sun Aug 18 21:25:032013
Last mount time:         Mon Aug 19 00:45:082013
Last write time:          Mon Aug 19 00:45:082013
Mount count:            2
Maximum mount count:     -1
Last checked:           Sun Aug 18 21:25:032013
Check interval:         0(<none>)
Lifetime writes:         30 MB
Reserved blocks uid:     0(user root)
Reserved blocks gid:     0(group root)
First inode:            11
Inode size:             128
Journal inode:          8
Default directory hash:  half_md4
Directory Hash Seed:     d66696fd-086f-4beb-87f0-924ac63fd65d
Journal backup:         inode blocks
Journal features:       (none)
日志大小:           4096k
Journal length:         4096
Journal sequence:       0x00000019
Journal start:          0

查看/dev/sda1分区的UUID

[root@rhel ~]# dumpe2fs /dev/sda1 |grep 'UUID'
dumpe2fs 1.41.12 (17-May-2010)
Filesystem UUID:         bec50cdd-090c-47ad-83d5-25328b4ab8ec
赞(0)
未经允许不得转载:极客笔记 » Linux dumpe2fs命令
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址