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:
disk type: [SCSI]
label name: [Samsung HVX8812]
sectors/track: [63]
…

Edit this information at your own risk because you can render your disk unbootable or your partitions unusable by changing it! Changing the drive’s physical description means you’re lying to your computer, and computers go ballistic when you lie to them about their hardware.

Modifying Existing Partitions

The m command modifies existing partitions. The disklabel tool walks you through each of the values you entered when creating the disk, offering your original values as defaults and allowing you to change them. But most of the time, it’s easier to just delete the partition and re-create it.

Entering Expert Mode

Expert mode gives the advanced user access to some rarely used options in disklabel. Most people don’t need these and find them simply clutter. (It’s not as if disklabel isn’t complicated enough already.)

To access expert mode, use the X command. You won’t immediately see all of the options available, but entering other commands will produce more options and more output.

Getting More Help

You can enter a single question mark (?) at the disklabel prompt for a brief list of all available commands. If you want more detailed help, the M command displays the disklabel(8) man page.

You’ve now installed OpenBSD. Let’s see what to do next.



[8] Yes, some of us have half-suppressed memories of i386 hardware that couldn’t boot OpenBSD from a CD, but would let you fetch the install sets from one once you had it boot from a floppy. But seriously, if your hardware is that aged and picky, please save yourself some pain. Go back to the dumpster you found that computer in. Find something more recent.

[9] Of course, the US/Michigan time zone applies only to the four counties on the west end of the Upper Peninsula. But accepting the default wouldn’t let me illustrate this, and if I have to make something up, it might as well be vaguely plausible.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.9.169