Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
baiduyixia
V2EX  ›  Linux

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

  •  
  •   baiduyixia · Nov 12, 2023 · 1504 views
    This topic created in 918 days ago, the information mentioned may be changed or developed.

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

    6 replies    2023-11-13 14:46:24 +08:00
    leaflxh
        1
    leaflxh  
       Nov 12, 2023
    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
       Nov 12, 2023
    @leaflxh 没看懂,能否可以具体指点?谢谢
    leaflxh
        3
    leaflxh  
       Nov 12, 2023
    leaflxh
        4
    leaflxh  
       Nov 12, 2023
    @leaflxh 我理解错了,inode 数量改不了,没有这个选项
    baiduyixia
        5
    baiduyixia  
    OP
       Nov 12, 2023
    @leaflxh 好吧
    julyclyde
        6
    julyclyde  
       Nov 13, 2023
    看你用了什么文件系统了。有些可以改,有些不用改,有些不能改
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5643 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 02:31 · PVG 10:31 · LAX 19:31 · JFK 22:31
    ♥ Do have faith in what you're doing.