Linux. Why is there no free space?

root@dev:~# df-h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdb1 50G 29G 22G 58% /home
root@dev:~# cd /home
root@dev:/home# du --max-depth=1-h
4.0 K ./name1
16K ./name2
56K ./name3
16K ./name4
16K ./name5
16K ./name6
116K ./name7
4.4 G ./name8
4.4 G .


Why is 'df-h' gives that /home is busy 29G, and du - 4.4 G?

Virtual machine - VMware
A separate dedicated disk and promontry.

UPD. Moreover, the number of "free" space (via df) - galloping. After 15 minutes, after the command above:
root@dev:/home# df-h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdb1 50G 31G 20G 39% /home
June 10th 19 at 14:28
5 answers
June 10th 19 at 14:30
Solution
If you're interested in the case of rsync, which sends data to this server. Oddly it works, and reserves a place
June 10th 19 at 14:32
du -sh
root@dev:/home# du -sh
4.4 G .
- Kaycee.Gulgowski21 commented on June 10th 19 at 14:35
then most likely someone created the file, it has been written, deleted, but not closed the file descriptor. While the process mischief will not fall off, the place is not released. - Kasey.Cruickshank commented on June 10th 19 at 14:38
lsof look for the handle. - Perry commented on June 10th 19 at 14:41
June 10th 19 at 14:34
watch-n 10 du -sh /home/*
All smoothly. - Kaycee.Gulgowski21 commented on June 10th 19 at 14:37
And after the reboot site appears or remains at the level which was before the reboot? - Kasey.Cruickshank commented on June 10th 19 at 14:40
how it was before.
+Sometimes the place looks fine but when df - hammered, even rm-rf /home/* does not help to free up space. Max 5гигов - Perry commented on June 10th 19 at 14:43
Because it's a VM, and I thought maybe the disk is somehow sloppy decided.
Deleted it, created a new premounted.
However, the magic of finish is not lost - Kaycee.Gulgowski21 commented on June 10th 19 at 14:46
sudo apt install ncdu
cd /
sudo ncdu - Evan.Wate commented on June 10th 19 at 14:49
The memory jumps when certain users in the system, even if logged in or default user, and this happens?
In the process, maybe some beast sits? - Kaycee.Gulgowski21 commented on June 10th 19 at 14:52
June 10th 19 at 14:36
sudo apt install ncdu
cd /
sudo ncdu
Now when started all cecati,everything started to work normally... Watching.
+ncdu - same as du says - Kaycee.Gulgowski21 commented on June 10th 19 at 14:39
and by the way, the drive for the virtual machine a fixed size or dynamic? - Kasey.Cruickshank commented on June 10th 19 at 14:42
Fixed 50GB - Perry commented on June 10th 19 at 14:45
June 10th 19 at 14:38
A sparse file
Real size: du ...
Unreal size: ls, df, du --apparent-size ...
Ie du gives the actual size of the file, but df-h - holes?
Why on other ROMs there is no such garbage? - Kaycee.Gulgowski21 commented on June 10th 19 at 14:41
,
1. Yes
2. don't know what you have with other drives, but the fault is likely to be "VM - VMware" - Kasey.Cruickshank commented on June 10th 19 at 14:44

Find more questions by tags Linux