Advanced Disklabel Commands

While the basic commands should suffice to partition your disk, disklabel supports a variety of advanced commands. We’ll look at a few of them now.

Changing Basic Drive Parameters

Remember all that stuff at the top of the disklabel that shows the drive’s basic physical characteristics? You can change all that, but it’s almost never necessary. In fact, if you think doing this is a good way to solve a problem, you’re probably on the wrong track.

If you enter e, disklabel walks you through each entry on the upper part of the disklabel. The existing values are presented as defaults, allowing you to quickly walk through the variables until you reach the one you want to change:

> e Changing device parameters for /dev/rsd2c: ...

Get Absolute OpenBSD, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.