linux – ext4现有ext4分区使用哪些“功能”?

前端之家收集整理的这篇文章主要介绍了linux – ext4现有ext4分区使用哪些“功能”?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我创建ext4文件系统时,有许多“功能”,我可以启用和禁用 – 如has_journal,extent,huge_file等.有没有办法知道,在创建ext4文件系统时使用了哪些选项(在创建之后,我的意思是)?

我已经存在ext4分区(由某人创建),但即使不知道,它是否使用了日志或扩展区.

解决方法

我想你可以使用dumpe2fs实用程序来获取ext2 / etx3 / ext4 filesystme信息的转储.

例如,像这样的事情可能会:

  1. sudo dumpe2fs /dev/sda5 | more

在我的计算机上输出的开头是这样的:

  1. Last mounted on: /
  2. Filesystem UUID: 848446d9-a158-4442-905c-9a9551b0eb1a
  3. Filesystem magic number: 0xEF53
  4. Filesystem revision #: 1 (dynamic)
  5. 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
  6. Filesystem flags: signed_directory_hash
  7. Default mount options: (none)
  8. Filesystem state: clean
  9. Errors behavior: Continue
  10. Filesystem OS type: Linux
  11. Inode count: 732960
  12. Block count: 2929846
  13. Reserved block count: 146492
  14. ...

猜你在找的Linux相关文章