How do I disklabel my second hard drive?
The obvious answer is to use ‘disklabel -w -r /dev/rwd1d’. Unfortunately, this does not always put a real disklabel on the drive. The symptom is that the drive labels and can be used until the system is reset, at which point the system tries to read the label from the disk. It was never actually written to the disk, so the operation fails. There are also reports that the /usr/mdec files are corrupted in some of the distributions. If you have tried everything else, you can either load the files from one of the many archive sites that keep the /usr/mdec files around, or you can recompile them yourself. Instead of specifying the entire device path name (i.e. /dev/rsd0c), only specify the two letters of the device type and the unit number (i.e. “sd0”). Disklabel figures out the rest, and it works. For instance, the following line works for me: disklabel -w -r sd0 <drive-type> assuming of course that the boot block files are in /usr/mdec/ and the <drive-type> is in the /etc/disktab.