系统报告几乎没有可用空间,但总数不相加

系统报告几乎没有可用空间,但总数不相加

我正在运行 Debian 6.x

df -h告诉我这个:

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              19G   17G  696M  97% /
....

但这些数字加起来并不算...

# for D in $(ls -1 / | grep -vE "(home|media)"); do echo -n "$D ..........."; du -ch $D | grep total; done;
bin ...........6.0M     total
boot ...........14M     total
dev ...........256K     total
etc ...........19M      total
initrd.img ...........0 total
lib ...........96M      total
lost+found ...........16K       total
mnt ...........4.0K     total
opt ...........4.0K     total
proc ...........du: cannot access `proc/25117/task/25117/fd/3': No such file or directory
du: cannot access `proc/25117/task/25117/fdinfo/3': No such file or directory
du: cannot access `proc/25117/fd/3': No such file or directory
du: cannot access `proc/25117/fdinfo/3': No such file or directory
0       total
root ...........643M    total
sbin ...........4.7M    total
selinux ...........4.0K total
srv ...........200K     total
sys ...........0        total
tmp ...........308K     total
usr ...........4.0K     usr/src/linux-headers-2.6.32-5-686/include/config/mtdram/total
4.5G    total
var ...........677M     total
vmlinuz ...........0    total

我已经重新启动,它报告相同。我缺少什么?差距在哪里?

答案1

啊啊...

我有一个正在传播的计划备份脚本/media/external-hdd,但该脚本似乎无法检查驱动器是否已安装,导致它使用实际安装点作为目标,从而填满根文件系统。

相关内容