ChorusOS 4.0 File System Administration Guide

3.2.2 How to Use disklabel

Once you have correctly specified disk information in /etc/disktab, you are ready to use disklabel.

Labelling a Disk

Caution - Caution -

The following procedure initializes the local disk, erasing all existing data. Be sure to back up existing data before proceeding.


  1. 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.

  2. 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.

  3. 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.