blog - git - desktop - contact

  • * *

NetBSD: Playing with disklabels

2026-09-25

Coming from DOS and Linux (and having largely ignored this on my OpenBSD systems -- yeah, shame on me), I'm not very familiar with the BSD disklabels. So let's have a look.

I'm not entirely certain if all BSDs use the exact same format and as far as I know there are differences among architectures, so let's be specific here: I'm looking at NetBSD 11 on x86_64.

I'll be running everything in a VM, so I can easily swap disks and inspect them.

To avoid conflicts with MBR systems, disklabels are stored at a different location. In my test VM, it can be found at the second sector: