add directory docs
This commit is contained in:
83
docs/Install-Guide/install-guide-2.2.2/node74.html
Normal file
83
docs/Install-Guide/install-guide-2.2.2/node74.html
Normal file
@@ -0,0 +1,83 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
||||
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
||||
<HEAD>
|
||||
<TITLE>2.3.4 Creating the swap space</TITLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<meta name="description" value="2.3.4 Creating the swap space">
|
||||
<meta name="keywords" value="gs">
|
||||
<meta name="resource-type" value="document">
|
||||
<meta name="distribution" value="global">
|
||||
<P>
|
||||
<BR> <HR><A NAME=tex2html2640 HREF="node75.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html2638 HREF="node70.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html2632 HREF="node73.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html2642 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html2643 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
||||
<B> Next:</B> <A NAME=tex2html2641 HREF="node75.html">2.3.5 Creating the filesystems</A>
|
||||
<B>Up:</B> <A NAME=tex2html2639 HREF="node70.html">2.3 Installing the Linux </A>
|
||||
<B> Previous:</B> <A NAME=tex2html2633 HREF="node73.html">2.3.3 Creating Linux partitions</A>
|
||||
<BR> <HR> <P>
|
||||
<H2><A NAME=SECTION00434000000000000000>2.3.4 Creating the swap space</A></H2>
|
||||
<P>
|
||||
<A NAME=secinstalllinuxmkswap> </A>
|
||||
<P>
|
||||
<A NAME=1366> </A>
|
||||
<A NAME=1367> </A>
|
||||
<A NAME=1336> </A>
|
||||
<P>
|
||||
If you are planning to use a swap partition for virtual RAM, you're
|
||||
ready to prepare it for use.<A NAME=tex2html270 HREF="footnode.html#1337"><IMG ALIGN=BOTTOM ALT="gif" SRC="foot_motif.gif"></A> In Chapter <A HREF="node155.html#chapsysadmnum">4</A>
|
||||
we will discuss the preparation of a swap file in case you don't want
|
||||
to use an individual partition.
|
||||
<P>
|
||||
Many distributions require you to create and activate swap space before
|
||||
installing the software. If you have a small amount of physical RAM,
|
||||
the installation procedure may not be successful unless you
|
||||
have some amount of swap space enabled.
|
||||
<P>
|
||||
The Slackware distribution requires you to create swap space,
|
||||
before installation, if you have 4 megabytes of RAM or less.
|
||||
If this is not the case, the Slackware installation procedure
|
||||
can be used to prepare swap space automatically. If in doubt,
|
||||
go ahead and follow the procedure described here; it can't hurt.
|
||||
<P>
|
||||
The command used to prepare a swap partition is <tt>mkswap</tt>, and it takes
|
||||
the form
|
||||
<P><TT> mkswap -c <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img57.gif"> <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img58.gif"> <P></TT>
|
||||
where <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img59.gif"> is the name of the swap partition,
|
||||
and <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img60.gif"> is the size of the partition, in
|
||||
blocks.<A NAME=tex2html271 HREF="footnode.html#1368"><IMG ALIGN=BOTTOM ALT="gif" SRC="foot_motif.gif"></A>
|
||||
For example, if your swap partition is <tt>/dev/hda3</tt> and is
|
||||
10336 blocks in size, use the command
|
||||
<P><TT> # <em>mkswap --c /dev/hda3 10336</em>
|
||||
<P></TT>
|
||||
The <tt>-c</tt> option tells <tt>mkswap</tt> to check for bad blocks on the
|
||||
partition when creating the swap space.
|
||||
<P>
|
||||
If you are using multiple swap partitions, you will need to execute the
|
||||
appropriate <tt>mkswap</tt> command for each partition.
|
||||
<P>
|
||||
After formatting the swap space, you need to enable it for use by the
|
||||
system. Usually, the system automatically enables swap space at boot time.
|
||||
However, because you have not yet installed the Linux software, you need
|
||||
to enable it by hand.
|
||||
<P>
|
||||
The command to enable swap space is <tt>swapon</tt>, and it takes the form
|
||||
<P><TT> swapon <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img61.gif"> <P></TT>
|
||||
In the example above, to enable the swap space on <tt>/dev/hda3</tt>, we use
|
||||
the command
|
||||
<P><TT> # <em>swapon /dev/hda3</em>
|
||||
<P></TT>
|
||||
<P>
|
||||
<A NAME=1369> </A>
|
||||
<A NAME=1370> </A>
|
||||
<A NAME=1365> </A>
|
||||
<P>
|
||||
<BR> <HR><A NAME=tex2html2640 HREF="node75.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html2638 HREF="node70.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html2632 HREF="node73.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html2642 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html2643 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
||||
<B> Next:</B> <A NAME=tex2html2641 HREF="node75.html">2.3.5 Creating the filesystems</A>
|
||||
<B>Up:</B> <A NAME=tex2html2639 HREF="node70.html">2.3 Installing the Linux </A>
|
||||
<B> Previous:</B> <A NAME=tex2html2633 HREF="node73.html">2.3.3 Creating Linux partitions</A>
|
||||
<BR> <HR> <P>
|
||||
<BR> <HR>
|
||||
<P><ADDRESS>
|
||||
<I>Matt Welsh <BR>
|
||||
mdw@sunsite.unc.edu</I>
|
||||
</ADDRESS>
|
||||
</BODY>
|
||||
Reference in New Issue
Block a user