AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 117128
Accepted
Alexey Chernikov
Alexey Chernikov
Asked: 2010-02-27 03:44:58 +0800 CST2010-02-27 03:44:58 +0800 CST 2010-02-27 03:44:58 +0800 CST

ext4 现有的 ext4 分区使用了哪些“功能”?

  • 772

当我创建 ext4 文件系统时,有很多“特性”,我可以启用和禁用它们——比如 has_journal、extent、huge_file 等等。有什么方法可以知道在创建 ext4 文件系统时使用了哪些选项(我的意思是在创建之后)?

我已经存在 ext4 分区(由某人创建),但甚至不知道它是否使用了日志或范围。

linux filesystems ext4 mkfs
  • 5 5 个回答
  • 11493 Views

5 个回答

  • Voted
  1. hlovdal
    2010-02-27T03:53:08+08:002010-02-27T03:53:08+08:00

    您可以使用 tune2fs 列出:

    $ su -c "tune2fs -l /dev/sda6" | grep features
    Password:
    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
    $
    
    • 16
  2. Best Answer
    Pascal MARTIN
    2010-02-27T03:51:25+08:002010-02-27T03:51:25+08:00

    我想您可以使用该dumpe2fs实用程序来获取 ext2/etx3/ext4 文件系统信息的转储。

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

    sudo dumpe2fs /dev/sda5 | more
    

    在我的电脑上,输出的开头如下所示:

    Last mounted on:          /
    Filesystem UUID:          848446d9-a158-4442-905c-9a9551b0eb1a
    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:    (none)
    Filesystem state:         clean
    Errors behavior:          Continue
    Filesystem OS type:       Linux
    Inode count:              732960
    Block count:              2929846
    Reserved block count:     146492
    ...
    
    • 8
  3. Otto Allmendinger
    2010-02-27T03:48:44+08:002010-02-27T03:48:44+08:00

    您可以file -s $DEVICE在我的系统上使用哪些输出:

    # /dev/dm-0: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files)
    
    • 5
  4. PT Huynh
    2020-09-17T08:37:38+08:002020-09-17T08:37:38+08:00

    仅获取所需内容的一种简单方法是使用 debugfs 查询文件系统中使用的“功能”

    sudo debugfs -R features /dev/sda5
    Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
    
    • 1
  5. Kyle Brandt
    2010-02-27T04:41:56+08:002010-02-27T04:41:56+08:00

    如果您想知道这些选项的含义,应该在内核源代码中包含的 ext4 文档中提及它们。您可以在此处在线找到文档。这应该适用于所有文件系统,如果您在服务器上有源,则典型位置是/usr/src/linux-source-2.6.27/Documentation/filesystems

    • 0

相关问题

  • 多操作系统环境的首选电子邮件客户端

  • 你最喜欢的 Linux 发行版是什么?[关闭]

  • 更改 PHP 的默认配置设置?

  • 保护新的 Ubuntu 服务器 [关闭]

  • (软)Ubuntu 7.10 上的 RAID 6,我应该迁移到 8.10 吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve