A drawing of a discarded desktop tower PC on the left, rescued from e-waste, connected by a red arrow to a large circular AI head on the right filled with geometric thoughts.
[ Hardware & Power ]7 min read

From E-Waste to AI: The Homelab Epiphany

Phase 1 · The Spark and the Scrap

A discarded 2012-era corporate desktop, a bootable USB stick, and the first step from software consumer to infrastructure operator.

Ubuntu 22.04 LTShdparmddsg_format

If you have spent two decades making design decisions and always felt walled out of the infrastructure conversation, this series is for you. It is not a tutorial. It is a chronicle. I wanted to run artificial intelligence models on hardware I owned, and I had no idea where to start. What followed was a year of rescuing e-waste, learning the command line, and building a small, sovereign computing environment in my home. We all feel the pressure to accept the cloud as the only option. I decided to find out whether that was true.

The first machine arrived as a rumour. A friend of a friend had a stack of decommissioned office desktops bound for a recycling bin, and I took one home for the cost of a coffee. It was a 2012-era corporate SFF (small form factor) desktop: a slow processor by modern standards, eight gigabytes of memory, a spinning hard drive that clicked on power-up. The previous owner had stuck an asset tag on the side. In most lives, this machine is already dead. In this one, it became the first server.

The Analogy

Think of a homelab as a woodworking shop in your garage. If you buy a finished bookshelf from a store (the equivalent of using a cloud service), you get what you pay for: a product, a warranty, and a receipt. You do not own the tools, you cannot change the timber, and you cannot extend the piece when your needs change. Someone else holds the key to the showroom.

A homelab is the workshop itself. You own the saws, the drills, and the raw stock. You learn to use the tools safely. The first shelf you make is rough, and the second one is better. The trade-off is that you have to do the work, but the freedom compounds. Nothing you build can be taken away from you by a price hike, a policy change, or a company pivot.

The Tech Translated

A server is not a magical black box with blinking lights. Technically, it is a computer that provides a service to other computers. Your phone is a server when it streams audio to your headphones. The old desktop on my kitchen table was about to become one.

The main difference between a server and a regular desktop is the interface. A server does not need a monitor, a keyboard, or a mouse for day-to-day operation. It runs “headless”: you connect to it over the network from your laptop, and the server spends all of its processing power on the job you asked it to do rather than on drawing windows and animating a cursor.

Before any of that could happen, I had to make sure the machine was genuinely mine.

The Action

A second-hand corporate machine carries ghosts. The previous owner’s files, browser history, login tokens, and sometimes their malware sit on the drive until someone actively removes them. Security researchers have documented this for years: a 2019 study of 159 used drives purchased on the open market found that 42 per cent still held sensitive data, including financial records and employee details. The fix is not the Windows “reset this PC” button. That is a refurbisher’s workflow, not a security one. The fix is a cryptographic erase at the hardware level.

I ran the erase from a live Ubuntu 22.04 LTS USB stick. Ubuntu Long Term Support releases are the boring, widely documented option, and boring is the right choice when you are still learning where the light switches are.

# Boot from a live Ubuntu USB, open a terminal, and become root.
sudo -i

# Identify the disk. /dev/sda is common for a single-drive desktop.
lsblk

# Confirm the drive supports Secure Erase and is not frozen by the BIOS.
hdparm -I /dev/sda | grep -i "security"

# Set a temporary ATA password, then trigger the manufacturer's
# built-in Secure Erase. The drive wipes itself at controller level.
hdparm --user-master u --security-set-pass p /dev/sda
hdparm --user-master u --security-erase p /dev/sda

What broke

The first drive refused. hdparm reported “security: frozen”, which means the BIOS had locked the ATA security interface at boot time to prevent malicious firmware from running the command silently. The fix is almost ceremonial: suspend the machine to RAM with systemctl suspend, then wake it up. Some BIOS implementations release the freeze across a sleep cycle. Mine did. The second attempt ran for forty-one minutes and returned the drive to factory state.

On a later machine, the Secure Erase command timed out without completing. I fell back to sg_format --format /dev/sda, which issues a SCSI format and zeroes every sector the old-fashioned way. It took nine hours. I went to bed.

There is a lesson in that patience. Infrastructure rewards people who are willing to let a slow process finish rather than reaching for a shortcut.

A short buyer’s guide for e-waste hunters

If you want to start your own workshop from discarded hardware, a few things make the difference between a rewarding first machine and a frustrating one:

  • Form factor: small form factor (SFF) or mini-tower. All-in-ones and sealed ultrabooks are difficult to upgrade and rarely worth the hassle.
  • Memory slots: prefer machines with at least two SODIMM or DIMM slots and a clear upgrade path. Eight gigabytes is enough to learn on; sixteen gigabytes makes the next two entries in this series much more pleasant.
  • Storage bays: a 3.5-inch bay plus at least one SATA port leaves room to add a proper hard drive later.
  • TPM presence: a Trusted Platform Module header or onboard chip will matter once you want to experiment with full-disk encryption or secure boot.
  • Condition of the power supply fan: if the fan is noisy or stuck, budget a replacement. A dead PSU fan on day three is a rite of passage.

You are not looking for specifications. You are looking for headroom.

The sustainability angle

The United Nations counted 62 million tonnes of e-waste generated worldwide in 2022, and only 22 per cent of it was formally collected and recycled. A 2012 corporate desktop that runs for another five years as a homelab server is 62 million tonnes with one less desktop in it. That is not a headline climate action. It is the kind of quiet, durable decision that accumulates. Tradition augmented, in the most literal sense: old iron given a new purpose.

The first boot of the wiped drive loaded a fresh, minimal Ubuntu. I logged in over the network from my laptop, closed the lid on the old desktop, and slid it under a desk. The screen went dark. The machine kept running. It has been running ever since.

That was the transition I came for. Not the blinking lights, but the quiet. The quiet of owning the tools.

Footnotes

  1. Blancco & Ontrack (2019). The Privacy for Sale Report. Analysis of 159 second-hand drives purchased from online marketplaces across four countries. Available at blancco.com. ↩

  2. Canonical’s LTS cadence is a new Long Term Support release every two years, each supported for five years (extended maintenance available for ten). See ubuntu.com/about/release-cycle. ↩

  3. UNITAR & ITU (2024). Global E-Waste Monitor 2024. International Telecommunication Union. Available at itu.int. ↩

Table of Contents