Page 1 of 1
[Solved] Disk space usage
Posted: 2024-01-19 16:25
by kanyakumarirock
my /work filesystem had reached the limit of 1000G of memory in use. I then started to delete a number of large files and got the number down to about 800G but over time, it kept increasing again at a rate of about a gigabyte per minute so now it has reached 1000G again. I have tried to track down the problem using “du -cks” but did not manage to find anything out of the ordinary.
How to diagnose this?
Re: [Hardware] Memory usage
Posted: 2024-01-19 17:07
by CwF
First, get the terms right. You mean storage, not memory.
Depending on your setup, may require root.
Something is complaining, and is spamming logs.
Re: [Hardware] Memory usage
Posted: 2024-01-19 23:03
by mrmazda
If your installation is older than recent, your freespace might be lower than it could be, because you've accumulated obsolete .debs in the /var/cache/ tree. An older installation may have more space used by packages in the cache than packages that are currently installed. sudo apt clean will completely purge the downloaded package cache. This is totally unrelated to log spamming, other than both waste copious amounts of space.
To aid in searching for waste, I recommend you give ncdu a try.
Re: [Hardware] Memory usage
Posted: 2024-01-20 07:07
by NorthEast
To see where the largest files in your home directory you could run:
Re: [Hardware] Memory usage
Posted: 2024-01-20 09:23
by Dai_trying
I find "ncdu" to be most helpful in these situations, you may need to install it first but it lists folders with the sizes displayed making tracing large files and/or directories much easier.
Re: [Hardware] Disk space usage
Posted: 2024-01-22 11:28
by kanyakumarirock
Thanks everyone for the suggestions.
My main issue is : Different used disk space with du and quota.
I tried all options but could not rectify the issue. The total occupied space and summation of all subdirectories also is much less than 1000G (145G). When I try to find out my quota usage it surprisingly displays 1000G. So, still I could not find the mysterious reason of 1000G occupancy. Could you please suggest how to unfold this?
thanks
Re: [Hardware] Disk space usage
Posted: 2024-01-23 12:18
by kanyakumarirock
Please suggest/advice ways to rectify the isse
Re: [Hardware] Disk space usage
Posted: 2024-01-23 14:49
by mrmazda
kanyakumarirock wrote: 2024-01-23 12:18
Please suggest/advice ways to rectify the isse
We already did that, just not in detail. Start by identifying the locations of excess space consumption. Login in a vtty or gui terminal with root privileges, then
cd /, then
ncdu and have a look around. If ncdu is not installed, install it:
apt install ncdu. If space is unavailable to uninstall it, try
apt clean and try again to install it. I have zero experience with quota, so cannot help with its issues or any problems it causes.
Re: [Hardware] Disk space usage
Posted: 2024-01-23 15:13
by bbbhltz
I think more info about your setup is required.
Re: [Hardware] Disk space usage
Posted: 2024-01-23 16:08
by bbbhltz
Follow up:
du apparently does not count deleted files
The most frequent cause of this behaviour according to some quick forum searches is (as
@CwF said) logs
Monitoring logs with
or looking for errors in
is worth trying again.
Re: [Hardware] Disk space usage
Posted: 2024-01-23 17:36
by mrmazda
bbbhltz wrote: 2024-01-23 16:08du apparently does not count deleted files
I suppose this must refer to files moved to a DE trash container, because doing that merely hides them. It doesn't delete them. Trash must be emptied to actually get them out of the filesystem and free the space they continue to consume while in the trash.
[Hardware] [Solved] Disk space usage
Posted: 2024-10-14 13:46
by kanyakumarirock
Done