View | Details | Raw Unified | Return to bug 164920 | Differences between
and this patch

Collapse All | Expand All

(-)en_US.ISO8859-1/books/handbook/config/chapter.sgml (-8 / +30 lines)
Lines 2390-2404 Link Here
2390
      <xref linkend="swap-encrypting"> of the Handbook.</para>
2390
      <xref linkend="swap-encrypting"> of the Handbook.</para>
2391
2391
2392
    <sect2 id="new-drive-swap">
2392
    <sect2 id="new-drive-swap">
2393
      <title>Swap on a New Hard Drive</title>
2393
      <title>Swap on a New or Existing Hard Drive</title>
2394
2394
2395
      <para>The best way to add swap, of course, is to use this as an
2395
      <para>The best way, and the way that gives most performance, is to add
2396
	excuse to add another hard drive.  You can always use another
2396
	a new swap partition on an existing or new hard drive.  How to set up
2397
	hard drive, after all.  If you can do this, go reread the
2397
	partitions and harddrives is explaned in <xref linkend="disks-adding">
2398
	discussion of swap space
2398
	and <xref linkend="configtuning-initial"> contains a discussion on
2399
	in <xref linkend="configtuning-initial">
2399
	partition layouts and swap partition size considerations.</para>
2400
	of the Handbook for some suggestions on how to best
2400
      <para>When a partition is prepared and selected, &man.swapon.8; is used
2401
	arrange your swap.</para>
2401
	to add the partition to the system.  If the partition is
2402
	<filename>/dev/ada1s1p2</filename>, this will look like:</para>
2403
2404
      <screen>&prompt.root; <userinput>swapon
2405
	<replaceable>/dev/ada1s1p2</replaceable></userinput></screen>
2406
2407
      <warning>
2408
	<para>It is posible to use any partition not currently mounted, even
2409
	  if it contains a file system.  If the partition contains a file
2410
	  system and is mounted as swap space, the filesystem will be
2411
	  destroyed.  Therefore, make sure that the partition to be added as
2412
	  swap partition is really the intended partition, before running
2413
	  <command>swapon</command>.</para>
2414
      </warning>
2415
2416
      <para>To make this new swap partition automatically added on boot,
2417
	change <filename>/etc/fstab</filename> to include an entry for the
2418
	partition.  This entry can look something like:</para>
2419
2420
      <programlistning>/dev/ada1s1p1	none	swap	sw	0	0</programlistning>
2421
2422
      <para>For an explanation of entries in <filename>/etc/fstab</filename>,
2423
	refer to &man.fstab.5;.</para>
2402
    </sect2>
2424
    </sect2>
2403
2425
2404
    <sect2 id="nfs-swap">
2426
    <sect2 id="nfs-swap">

Return to bug 164920