Due to a program I was running in ubuntu doing a number of unnecessary tasks (not immensely important but background) I had over 300GB of unwanted files on my local disk. I used the rm command on all the files I didn't want.
Using du --max-depth=1 -h | sort -h
command I can see that my ubuntu profile is only taking up 16GB of space. The root is only taking of 2.3MB of disk space. I am using windows 11 and I would expect my ubuntu app to be using about 17GB of space (as seen installed apps).
Ubuntu, however, is still taking up 325GB of space (max 476GB, so a signifcant chunck and I basically have none left as displayed in file explorer->This PC).
This could be a few different things
- The deleted files have been put in some kind of 'trash' folder. However none exists and rm supposedly removes files and reclaims the storage immiediately
- Windows hasn't updated the file sizes
- Corrupted files
etc...
Potentially worth noting that my ubuntu crashed numerous times when trying to write files when my system space was full (I foolishly wasn't aware of how much space was being taken up and when it aborted programs I was running it closed ubuntu without a status report so I didn't know what had happened).
Ever since it has being running incredibly slowly taking over 3 minutes to load su myprofile
as well as taking up significant system resources for an application that isn't currently running.
Any assistance on what the problem may be and how to potentially fix it would be greatly appreciated. I have restarted my laptop.