When I checked how much space I have on my HDD I found it to be 300+ from 400 something. The thing is that I recently did a HDD recovery to get back my files and it worked, but then I decided to delete them, so I am thinking that either the deleted files are still there somewhere or something else is going on.

  • 1
    @PawelDebski imgur.com/a/XD7L0 Commented Jun 17, 2017 at 19:16
  • 1
    Can you please open Disk Usage Analyzer, select root filesystem and try to pin-down what's eating up your disk space... Commented Jun 17, 2017 at 19:42
  • 1
    @PawelDebski first : imgur.com/a/QRtGU second : imgur.com/a/m45rI third : imgur.com/a/W6R5v Commented Jun 17, 2017 at 21:37
  • 1
    Now we are almost there - I'd still drill-down into .cache and /var dirs and check. If you were thinking about re-installing Ubuntu most of the data there can be safely removed. You can also open 2 other questions like "Which parts of $HOME/.cache can be safely removed" and "... /var ..." respectively. Commented Jun 18, 2017 at 5:56
  • 1
    The /var folder often also has cache (e.g. downloaded packages). But due to the discrepancy of what 'Disk Usage Analyser' shows (24.6 gigabytes vs 444.6), you may need to run something as root to show what is using space (e.g. sudo du -m / --max-depth 1) which probably will that the /var or /tmp folder is using more than shown - or you managed to delete stuff between i.imgur.com/AmtPFmj.png and i.imgur.com/s0OUIHQ.png
    – Wilf
    Commented Jun 18, 2017 at 10:41

1 Answer 1


To search for files and folders that take up a lot of space on the hard drive - I ran the command:

root# du -h / > list-disk.txt

The file (list-disk.txt) will contain the contents of your disk with the size. Then it is already possible - to decide what to remove.

  • thank you very much i already formated my HDD and reinstalled ubuntu 17.04 i didnt have much time since i got to be somewhere with the laptop thanks for surporting i hope this becomes usefull in the future :) Commented Jun 18, 2017 at 18:37

Not the answer you're looking for? Browse other questions tagged .