smb网络共享,在windows上看到的可用空间为0 。
Linux 上很多 ext4 分区会默认给 root 预留 5% 空间。
root@iStoreOS:~# df -Th /mnt/sata2-1 Filesystem Type Size Used Available Use% Mounted on /dev/sdb1 ext4 879.1G 859.4G 0 100% /mnt/sata2-1
可以看到这里可用空间已经显示为0%了,但是应该还有20G的剩余空间。
root@iStoreOS:~# tune2fs -l /dev/sdb1 | grep -E "Block count|Reserved block count|Block size" Block count: 234419200 Reserved block count: 11720960 Block size: 4096 root@iStoreOS:~# tune2fs -l /dev/sdb1 | grep -i reserved Reserved block count: 11720960 Reserved GDT blocks: 1024 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root)
查看保留块设置可见,预留11720960 × 4096 ≈ 48 GB
root@iStoreOS:~# tune2fs -m 0 /dev/sdb1 tune2fs 1.47.0 (5-Feb-2023) Setting reserved blocks percentage to 0% (0 blocks)
数据磁盘,完全取消预留空间即可。