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
    What makes you think the space didn't free up (how did you measure it)?
    – roaima
    Dec 13, 2021 at 11:41
  • Hi @roaima, because my partition has 47GB free now, same as before deletion. Dec 13, 2021 at 11:44
  • Are the files part of a backup scheme - perhaps they're hard-linked elsewhere?
    – roaima
    Dec 13, 2021 at 11:46
  • 1
    Is it possible the deleted files are still being used by something? A reboot would guarantee not. Or you can run lsof | grep deleted and look to see if the pathnames are referenced, which might be a more satisfactory approach as this can confirm the issue one way or another
    – roaima
    Dec 13, 2021 at 12:05
  • 1
    if you did that on a GUI, take a look in the "Trash" directory, in case the files weren't actually deleted, but just moved there.
    – ilkkachu
    Dec 13, 2021 at 13:15

1 Answer 1


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, 2021 at 12:28
  • Hi, I tried all your solution. But my problem didn't solve. Are there any way to solve it? Dec 13, 2021 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! Dec 13, 2021 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, 2021 at 12:44
  • Hi @terdon, I had reboot my laptop several times but my problem didn't solve. Dec 13, 2021 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.