<chapter id="diskssadd-16103"><title>SPARC: Adding a Disk (Tasks)</title><highlights><para>This chapter describes how to add a disk to a SPARC system.</para><para>For information on the procedures associated with adding a disk to a
SPARC system, see <olink targetptr="diskssadd-53" remap="internal">Adding a System Disk or
a Secondary Disk (Task Map)</olink>.</para><para>For overview information about disk management, see <olink targetptr="disksconcepts-29477" remap="internal">Chapter&nbsp;10, Managing Disks (Overview)</olink>.
For step-by-step instructions on adding a disk to an x86 based system, see <olink targetptr="disksxadd-38159" remap="internal">Chapter&nbsp;13, x86: Adding a Disk (Tasks)</olink>.</para>
</highlights><sect1 id="diskssadd-53" arch="sparc"><title>Adding a System Disk or a Secondary
Disk (Task Map)</title><para>The following task map identifies the procedures for adding a disk to
a SPARC based system.</para><informaltable frame="all"><tgroup cols="3" colsep="1" rowsep="1"><colspec colname="colspec6" colwidth="33*"/><colspec colname="colspec7" colwidth="33*"/><colspec colname="colspec8" colwidth="33*"/><thead><row><entry><para>Task</para>
</entry><entry><para>Description</para>
</entry><entry><para>For Instructions</para>
</entry>
</row>
</thead><tbody><row><entry rowsep="0"><para>1. Connect the disk and boot.</para>
</entry><entry rowsep="0"><para><emphasis>System Disk</emphasis></para><para>Connect the new disk and boot from a local or remote Solaris CD or DVD. </para>
</entry><entry rowsep="0"><para><olink targetptr="diskssadd-55658" remap="internal">How to Connect a System Disk and
Boot</olink></para>
</entry>
</row><row><entry rowsep="1"><para></para>
</entry><entry rowsep="1"><para><emphasis>Secondary Disk</emphasis> </para><para>Connect the new disk and perform a reconfiguration boot so that the
system will recognize the disk. </para>
</entry><entry rowsep="1"><para><olink targetptr="diskssadd-87325" remap="internal">How to Connect a Secondary Disk and
Boot</olink></para>
</entry>
</row><row><entry><para>2. Create slices and label the disk.</para>
</entry><entry><para>Create disk slices and label the disk if the disk manufacturer has not
already done so.</para>
</entry><entry><para><olink targetptr="diskssadd-43616" remap="internal">How to Create Disk Slices and Label
a Disk</olink></para>
</entry>
</row><row><entry><para>3. Create file systems.</para>
</entry><entry><para>Create UFS file systems on the disk slices by using the <command>newfs</command> command.
You must create the root (<filename>/</filename>) or <filename>/usr</filename> file
system, or both, for a system disk. </para>
</entry><entry><para><olink targetptr="diskssadd-40446" remap="internal">How to Create a UFS File System</olink></para>
</entry>
</row><row><entry><para>4. Restore file systems.</para>
</entry><entry><para>Restore the root (<filename>/</filename>) or <filename>/usr</filename> file
system, or both, on the system disk. If necessary, restore file systems on
the secondary disk. </para>
</entry><entry><para><olink targetptr="bkuprestoretasks-38055" remap="internal">Chapter&nbsp;26, Restoring
Files and File Systems (Tasks)</olink></para>
</entry>
</row><row><entry><para>5. Install boot block.</para>
</entry><entry><para><emphasis>System Disk Only.</emphasis> Install the boot block on the
root (<filename>/</filename>) file system so that the system can boot. </para>
</entry><entry><para><olink targetptr="diskssadd-43588" remap="internal">How to Install a Boot Block on a
System Disk</olink></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable><sect2 id="diskssadd-1" arch="sparc"><title>Adding a System Disk or a Secondary
Disk</title><para>A system disk contains the root (<filename>/</filename>) or <filename>/usr</filename> file
systems, or both. If the disk that contains either of these file systems becomes
damaged, you have two ways to recover:</para><itemizedlist><listitem><para>You can reinstall the entire Solaris OS.</para>
</listitem><listitem><para>Or, you can replace the system disk and restore your file
systems from a backup medium.</para>
</listitem>
</itemizedlist><para>A
secondary disk does not contain the root (<filename>/</filename>) and <filename>/usr</filename> file systems. A secondary disk usually contains space for user
files. You can add a secondary disk to a system for more disk space. Or, you
can replace a damaged secondary disk. If you replace a secondary disk on a
system, you can restore the old disk's data on the new disk.</para>
</sect2><task id="diskssadd-55658" arch="sparc"><title>How to Connect a System Disk
and Boot</title><tasksummary><para>This procedure assumes that the system is shut down.</para>
</tasksummary><procedure><step id="diskssadd-step-3"><para>Disconnect the damaged system disk from
the system.</para>
</step><step id="diskssadd-step-4"><para>Ensure that the disk you are adding has
a different target number than the other devices on the system.</para><para>Typically,
a small switch is located at the back of the disk for this purpose. </para>
</step><step id="diskssadd-step-5"><para>Connect the replacement system disk to the
system and check the physical connections.</para><para>Refer to the disk's
hardware installation guide for details.</para>
</step><step id="diskssadd-step-6"><para>Follow the instructions in the following
table, depending on whether you are booting from a local Solaris CD or DVD
or a remote Solaris CD or DVD from the network.</para><informaltable frame="topbot"><tgroup cols="2" colsep="0" rowsep="0"><colspec colname="colspec0" colwidth="50*"/><colspec colname="colspec1" colwidth="50*"/><thead><row rowsep="1"><entry><para>Boot Type</para>
</entry><entry><para>Action</para>
</entry>
</row>
</thead><tbody><row><entry><para>From a Solaris CD or DVD in a local drive</para>
</entry><entry><para>1. Make sure the Solaris Software 1 CD or the Solaris DVD is in the
drive.</para><para>2. Boot from the media to single-user mode:</para><para><literal>ok</literal>  <userinput>boot cdrom -s</userinput></para>
</entry>
</row><row><entry><para>From the network</para>
</entry><entry><para>Boot from the network to single-user mode: </para><para><literal>ok</literal> <userinput>boot net -s</userinput></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable><para>After a few minutes, the root prompt (<literal>#</literal>)
is displayed.</para>
</step>
</procedure><taskrelated-custom><title>After You Connect a System Disk and Boot ...</title><para>After you boot the system, you can create slices and a disk label on
the disk. Go to <olink targetptr="diskssadd-43616" remap="internal">How to Create Disk Slices
and Label a Disk</olink>.</para>
</taskrelated-custom>
</task><task id="diskssadd-87325" arch="sparc"><title>How to Connect a Secondary
Disk and Boot</title><tasksummary><para>If you are adding a disk with an EFI disk label, see <olink targetptr="disksconcepts-14" remap="internal">EFI Disk Label</olink> for more information.</para><para>For more information about hot-plugging devices, see <olink targetptr="devconfig2-1" remap="internal">Chapter&nbsp;6, Dynamically Configuring Devices (Tasks)</olink>.</para>
</tasksummary><procedure><step id="diskssadd-step-9"><para>Become superuser or assume an equivalent
role.</para>
</step><step performance="optional" id="diskssadd-step-10"><para>If the disk type
is unsupported by the Solaris software, add the device driver for the disk
by following the instructions included with the hardware. </para><para>For
information on creating a <filename>format.dat</filename> entry for the disk,
see <olink targetptr="disksprep-17927" remap="internal">How to Create a format.dat Entry</olink>,
if necessary.</para>
</step><step id="diskssadd-step-12"><para>Shut down the system.</para><screen># <userinput>shutdown -i0 -g</userinput><replaceable>n</replaceable> <userinput>-y</userinput></screen><variablelist><varlistentry><term><option>i0</option></term><listitem><para>Changes to run level 0, the power-down state.</para>
</listitem>
</varlistentry><varlistentry><term><option>g</option><replaceable>n</replaceable></term><listitem><para>Notifies logged-in users that they have <replaceable>n</replaceable> seconds
before the system begins to shut down. </para>
</listitem>
</varlistentry><varlistentry><term><option>y</option></term><listitem><para>Specifies that the command should run without user intervention.</para>
</listitem>
</varlistentry>
</variablelist><para>The <literal>ok</literal> prompt is displayed after the Solaris OS is
shut down.</para>
</step><step id="diskssadd-step-13"><para>Turn off the power to the system and all
external peripheral devices.</para>
</step><step id="diskssadd-step-14"><para>Ensure that the disk you are adding has
a different target number than the other devices on the system.</para><para>Typically,
a small switch is located at the back of the disk for this purpose.</para>
</step><step id="diskssadd-step-15"><para>Connect the disk to the system and check the physical
connections. </para><para>Refer to the disk's hardware installation guide
for details.</para>
</step><step id="diskssadd-step-16"><para>Turn on the power to all external peripheral
devices.</para>
</step><step id="diskssadd-step-17"><para>Turn on the power to the system.</para><para>The
system boots and displays the login prompt.</para>
</step>
</procedure><taskrelated-custom><title>After You Connect a Secondary Disk and Boot ...</title><para>After you boot the system, you can create slices and a disk label on
the disk. Go to <olink targetptr="diskssadd-43616" remap="internal">How to Create Disk Slices
and Label a Disk</olink>.</para>
</taskrelated-custom>
</task><task id="diskssadd-43616" arch="sparc"><title>How to Create Disk Slices and
Label a Disk</title><procedure><step id="diskssadd-step-20"><para>Become superuser or assume an equivalent
role.</para>
</step><step id="diskssadd-step-21"><para>Invoke the <command>format</command> utility. </para><screen># <userinput>format</userinput></screen><para>A numbered list of available disks is displayed. For more information,
see <olink targetdoc="refman1m" targetptr="format-1m" remap="external"><citerefentry><refentrytitle>format</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink>.</para>
</step><step id="diskssadd-step-22"><para>Type the number of the disk that you
want to repartition. </para><screen>Specify disk (enter its number): <replaceable>disk-number</replaceable></screen><para><replaceable>disk-number</replaceable> is the number of the disk that
you want to repartition.</para>
</step><step id="diskssadd-step-23"><para>Select the <command>partition</command> menu.</para><screen>format> <userinput>partition</userinput></screen>
</step><step id="diskssadd-step-24"><para>Display the current partition (slice) table.</para><screen>partition> <userinput>print</userinput></screen>
</step><step id="diskssadd-step-25"><para>Start the modification process. </para><screen>partition> <userinput>modify</userinput></screen>
</step><step id="diskssadd-step-26"><para>Set the disk to all free hog.</para><screen>Choose base (enter number) [0]?<userinput>1</userinput></screen><para>For more information about the free hog slice, see <olink targetptr="disksconcepts-15570" remap="internal">Using the Free Hog Slice</olink>.</para>
</step><step id="diskssadd-step-27"><para>Create a new partition table by answering <command>y</command> when prompted to continue.</para><screen>Do you wish to continue creating a new partition table based on 
above table[yes]? <userinput>y</userinput></screen>
</step><step id="diskssadd-step-28"><para>Identify the free hog partition (slice)
and the sizes of the slices when prompted.</para><para>When adding a system
disk, you must set up slices for:</para><itemizedlist><listitem><para>root (slice 0) and swap (slice 1) </para>
</listitem><listitem><para><filename>/usr</filename> (slice 6) </para>
</listitem>
</itemizedlist><para>After you identify the slices, the new partition table is displayed.</para><para>For an example of creating disk slices, see <olink targetptr="diskssadd-34" remap="internal">Example&nbsp;12&ndash;1</olink>.</para>
</step><step id="diskssadd-step-29"><para>Make the displayed partition table the
current partition table by answering <command>y</command> when prompted.</para><screen>Okay to make this the current partition table[yes]? <userinput>y</userinput></screen><para>If you do not want the current partition table and you want to change
it, answer <command>no</command> and go to <olink targetptr="diskssadd-step-25" remap="internal">Step&nbsp;6</olink>.</para>
</step><step id="diskssadd-step-30"><para>Name the partition table.</para><screen>Enter table name (remember quotes): <userinput>"</userinput><replaceable>partition-name</replaceable><userinput>"</userinput></screen><para>where <replaceable>partition-name</replaceable> is the name for the
new partition table.</para>
</step><step id="diskssadd-step-31"><para>Label the disk with the new partition table
after you have finished allocating slices on the new disk.</para><screen>Ready to label disk, continue? <userinput>yes</userinput></screen>
</step><step id="diskssadd-step-32"><para>Quit the <command>partition</command> menu.</para><screen>partition> <userinput>q</userinput></screen>
</step><step id="diskssadd-step-49"><para>Verify the disk label.</para><screen>format> <userinput>verify</userinput></screen>
</step><step id="diskssadd-step-33"><para>Exit the <command>format</command> utility.</para><screen>format> <userinput>q</userinput></screen>
</step>
</procedure><example id="diskssadd-34" arch="sparc"><title>Creating Disk Slices and Labeling a System Disk</title><para>The
following example shows the <command>format</command> utility being used to
divide a 18-Gbyte disk into three slices: one slice for the root (<filename>/</filename>)
file system, one slice for the swap area, and one slice for the <filename>/usr</filename> file
system.</para><screen># <userinput>format</userinput>
AVAILABLE DISK SELECTIONS:
       0. /dev/rdsk/c1t0d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@0,0
       1. /dev/rdsk/c1t1d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@1,0
       2. /dev/rdsk/c1t8d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@8,0
       3. /dev/rdsk/c1t9d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@9,0
Specify disk (enter its number): <userinput>0</userinput>
selecting c1t0d0
[disk formatted]
format> <userinput>partition</userinput>
partition> <userinput>print</userinput>
partition> <userinput>modify</userinput>
Select partitioning base:
	0. Current partition table (original)
	1. All Free Hog
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0               0         (0/0/0)           0
  1       swap    wu       0               0         (0/0/0)           0
  2     backup    wu       0 - 7505       16.86GB    (7506/0/0) 35368272
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0

Choose base (enter number) [0]? <userinput>1</userinput>
table based on above table[yes]? <userinput>yes</userinput>
Free Hog partition[6]? <userinput>6</userinput>
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 4gb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 4gb
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 - 1780        4.00GB    (1781/0/0)  8392072
  1       swap    wu    1781 - 3561        4.00GB    (1781/0/0)  8392072
  2     backup    wu       0 - 7505       16.86GB    (7506/0/0) 35368272
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm    3562 - 7505        8.86GB    (3944/0/0) 18584128
  7 unassigned    wm       0               0         (0/0/0)           0
 
Okay to make this the current partition table[yes]? <userinput>yes</userinput>
Enter table name (remember quotes): <userinput>"disk0"</userinput>
Ready to label disk, continue? <userinput>yes</userinput>
partition> <userinput>quit</userinput>
format> <userinput>verify</userinput>
format> <userinput>quit</userinput></screen>
</example><example id="diskssadd-36" arch="sparc"><title>Creating Disk Slices and Labeling a Secondary Disk</title><para>The following
example shows the <command>format</command> utility being used to divide a
18-Gbyte disk into one slice for the <filename>/export/home</filename> file
system.</para><screen># <userinput>format /dev/rdsk/c1*</userinput>
AVAILABLE DISK SELECTIONS:
       0. /dev/rdsk/c1t0d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@0,0
       1. /dev/rdsk/c1t1d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@1,0
       2. /dev/rdsk/c1t8d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@8,0
       3. /dev/rdsk/c1t9d0s0 &lt;SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/QLGC,isp@2,10000/sd@9,0
Specify disk (enter its number): <userinput>1</userinput>
selecting c1t1d0
[disk formatted]
format> <userinput>partition</userinput>
partition> <userinput>print</userinput>
partition> <userinput>modify</userinput>
Select partitioning base:
	0. Current partition table (original)
	1. All Free Hog
Choose base (enter number) [0]? <userinput>1</userinput>
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0               0         (0/0/0)           0
  1       swap    wu       0               0         (0/0/0)           0
  2     backup    wu       0 - 7505       16.86GB    (7506/0/0) 35368272
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0

Do you wish to continue creating a new partition
table based on above table[yes]? <userinput>y</userinput>
Free Hog partition[6]? <userinput>7</userinput>
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]: 
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]:
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0               0         (0/0/0)           0
  1       swap    wu       0               0         (0/0/0)           0
  2     backup    wu       0 - 7505       16.86GB    (7506/0/0) 35368272
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6        usr    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0 - 7505       16.86GB    (7506/0/0) 35368272
Okay to make this the current partition table[yes]? <userinput>yes</userinput>
Enter table name (remember quotes): <userinput>"home"</userinput>
Ready to label disk, continue? <userinput>y</userinput>
partition> <userinput>q</userinput>
format> <userinput>verify</userinput>
format> <userinput>q</userinput>
# </screen><para>The following example shows how to use the format utility to divide
a 1.15 terabyte disk with an EFI label into three slices.</para><screen># <userinput>format</userinput>
.
.
.
partition> <userinput>modify</userinput>
Select partitioning base:
        0. Current partition table (original)
        1. All Free Hog
Choose base (enter number) [0]? <userinput>1</userinput>
Part      Tag    Flag     First Sector          Size          Last Sector
  0       root    wm                 0            0                0    
  1        usr    wm                 0            0                0    
  2 unassigned    wm                 0            0                0    
  3 unassigned    wm                 0            0                0    
  4 unassigned    wm                 0            0                0    
  5 unassigned    wm                 0            0                0    
  6        usr    wm                 0            0                0    
  8   reserved    wm        2576924638         8.00MB           2576941021
Do you wish to continue creating a new partition
table based on above table[yes]? <userinput>y</userinput>
Free Hog partition[6]? <userinput>4</userinput>
Enter size of partition 0 [0b, 34e, 0mb, 0gb, 0tb]: 
Enter size of partition 1 [0b, 34e, 0mb, 0gb, 0tb]: 
Enter size of partition 2 [0b, 34e, 0mb, 0gb, 0tb]: <userinput>400gb</userinput>
Enter size of partition 3 [0b, 838860834e, 0mb, 0gb, 0tb]: <userinput>400gb</userinput>
Enter size of partition 5 [0b, 1677721634e, 0mb, 0gb, 0tb]: 
Enter size of partition 6 [0b, 1677721634e, 0mb, 0gb, 0tb]: 
Part      Tag    Flag     First Sector          Size          Last Sector
  0 unassigned    wm                 0            0                0    
  1 unassigned    wm                 0            0                0    
  2        usr    wm                34       400.00GB           838860833
  3        usr    wm         838860834       400.00GB           1677721633
  4        usr    wm        1677721634       428.77GB           2576924637
  5 unassigned    wm                 0            0                0    
  6 unassigned    wm                 0            0                0    
  8   reserved    wm        2576924638         8.00MB           2576941021
Ready to label disk, continue? <userinput>yes</userinput>

partition> <userinput>q</userinput></screen>
</example><taskrelated-custom><title>After You Create Disk Slices and Label a Disk ...</title><para>After you create disk slices and label the disk, you can create file
systems on the disk. Go to <olink targetptr="diskssadd-40446" remap="internal">How to Create
a UFS File System</olink>.</para>
</taskrelated-custom>
</task><task id="diskssadd-40446" arch="sparc"><title>How to Create a UFS File System</title><procedure><step id="diskssadd-step-40"><para>Become superuser or assume an equivalent
role.</para>
</step><step id="diskssadd-step-41"><para>Create a file system for each slice.</para><screen># <userinput>newfs</userinput> /dev/rdsk/c<replaceable>w</replaceable>t<replaceable>x</replaceable>d<replaceable>y</replaceable>s<replaceable>z</replaceable></screen><para>where <filename>/dev/rdsk/c</filename><replaceable>w</replaceable>t<replaceable>x</replaceable>d<replaceable>y</replaceable>s<replaceable>x</replaceable> is
the raw device for the file system to be created.</para><para>For more information
about the <command>newfs</command> command, see <olink targetptr="fscreate-96442" remap="internal">Chapter&nbsp;17, Creating UFS, TMPFS, and LOFS File Systems (Tasks)</olink> or <olink targetdoc="refman1m" targetptr="newfs-1m" remap="external"><citerefentry><refentrytitle>newfs</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink>.</para>
</step><step id="diskssadd-step-50"><para>Verify the new file system by mounting
it.</para><screen># <userinput>mount</userinput> /dev/dsk/c<replaceable>w</replaceable>t<replaceable>x</replaceable>d<replaceable>y</replaceable>s<replaceable>z</replaceable> <userinput>/mnt</userinput>
# <userinput>ls</userinput> 
lost+found</screen>
</step>
</procedure><taskrelated-custom><title>After Creating a UFS File System ...</title><itemizedlist><listitem><para><emphasis role="strong">System Disk</emphasis> &ndash; You
need to restore the root (<filename>/</filename>) and <filename>/usr</filename> file
systems on the disk.</para><itemizedlist><listitem><para>Go to <olink targetptr="bkuprestoretasks-38055" remap="internal">Chapter&nbsp;26,
Restoring Files and File Systems (Tasks)</olink>.</para>
</listitem><listitem><para>After the root (<filename>/</filename>) and <filename>/usr</filename> file
systems are restored, install the boot block. Go to <olink targetptr="diskssadd-43588" remap="internal">How to Install a Boot Block on a System Disk</olink>.</para>
</listitem>
</itemizedlist>
</listitem><listitem><para><emphasis role="strong">Secondary Disk</emphasis> &ndash;
You might need to restore file systems on the new disk. Go to <olink targetptr="bkuprestoretasks-38055" remap="internal">Chapter&nbsp;26, Restoring Files and File
Systems (Tasks)</olink>. If you are not restoring file systems on the new
disk, you are finished adding a secondary disk.</para>
</listitem><listitem><para>For information on making the file systems available to users,
see <olink targetptr="fsmount-42780" remap="internal">Chapter&nbsp;18, Mounting and Unmounting
File Systems (Tasks)</olink>.</para>
</listitem>
</itemizedlist>
</taskrelated-custom>
</task><task id="diskssadd-43588" arch="sparc"><title>How to Install a Boot Block
on a System Disk</title><procedure><step id="diskssadd-step-44"><para>Become superuser or assume an equivalent
role.</para>
</step><step id="diskssadd-step-45"><para>Install a boot block on the system disk.  </para><screen># <userinput>installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk</userinput>
<userinput>/dev/rdsk/</userinput><replaceable>cwtxdy</replaceable><userinput>s0</userinput></screen><variablelist><varlistentry><term><filename>/usr/platform/`uname -i`/lib/fs /ufs/bootblk</filename></term><listitem><para>Is the boot block code.</para>
</listitem>
</varlistentry><varlistentry><term><filename>/dev/rdsk/</filename><replaceable>cwtxdy</replaceable><filename>s0</filename></term><listitem><para>Is the raw device of the root (<filename>/</filename>) file
system.</para>
</listitem>
</varlistentry>
</variablelist><para>For more information, see <olink targetdoc="refman1m" targetptr="installboot-1m" remap="external"><citerefentry><refentrytitle>installboot</refentrytitle><manvolnum>1M</manvolnum></citerefentry></olink>.</para>
</step><step id="diskssadd-step-51"><para>Verify that the boot blocks are installed
by rebooting the system to run level 3.</para><screen># <userinput>init 6</userinput></screen>
</step>
</procedure><example id="diskssadd-47" arch="sparc"><title>Installing a Boot Block on a System Disk</title><para>The following example shows how to install the boot block on an <trademark>Ultra</trademark> 10 system. </para><screen># <userinput>installboot /usr/platform/sun4u/lib/fs/ufs/bootblk</userinput>
<userinput>/dev/rdsk/c0t0d0s0</userinput></screen>
</example>
</task>
</sect1>
</chapter>