[NTLUG:Discuss] Swap Space

Bug Hunter bughuntr at one.ctelcom.net
Fri Feb 2 15:27:59 CST 2001


  if you know the hard drive partition that swap was on, add the line
(pretend it is hda3 for now:)

/dev/hda3 swap swap defaults 0 0

 in /etc/fstab

and from the command line run

swapon -a

  this is for redhat 5.2.

bug

On Fri, 2 Feb 2001, MadHat wrote:

> At 02:54 PM 2/2/2001 -0600, you wrote:
> >Does anyone know if it is possible to "mount" swap space
> >on the fly in multi user mode?  I have a production system
> >running RedHat 5.2 and somehow the entry for swap in /etc/fstab
> >got deleted prior to my last re-boot.  So now I have no swap
> >space.  There is a hard drive partition already set up, I would
> >just like to tell the kernel to use it without having to re-boot....
> 
> look at (man) mkswap and swapon commands.  I don't remember the details, 
> but it should be something fairly simple...  You may also have to use the 
> dd command to create the swap file first...
> 




More information about the Discuss mailing list