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

179 天前
 baiduyixia

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

918 次点击
所在节点    Linux
6 条回复
leaflxh
179 天前
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
179 天前
@leaflxh 没看懂,能否可以具体指点?谢谢
leaflxh
179 天前
leaflxh
179 天前
@leaflxh 我理解错了,inode 数量改不了,没有这个选项
baiduyixia
179 天前
@leaflxh 好吧
julyclyde
178 天前
看你用了什么文件系统了。有些可以改,有些不用改,有些不能改

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/991260

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX