O'Reilly logo

Absolute OpenBSD, 2nd Edition by Michael W. Lucas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

DUIDs and /etc/fstab

All OpenBSD platforms use the disklabel to identify partitions and other information about a disk. When you label a disk (as we did in Chapter 3 and will do by hand later this chapter), disklabel adds a disklabel unique identifier, or DUID, to the disk label. The DUID is a unique hexadecimal number that lets OpenBSD identify a specific disk.

To find a disk’s DUID, pass the device name to disklabel and look for the duid entry:

# disklabel sd0
…
duid: 55128c3700af5491
…

The disk currently attached as sd0 has a DUID of 55128c3700af5491. Even if you physically move the disk so that it becomes sd9 or sd18, OpenBSD can use the DUID to uniquely identify this disk.

OpenBSD uses the filesystem table /etc/fstab to map filesystems on ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required