2

I'm slowly losing hard drive space and I don't understand why. I had 15 GB initially and now I'm down to less than 4 GB despite only installing a few programs/files. I have searched online and watched videos, and although I have been able to reclaim some of the disk space, overall the hard drive's free space continues to go down.

This is incredibly frustrating. I installed Ubuntu because I was sick of Windows 11, but even Windows does not have this bizarre behavior where the OS continuously gobbles up hard drive space, slowly pushing it down to zero. I'm afraid that if I deleted the wrong files I could wreck my OS.

karel
  • 122,292
  • 133
  • 301
  • 332

2 Answers2

3

You can use the Disk Usage Analyzer app to get a graphical view of your disk-usage. Press the Windows key, or click in the upper left corner of the screen. Write disk, and select the relvant icon.

Soren A
  • 7,191
1

It can be caused by installing packages from apt or flatpak or sanp they cache some files

For cleaning cache in each one :

Apt :

sudo apt clean
sudo apt autoclean

Flatpak :

flatpak uninstall --unused

Snap :

sudo snap set system 
refresh.retain=2
sudo snap refresh

If it did not work try du :

sudo du -sh /home/* /var/* /usr/* 2>/dev/null | sort -h

It will show you big files and folders

To look in report folder :

find /path/to/repo -type f -size +100M -exec ls -lh {} \;
No-one
  • 360