Seth Woolley's Man Viewer

Manual for swapon - man 8 swapon

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

SWAPON(8)                  Linux Programmer's Manual                 SWAPON(8)

       swapon(2,8), swapoff - enable/disable devices and files for paging and swap-

       /sbin/swapon(2,8) [-h -V]
       /sbin/swapon(2,8) -a [-v] [-e]
       /sbin/swapon(2,8) [-v] [-p priority]  specialfile ...
       /sbin/swapon(2,8) [-s]
       /sbin/swapoff [-h -V]
       /sbin/swapoff -a
       /sbin/swapoff specialfile ...

       Swapon is used to specify devices on which paging and swapping  are  to
       take place.

       The  device  or file(1,n) used is given by the specialfile parameter. It may
       be of the form -L label or -U uuid to indicate a  device  by  label  or

       Calls  to swapon(2,8) normally occur in(1,8) the system multi-user initialization
       file(1,n) /etc/rc making all swap devices available, so that the paging  and
       swapping activity is interleaved across several devices and files.

       Normally, the first form is used:

       -a     All  devices  marked  as ``swap'' swap devices in(1,8) /etc/fstab are
              made available, except for those  with  the  ``noauto''  option.
              Devices that are already running as swap are silently skipped.

       -e     When  -a  is  used  with  swapon(2,8),  -e makes swapon(2,8) silently skip
              devices that do not exist.

       -h     Provide help

       -L label
              Use the partition that has  the  specified  label.   (For  this,
              access(2,5) to /proc(5,n)/partitions is needed.)

       -p priority
              Specify  priority  for swapon(2,8).  This option is only available if(3,n)
              swapon(2,8) was compiled under and is used under  a  1.3.2  or  later
              kernel.  priority is a value between 0 and 32767. Higher numbers
              indicate higher priority. See swapon(2,8)(2) for a  full  description
              of  swap  priorities.  Add  pri=value  to  the  option  field of
              /etc/fstab for use with swapon(2,8) -a.

       -s     Display  swap  usage  summary  by  device.  Equivalent  to  "cat
              /proc(5,n)/swaps".  Not available before Linux 2.1.25.

       -U uuid
              Use  the  partition  that  has  the  specified uuid.  (For this,
              access(2,5) to /proc(5,n)/partitions is needed.)

       -v     Be verbose.

       -V     Display version(1,3,5)

       Swapoff disables swapping on the specified devices and files.  When the
       -a  flag  is  given, swapping is disabled on all known swap devices and
       files (as found in(1,8) /proc(5,n)/swaps or /etc/fstab).

       You should not use swapon(2,8) on a file(1,n) with holes.  Swap over NFS may  not

       swapon(2,8)(2), swapoff(2), fstab(5), init(8), mkswap(8), rc(8), mount(2,8)(8)

       /dev/hd??  standard paging devices
       /dev/sd??  standard (SCSI) paging devices
       /etc/fstab ascii(1,7) filesystem description table

       The swapon(2,8) command appeared in(1,8) 4.0BSD.

Linux 1.x                      25 September 1995                     SWAPON(8)

References for this manual (incoming links)