24th November 2026
We are in the ramageddon right now: RAM, GPUs and storage (SSDs and HDDs) are particularly expensive.
What you do not want to be doing is
Guess what happened to me?
This article is about what happens when you add new local storage to a computer and how you manage it.
During the summer I noticed that storage on my main Linux PC was reaching a utilisation level that suggested that I would run out of room by the end of the year. From that point onwards I started a regime of regular file tidy up and reorganisation.
You can imagine how overjoyed I felt when I noticed that one of my spinning disks had several bad blocks (thanks to Gnome Disks - I didn't know it would tell me that). I immediately broke out the SMART tools to understand the situation better but, at the end of the day, all they could tell me was that the bad blocks were unfixable.
There is no policy about how many bad blocks reach the threshold for requiring a disk to be replaced. If you have bad blocks then the disk is beginnning to fail; it may not fail immediately, you just don't know when. Swift replacement is advisable.
I'll stick my neck out a little and suggest a more detailed policy: if you have up to 3 or 4 bad blocks then make sure your back ups are running correctly and regularly, monitor the situation and plan for replacement in the next few months regardless; start storing new files/data on a different disk. If you have more than 4 but less than 15 then back up and don't write any important data, replace promptly; if you have more than 15 then the drive is toast - copy all data and stop using it ASAP.
They say "if you build more roads you get more cars". Well, in computers if you add a new bigger disk to a full system most people move a couple of directories from the old disk to the new one and then promptly ignore the mess on the old disk(s).
The problem is this: when your disk was new, fresh and empty you set out with good intentions and started with some sensibly named directories to help organise your files. As you worked, you added more files and over time the meaning of new files drifted and the system you set out with became less and less relevant. Files can now be in multiple places depending on more complicated context - the categories that were used when naming directories are not always clear cut. Sometimes duplicate files were added because it was better to keep a copy than none at all or you simply forgot that you copied a file to that other directory. Just like one of those hoarders you see on TV, you now have a psychological condition. You don't want to tidy up or delete anything because it's too much work, you are worried this is the only copy of that file, or you know where everything is in the current system and reorganising would mean learning a new system. The mess is comforting. And inefficient. And difficult to use.
I bought a big new disk to replace the failing one.
This is a very good time for me to think about how I organise/re-organise my storage.
Here is the new plan: I have an SSD, a medium sized HDD and the new big HDD. The SSD will store the OS, my home directory and what I am working on at the moment. The mid sized HDD will be medium term storage and the big HDD will be for content, datasets and longer term storage.
In the past I have used partitioning to logically divide different types of data and segregate which data should be accessible when dual booting - something I haven't done for a long time and the new system is going to be single boot. Creating several partitions does not seem to serve a purpose.
I created a single partition, using a GPT partition table, via fdisk (use the g command to create a GPT partition). Then I formatted it to use the ext4 filesystem.
I want to make sure that I am getting the most out of my SSD speed. In the past I didn't make a distinction between files stored on SSD and HDD, only that the boot OS and my home directory were on the SSD.
Now I want to make sure that my current work stays on SSD and when I finish with it I move it to HDD. I keep active development projects, scripts, binaries, active projects and documents I am editing on SSD. For code managed by git I can pull a copy from the other disk or github/gitlab and merge back when finished.
This is my current preferred layout, opinions may vary.
| Directory | Purpose |
|---|---|
| .local | software installed locally to the user (see XDG Base Directory Specification) |
| Dev | active software development |
| Documents + Logs + Notes |
active documents logs created by scripts that I manually run infrequently or OLL notes stored in simple text files |
| Downloads + Bluetooth |
recently downloaded files files received by Bluetooth |
| Moof | experimental play area |
| Projects | active projects |
| Scripts | scripts |
| Source | source code from external projects, that I link to |
| Sys | additional config |
| Temp + Working + Screenshots |
temporary, theoretically this directory can be nuked at any time files for projects in-progress screengrabs |
Notes:
docker system prunedocker volume ls to check current volumespip cache purgeconda clean --all --dry-run and then without --dry-runuv cache cleanThe layout and organisation policy described above is an iteration on what I have been doing for several years; now formalised in this article. I will try my best to stick to it and update this article again depending on how things go.