| Previous | Table of Contents | Next | 
Follow these steps to put a defect list on a new disk, format, partition, and label it:
CAUTION! You must format the disk after you add the defect list. Any data on the disk will be destroyed by formatting. If the disk is not new, be sure the data is backed up before you proceed. See Chapter 4, "Administering File Systems," for complete information on how to back up and restore file systems.
   AVAILABLE DISK SELECTIONS:
    Ø. cØtØdØ at scsibusØ slave 24
    sdØ: <SUNØ2Ø7 cyl 1254 alt 2 hd 9 sec 36>
defect> primary Extracting primary defect list . . . Extraction complete. Current Defect List updated, total of 3Ø defects.
oak% su
Password:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
        Ø. sdØ at espØ slave 24
           sdØ: <SUNØ2Ø7 cyl 1254 alt 2 hd 9 sec 36>
        1. sd2 at espØ slave 16
           sd2: <SUNØ2Ø7 cyl 1254 alt 2 hd 9 sec 36>
Specify disk (enter its number): 1
selecting cØtØdØ
[disk formatted]
FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        quit
format > defect
defect > primary
Extracting primary defect list . . . Extraction complete.
Current Defect List updated, total of 3Ø defects.
defect > quit
format > format
format> partition
PARTITION MENU:
        Ø      - change 'Ø' partition
        1      - change '1' partition
        2      - change '2' partition
        3      - change '3' partition
        4      - change '4' partition
        5      - change '5' partition
        6      - change '6' partition
        7      - change '7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        quit
partition> <partition the disk>
partition> label
partition> quit
format > quit
#
A disk must be formatted, partitioned, and labeled before you can create ufs file systems on it. If you are re-creating an existing ufs file system, unmount the file system before following these steps:
CAUTION! Be sure you have specified the correct device name for the partition before performing the next step. If you specify the wrong partition, you will erase its contents when the new file system is created.
This example creates a file system on /dev/rdsk/c0t3d0s7:
oak% su
Password:
# newfs /dev/rdsk/cØt3dØs7
newfs: construct a new file system /dev/rdsk/cØt3dØs7 (y/n)? y
/dev/rdsk/cØt3dØs7:     163944 sectors in 5Ø6 cylinders of 9 tracks,
        36 sectors 83.9MB in 32 cyl groups (16 c/g, 2.65MB/g, 1216 i/g)
super-block backups (for fsck -b #) at:
 32, 5264, 1Ø496, 15728, 2Ø96Ø, 26192, 31424, 36656, 41888,
 4712Ø, 52352, 57584, 62816, 68Ø48, 7328Ø, 78512, 82976, 882Ø8,
 9344Ø, 98672, 1Ø39Ø4, 1Ø9136, 114368, 1196ØØ, 124832, 13ØØ64, 135296,
 14Ø528, 14576Ø, 15Ø992, 156224, 161456,
#
Type mount /dev/dsk /cntndnsn /mnt and press Return. The file system is mounted on the /mnt temporary mount point. To mount the disk, specify the block device directory (/dev/dsk), not the raw device directory.
| Previous | Table of Contents | Next |