System Administration Guide: Devices and File Systems

ProcedureSPARC: 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.

    For a UFS root file system:


    # 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 a ZFS root file system:


    # installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk
    /dev/rdsk/cwtxdys0
    
    /usr/platform/`uname -i`/lib/fs/zfs/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
    

Example 12–3 SPARC: Installing a Boot Block on a System Disk

The following example shows how to install the boot block on a UFS root file system.


# installboot /usr/platform/sun4u/lib/fs/ufs/bootblk
/dev/rdsk/c0t0d0s0

The following example shows how to install the boot block on a ZFS root file system.


# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0