Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
33.  SPARC: Adding a Disk (Tasks) SPARC: Adding a System Disk or a Secondary Disk (Task Map) SPARC: How to Create Disk Slices and Label a Disk SPARC: Example--Creating Disk Slices and Labeling a Secondary Disk  Previous   Contents   Next 
   
 

Where to Go From Here

After you create disk slices and label the disk, you can create file systems on the disk. Go to "SPARC: How to Create File Systems".

SPARC: How to Create File Systems

  1. Become superuser or assume an equivalent role.

  2. Create a file system for each slice.

    # newfs /dev/rdsk/cwtxdysz

    /dev/rdsk/cwtxdysx is the raw device for the file system to be created.

    For more information about the newfs command, see Chapter 38, Creating File Systems (Tasks) or newfs(1M).

  3. Verify the new file system by mounting.

    # mount /dev/dsk/cwtxdysz /mnt
    # lslost+found

SPARC: Where to Go From Here

Add Disk Task

Action

System Disk

You need to restore the root (/) and /usr file systems on the disk. Go to Chapter 48, Restoring Files and File Systems (Tasks).

After the root (/) and /usr file systems are restored, install the boot block. Go to "SPARC: How to Install a Boot Block on a System Disk".

Secondary Disk

You might need to restore file systems on the new disk. Go to Chapter 48, Restoring Files and File Systems (Tasks).

 

If you are not restoring file systems on the new disk, you are finished adding a secondary disk. See Chapter 39, Mounting and Unmounting File Systems (Tasks) for information on making the file systems available to users.

SPARC: How to Install a Boot Block on a System Disk

  1. Become superuser or assume an equivalent role.

  2. Install a boot block on the system disk.

    # installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/cwtxdys0

    /usr/platform/`uname -i`/lib/fs /ufs/bootblk

    Is the boot block code.

    /dev/rdsk/cwtxdys0

    Is the raw device of the root (/) file system.

    For more information, see installboot(1M).

  3. Verify that the boot blocks are installed by rebooting the system to run level 3.

    # init 6

SPARC: Example--Installing a Boot Block on a System Disk

The following example shows how to install the boot block on a SPARCstation 10.

# installboot /usr/platform/sun4m/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
 
 
 
  Previous   Contents   Next