夜夜笙歌free
deepin
2025-05-26 18:43 这两者不是一个概念
Reply Like 0 View the author
这两者不是一个概念
这两者不是一个概念
上面那个是什么意思啊?不是使用量吗?
上面那个是什么意思啊?不是使用量吗?
https://bbs.deepin.org/post/254999 以前有人问过
linux 的硬盘分区程序会自动为 root 或指定的用户保留一定的磁盘空间默认是5%。可以通过 man mkfs.ext4
手册看到:
-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmenta‐
tion, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after
non-privileged processes are prevented from writing to the filesystem. The default percentage is
5%.
也就是说,ext文件系统,包括ext2、ext3、ext4都会默认预留5%的磁盘空间,留给root用户维护系统或者记录系统关键日志的时候使用(比如磁盘使用空间已经100%的情况下的处理)。
可以通过命令 tune2fs
查询到保留空间。
https://bbs.deepin.org/post/254999 以前有人问过
linux 的硬盘分区程序会自动为 root 或指定的用户保留一定的磁盘空间默认是5%。可以通过 man mkfs.ext4
手册看到:
-m reserved-blocks-percentage
Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmenta‐
tion, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after
non-privileged processes are prevented from writing to the filesystem. The default percentage is
5%.
也就是说,ext文件系统,包括ext2、ext3、ext4都会默认预留5%的磁盘空间,留给root用户维护系统或者记录系统关键日志的时候使用(比如磁盘使用空间已经100%的情况下的处理)。
可以通过命令 tune2fs
查询到保留空间。
哦哦哦,原来是这样,没想到这个还有保留部分
Popular Events
More
我这边打开文件管理器后,看到磁盘容量和在终端用命令看到的容量不一致啊。这是bug吗?具体计算逻辑是啥啊?