V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
baiduyixia
V2EX  ›  Linux

Linux 服务器系统盘的 inode 数有没有办法修改

  •  
  •   baiduyixia · 167 天前 · 909 次点击
    这是一个创建于 167 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请问,数据盘格式化即可修改,但是系统盘有没有什么办法?

    6 条回复    2023-11-13 14:46:24 +08:00
    leaflxh
        1
    leaflxh  
       167 天前
    tune2fs

    -I Change the inode size used by the file system. This requires rewriting the inode table, so it
    requires that the file system is checked for consistency first using e2fsck(8). This operation can
    also take a while and the file system can be corrupted and data lost if it is interrupted while in the
    middle of converting the file system.

    用它非格盘调整过 ext4 的保留空间,看 man 说明也能改 inode 数量

    动手前做好备份(
    baiduyixia
        2
    baiduyixia  
    OP
       167 天前
    @leaflxh 没看懂,能否可以具体指点?谢谢
    leaflxh
        3
    leaflxh  
       167 天前
    leaflxh
        4
    leaflxh  
       167 天前
    @leaflxh 我理解错了,inode 数量改不了,没有这个选项
    baiduyixia
        5
    baiduyixia  
    OP
       167 天前
    @leaflxh 好吧
    julyclyde
        6
    julyclyde  
       166 天前
    看你用了什么文件系统了。有些可以改,有些不用改,有些不能改
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   978 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:23 · PVG 03:23 · LAX 12:23 · JFK 15:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.