So, I get a popup saying my system drive is nearly full. (Understandable; it's this 256 GB SSD drive about the size of half a business card.)

I run FileLight and find there's a log file taking up about 95 GB -- so I delete that.

Still 0 GB.

I try emptying the Trash folder, but... apparently that isn't a thing when you're running Caja (MATE flle manager) under KDE. There is no right-click option to empty it.

I run FileLight again and find where the Trash folder is located. I go there and use CLI (well, okay, a Caja action I set up which uses rm) to delete the file from Trash.

Still 0 GB... though FileLight now says I'm only actually using up about half the drivespace, 123 GB. Both df and Caja say no space free, even though the 95 GB file is no longer in evidence.

· · Web · 3 · 0 · 1

@woozle might still be open even though deleted? could have to restart the service that owned it...

@woozle Weird. If I open Caja (Mint 19.0 MATE) I have Trash on the Places bar, and right-click on that has an "Empty" option. But even if I don't empty it, I can open it and right-click on an individual item and "Permanently Delete"


Deleting a file permanently does seem to affect total used disk space. (`du -h ~/.local/share` -- disk usage, human readable, for .local/share subdir, cause whole home dir or whole root was too big and took too long)

Looks like disk free space changes too.

Not sure where your trash is, with KDE involved. In my case it was ~/.local/share/.Trash/

could see if a process still is holding the file open?
lsof | grep name_of_file

Restarting the process that's holding the file open (and thus why the file is only unlinked and not fully deleted) should free up the space again.

If that fails, you could truncate the file via the file descriptor in /proc; see for details.

Next time instead of deleting the log, you might want to try to truncate it instead:
echo '' > /path/of/file

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!