Labthrift Labthrift What to buy. What to skip. Why.

Written 28 Aug 2026. This is a how-to, not a product card.

Clear old logs when the disk is tight

Before you buy a bigger drive or a NAS, see how much room the computer diary is using, then trim old entries safely.

The computer keeps a diary of what programs said. That diary can grow for months. When the disk is tight and /var looked big, this is a safe trim. You are not buying a bigger drive, a NAS, or a monitoring box for this.

Skip until you looked at disk room

If you have not checked room yet, stop. That look is see if the computer still has room. If you want to see which folders are taking the room, that is see which folders are eating the disk. Clear leftover package downloads first if you have not: clear old package downloads when the disk is tight. From the couch, ask:

df -h

Point at the line that ends in /. If Use% is fine, skip this note. If phones and laptops cannot open the house folder, fix that first: when the house share disappeared, check the computer.

What this is

journalctl is the Debian and Ubuntu tool that reads the computer diary. The same tool can tell you how big that diary is, and trim old pages. You are keeping recent words. You are not deleting the house folder, Pi-hole, or Samba. You are not installing a log app.

See how big the diary is

SSH in from the couch, then run:

journalctl --disk-usage

You should see a line like Archived and active journals take up X. A few hundred megabytes is common on a computer that has been on for weeks. A few gigabytes is worth trimming. If the number is tiny, skip the rest of this note.

Trim old entries

Keep about two weeks of diary, and drop older pages:

sudo journalctl --vacuum-time=14d

Or cap the diary at a size you pick (200 megabytes is a sensible computer ceiling):

sudo journalctl --vacuum-size=200M

Pick one. You don't need both tonight. Recent errors stay. Months-old noise goes. Don't run random rm under /var/log.

Check again

Ask about the diary size once more:

journalctl --disk-usage

Then look at disk room:

df -h

The longer look is still see if the computer still has room. If you need to read a current error, that is when something broke, look at the log. Don't buy a NAS because old diary pages filled an old laptop.

What next

Package download cleanup stays clear old package downloads when the disk is tight. Folder hunters stay see which folders are eating the disk. A second copy is a backup of the house folder. Skip a new 4TB drive this weekend.

Skip

Sources

Debian: journalctl (--disk-usage, --vacuum-time, --vacuum-size). Ubuntu: journalctl. Official pages only. For disk room, see see if the computer still has room. For which folders are big, see see which folders are eating the disk. For leftover package downloads, see clear old package downloads when the disk is tight. For reading a current error, see when something broke, look at the log. For the login, see SSH from the couch.

Also on this topic

See if the computer still has roomAfter the house folder is working, check that the computer is not filling up. Photos stop copying when the disk is full. You don't need a NAS for this look. See which folders are eating the diskBefore you buy a bigger drive or a NAS, ask which folders are taking the room. Clear old package downloads when the disk is tightAfter weekly updates, leftover downloads can sit on the disk. Clear them safely before you buy a bigger drive or a NAS. When something broke, look at the logSSH works, but a house job doesn't. Read the program's recent log before you buy a monitoring box. A backup of the house folderA second copy of the house folder, on a USB disk you already have, or on another computer. You don't need a NAS for this. A file share on the computerA folder on the computer that the house can open from a laptop or a phone. You don't need a NAS for this.