<html><body>
<a href="doc101.html"><img src=../icons/next.gif alt="Next"></a>
<a href="doc000.html"><img src=../icons/up.gif alt="Up"></a>
<a href="doc099.html"><img src=../icons/previous.gif alt="Previous"></a>
<a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a>
<a href="doc143.html"><img src=../icons/index.gif alt="Index"></a>
<hr>
<h2><a name="sC.10">C.10 Partitioning</a></h2>
<title>Partitioning</title>

<a name="i751">
<a name="i752">

<p>There is one additional step required when partitioning a hard drive for
Red Hat Linux/SPARC.  You must create the third partition of every disk as type
<tt>Whole Disk</tt> spanning from cylinder 0 to the end of the disk.  It
shouldn't be used in any way, but it must exist.  You can still create
other partitions as you normally would.

<p>Note that this partition will already exist on any disk that has been used
under SunOS or Solaris.  If you are partitioning a new disk, you can use 
<tt>fdisk</tt>'s ``<tt>s</tt>'' command to create a standard disk label (which
includes the whole-disk partition).  If you don't care for the size of the
other partitions created by ``<tt>s</tt>'', you can delete those partitions
and recreate them with the sizes you want.

<p><h3><a name="sC.10.1">C.10.1 Swap Partitions and Red Hat Linux/SPARC</a></h3>
<title>Swap Partitions and Red Hat Linux/SPARC</title>

<a name="i753">
<a name="i754">

<p>Because of the way disk partitioning is done, if the first partition on a
disk starts at cylinder 0, and is used for swap space, <em>it will
overwrite the drive's partition table</em>.  This is a bad thing.  Therefore,
you have two options:

<p><ul>

<p><li>Do not use the first partition for swap.

<p><li>Use the first partition for swap, but when you create it, start it at
cylinder 1 instead of cylinder 0.

<p></ul>

<p>Either approach will save your drive's partition table.

<p><p><hr>
<a href="doc101.html"><img src=../icons/next.gif alt="Next"></a>
<a href="doc000.html"><img src=../icons/up.gif alt="Up"></a>
<a href="doc099.html"><img src=../icons/previous.gif alt="Previous"></a>
<a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a>
<a href="doc143.html"><img src=../icons/index.gif alt="Index"></a>
<hr>
</body></html>
