IT lexicon › Infra & Ops › NanoBSD

NanoBSD

Infra & Ops På svenska → Updated: 2026-11-08

A build script that turns a FreeBSD install into a firmware image for appliances meant to be switched on and then left alone.

Poul-Henning Kamp wrote NanoBSD in the early 2000s, and it ships in the FreeBSD source tree. It builds world and kernel, strips out whatever is not needed, and produces a disk image for flash media such as CompactFlash cards, where every unnecessary write wears the medium down.

The image has two system partitions and a small configuration partition. The root is mounted read-only, while /etc and /var live on memory disks populated from /cfg at boot. Upgrades go to whichever partition is idle, and if the new one fails to boot you fall back to the old — the same A/B scheme that phones and cars later made standard. Plenty of firewalls, routers and early storage boxes were built this way.

← Back to the lexicon