1

I am using linux deepin 20.03 that based on debian 10.10 on my laptop. Some days before, I deleted some files (at least 60GB) from my partition with rm command. But theirs space didn't free up. Are there any way for solve this?

enter image description here

Here is my content size:

enter image description here

Here is result of df command:

enter image description here

Here is my .Trash-1000 and lost+found properties:

enter image description here

I have rebooted my laptop several times and the problem persists.

1 Answers1

0

Deleting the files will have freed up space, unless

  • they had been "hardlinks", so that these files had two (or more) paths on your file system, and deleting them just brought down that count by one, but not to zero, so the data is still there, or
  • you're using a reference linking/counting file systemyBtrfs, CIFS, NFS 4.2, OCFS2, overlayfs, or XFS and the extents in these files where used (at least) doubly before, and now are used one time less, but still used. Or,
  • maybe, you're using a file system that supports snapshots (btrfs, ZFS,…?) and have a snapshot with these (unchanged) files in it; then of course your deleted versions don't free space, as you still need the original files in your snapshot (that's the point of snapshots), or
  • most likely, judging by the number of questions about that: you're using a method to measure free space that simply doesn't work for your situation, for whatever reason. I have a tendency to not believe Linux GUI tools.
  • Also, you might have file system errors. Quite possibly, it's a good idea to sudo umount /dev/sda9; sudo fsck.ext4 -f /dev/sda9 and see what it tells you, or whether it runs through without remarks about errors.

Update: With your question edit, we know it's ext4, so I can strike out things that don't apply to you specifically.

  • Add to the list: some program has those file open and they aren't deleted yet until that program exits or closes them. – user10489 Dec 13 '21 at 12:28
  • Hi, I tried all your solution. But my problem didn't solve. Are there any way to solve it? – Mohammad Ali Amini Dec 13 '21 at 12:29
  • there's no solutions in there, all I said was "these are the possible reasons", and there's nothing to "solve" about the first reason: you're still using that data! – Marcus Müller Dec 13 '21 at 12:43
  • @MohammadAliAmini please reboot your computer and check again. If the problem persists after a reboot, edit your question and add that information. – terdon Dec 13 '21 at 12:44
  • Hi @terdon, I had reboot my laptop several times but my problem didn't solve. – Mohammad Ali Amini Dec 13 '21 at 12:47
  • this sudo umount /dev/sda9; sudo fsck.ext4 -f /dev/sda9 returned: HAKHSIN: 2225/85327872 files (12.4% non-contiguous), 311909068/341303552 blocks – Mohammad Ali Amini Dec 13 '21 at 14:05