Once you have correctly specified disk information in /etc/disktab, you are ready to use disklabel.
The following procedure initializes the local disk, erasing all existing data. Be sure to back up existing data before proceeding.
Boot the target system with a system image that supports the hardware you want to label and that includes the special files needed to access that hardware.
Update the disk label on the device, using disklabel as follows:
host% rsh target arun /bin/disklabel -w -r device label name |
where device is an abbreviated form of the device name such as sd0, label is the label found in /etc/disktab and name is an optional string identifier up to sixteen characters long with no whitespace.
Check that the disk label is correctly updated, using disklabel as follows:
host% rsh target arun /bin/disklabel -r device |
where device is an abbreviated form of the device name such as sd0.