Files are deleted but space is not freed

I have a 256 SSD and i had it almost full. I tried downloading a movie and it stopped in the middle with the warning that my disk was almost full. I stopped the download and deleted the torrent. When i woke up the next morning, i tried to use my notebook and noticed that the night light configuration was still on. I tried turning it off and couldn't, so i restarted my notebook.

Suddenly, i couln't boot anymore. I booted from the usb and did a boot repair. It said that my disk was almost full, so i deleted a few large movies. After that, it said that it was still full. I still couldn't boot so i tried booting in recovery mode, and it finally worked.

But now my disk analysis still says that i have 230GB of space occupied, even though when i run du -sch command it says that i have only 55GB used.

If i run df-h i get that my /dev/nvme0n1p2 is 97% full!

Sorry for my inexperience and appreciate any help, I'm trying to avoid new boot problems.

I suspect it could be that you need to remove some older kernels or /var is filled. Can you boot into recovery mode? If you can, drop to root terminal and enter:

sudo apt-get autoremove

followed by

sudo apt clean

I just did that and it didn't work

See if solution posted here helps.

If for whatever reason this does not work I would backup all your data and do a fresh install.

There may also be excessive log activity (which would indicate something else going on) or you simply have too many Flatpak packages installed, taking up space. Take a look at this thread for reference:

1 Like

Maybe a stupid question, but did you empty the trash too ?

4 Likes

Good point but if the files deleted were extra large they normally get deleted permanently. I suspect the cache is full and so won't happen as not enough space to delete. (Ironic that isn't it?)

1 Like

I suggest trying Disk Usage Analyzer (preinstalled) to have a preview of the memory usage.


When you hover over a section (which is a folder) it shows its size and subfolders names.


None of the solutions worked. When i open the disk analyzer it says I only have 27,9 GB left but after it says I only used 74,6GB. I do have many flatpacks installed but I don't understand, in the Programs app the flatpack version of the apps always has the Zorin ✓ shouldn't I be choosing that? And i searched but no apps seemed to show a .deb version but only snaps. Is that better?
Thanks everyone for your kind answers, and sorry for the delay, I had a lot of work.

When You look at Your Picture with the Disk Analyse, You see that the big Folder is Your home Folder (51,9GB). What have You in there? A lot of Movie's, Music and Picture's?

When You type in the Terminal flatpak list what Output do You get? this command shown You a List of all installed Flatpaks. And when You wrote that the Zorin Option is marked: are both Marked? I mean Flatpak and the Zorin APT Package?


This is what's in my home, nothing too big. I used to have a lot of movies, that's why the problem with my disk manager started, but until the problem with my boot started the disk analyzer was consistent with the size of my files.

This is what i get with the flatpak list, as you can see most are from zorin and intel.

This is an example of a program showing the flatpak as the zorin recommendation.

I am considering doing a fresh install, so I searched and discovered that Timeshift could save me some of the trouble of installing and configuring everything again, but it wouldn't work, as Timeshift gives me the same read of my disk and so would only bring the problem to my new install.

You can try this method:

The filling of the disk most likely is a Temporary Files folder in conjunction with Flatpak.

1 Like

When You click on the ''Flathub'' and there is a Zorin APT Package available, You can click on this Entry and then that will be installed. Look at this:

Because of Your List: Yes, the Stuff where ''Zorin'' stands is the Theme Stuff. That is okay. You have Dependencies of the Flatpaks installed that have some Influence.

Because of Your Disk Analyzer Picture: You see first the Downloads Folder. There are alone almost 20GB. Maybe You could take a Look at this.

1 Like

I would have deleted all flatpaks with these commands. Flatpaks a resource hungry and i would not even want to use them.

flatpak uninstall --unused

flatpak uninstall --all

The first command will remove all unused flatpak dependencies from your system. And the second command will remove all installed flatpak applications from your system.
After above commands you can check flatpak app list using below command.

flatpak list

1 Like

Thank you, that's pretty useful. I do find it unlikely, though, that the problem has to do with flatpaks, since i had pretty much the same apps before the boot problem, but then I had about 160gb of extra videos, so the space was avaible. So it seems to me that something broke in the OS when the limit of space was exceeded. On the night before the problem started I was streaming a movie, as I had no space to download it anymore, and this excessive use of space seems to have created a problem. I will then do the fresh install, as nothing seems to be solving the issue. Just for the record, if this thread is ever useful to investigate some issue with the OS, my Newsflash app with my RSS feed also stopped working after the boot problem, it won't open my local RSS and won't let me create a new one.

Did you setup TRIM on your SSD? Windows does this automatically, but you have to do it manually or set up a Cron job to schedule automatically. Go to this link and scroll down to read about TRIM: