分区工具格式化一个分区后会出现1.85G的隐藏文件
Tofloor
poster avatar
bibichuan
deepin
2019-05-17 05:27
Author
我用分区工具对一个分区进行ext4格式化,本来是82.5G的分区,格式化挂载之后,只有80G可以使用,另外显示1.82G已经被占用了,始终找不到这个1.82G的文件在哪里,我想不明白这个格式化还有啥用,不是应该抹掉全部数据吗?
Reply Favorite View the author
All Replies
avatar
bibichuan
deepin
2019-05-17 05:30
#1
这是磁盘分区莫名出现的1.82G占用
Reply View the author
avatar
bibichuan
deepin
2019-05-17 05:33
#2
另外为啥刚装的系统,什么都没放,/home分区就已经占用了3个多G了,也不知到放了些啥。怎么感觉deepin的分区很混乱,到处都有隐藏的大文件,占用了大量的磁盘空间。
Reply View the author
avatar
aida
deepin
2019-05-17 19:30
#3
By default, 5% of the filesystem blocks will be reserved for the super-user, to avoid fragmentation and "allow root-owned daemons to continue to function correctly after non-privileged processes are prevented from writing to the filesystem" (from mke2fs(8)).

For modern high-capacity disks, this is higher than necessary if the partition is used as a long-term archive or not crucial to system operations (like /home). See this email for the opinion of ext4 developer Ted Ts'o on reserved blocks.

It is generally safe to reduce the percentage of reserved blocks to free up disk space when the partition is either:

Very large (for example > 50G)
Used as long-term archive, i.e., where files will not be deleted and created very often
The -m option of ext4-related utilities allows to specify the percentage of reserved blocks.

To totally prevent reserving blocks upon filesystem creation, use:

# mkfs.ext4 -m 0 /dev/device
To reduce it to 1% afterwards, use:

# tune2fs -m 1 /dev/device
You can use findmnt(8) to find the device name:

$ findmnt /the/mount/point

这是我查到的,ext4会保留 5% 的文件空间给 root 用户
Reply View the author
avatar
bibichuan
deepin
2019-05-17 21:25
#4
谢谢,是我孤落寡闻了。
Reply View the author