[NTLUG:Discuss] SWAP

Bryan J. Smith b.j.smith at ieee.org
Fri Aug 19 01:59:11 CDT 2005


On Fri, 2005-08-19 at 05:28 -0500, Leroy Tennison wrote:
> Just created a dual distro setup (FC3 and SuSE9.2) on a hard disk 
> manually and forgot to create a swap partition.  If i go back and do so, 
> will it be used?  How does Linux detect and use the swap partition?

To create:  

  # mkswap (device)

[ NOTE:  You will only need to do this once for all installations that
will use it. ]

To enable immediately:  

  # swapon (device)

[ NOTE:  This will just use it immediately on the currently booted
installation. ]

To enable on subsequent boots (in /etc/fstab):  

  (device)  swap     swap    defaults  0 0

[ NOTE:  You will need to do this for every installation that will use
it. ]


-- 
Bryan J. Smith     b.j.smith at ieee.org     http://thebs413.blogspot.com
----------------------------------------------------------------------
The best things in life are NOT free - which is why life is easiest if
you save all the bills until you can share them with the perfect woman





More information about the Discuss mailing list