logoalt Hacker News

Harddrive Is Probably Full

33 pointsby ilrebtoday at 1:33 PM22 commentsview on HN

Comments

throw2ih020today at 6:39 PM

If you're on Windows, WizTree (https://diskanalyzer.com/) is great for figuring out what's consuming your storage space.

On Linux/macOS you can use `du` from the command line (or ask an AI to make a convenience wrapper for you).

show 5 replies
mfrotoday at 5:50 PM

I think about this problem often in life because of my tendency to procrastinate. Only the long term effects that cause me serious paranoia get any real attention (failing to meet social expectations, major health issues, large-figure finance problems). It’s absolutely necessary to define the constraints before they define you. This requires a lot of forward thinking and effort but considering how little time we get on this earth… worth it

dredmorbiustoday at 7:12 PM

"Save" is cheap. "I might need this sometime later."

Delete is expensive. "Am I positive I'll never need this again?"

As a consequence, "cheap" actions (saves) accumulate, "expensive" ones (deletes) accrue until cheap becomes expensive as space becomes tight.

Ultimately, options become:

- Find criteria for rapidly assessing what data can be deleted.

- Purchase cheap archival storage and migrate old data to that.

- A media or device crash induces loss of arbitrarily-selected data.

komadoritoday at 6:18 PM

I recently ran `df` and was surprised to see that I'd used more than half of the two terabyte SSD in my laptop. So, being apparently atypically proactive, my first action was delete all of the target directories in my Rust projects and was equally surprised to see that it freed up nearly 10% of my disk usage (~200 GB)!

show 1 reply
rahimnathwanitoday at 6:48 PM

If you're on Windows, MacOS or Linux, a great tool for interactively discovering and deleting large folders and files is dua:

https://github.com/Byron/dua-cli

If you're on MacOS and suspect a lot of space is taken by multiple copies of the same files, use fclones to turn them into APFS clones. (You can also use this on Linux, as ext4 supports hard links, but only if you're sure the duplicates won't diverge.)

kmosertoday at 6:06 PM

This is a variation of Parkinson's Law https://en.wikipedia.org/wiki/Parkinson%27s_Law: "Data expands to fill the space available for storage."

victorbjorklundtoday at 6:27 PM

My harddrive at 1tb has around the same amount of free space in % as my previous computer with just 256gb.

AKSF_Ackermanntoday at 6:25 PM

And i am wondering what do people even fill their storage with, and why do they need so much. In my case it is ~200-300 out of 1TB on 2 laptops, 37 out of 128gb on phone. And i don't even actively manage it.

show 4 replies
effnorwoodtoday at 7:49 PM

probably. wish there was a way to find out. hint: not logs or updates.

ThrowawayTestrtoday at 5:51 PM

I bought a 8tb drive just before prices exploded so I'm alright