Swap file

Ken Bowley plug-discuss@lists.plug.mybutt.net
Sat, 19 Jan 2002 13:03:49 -0700 (MST)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 19 Jan 2002, Gontran wrote:

> * Tom Karickhoff (dragon9166@yahoo.com) wrote:
> >
> > How can I move the swap file from hda to sda?
> >
>
> Supposing your swap partition is sda2. And old swap is hda4.
>
> Make sure sda2 has partition type linux swap (82), then
> % mkswap /dev/sda2
> % swapon /dev/sda2
> % free
> (lots of swap)
> % swapoff /dev/hda4
>
> Edit /etc/fstab and switch out the devices for swap.

Besides just typing 'free', you might want to try 'swapon -s' to see what
swap files/partitions are being used.

- -=-=-=-=-=-=-=-=-=-=-=[The Realm of Darkness]=-=-=-=-=-=-=-=-=-=-= O-
 Ken Bowley                                        johann@trod.org
 AKA: Lord Johann                              http://www.trod.org
- -=-=-=-=-=[ Linux, the choice of the GNU generation ]=-=-=-=-=-=-=-=-
LCP, LCI, and Brainbench Linux MVP
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE8SdEpgLMESF6A76wRAjd7AJ9Rj8Wj6qU/JS/nk2Y0OJ59qKBB7QCguFB5
MkAvQxVlw4Rbqsn+Sx567a4=
=BW/Y
-----END PGP SIGNATURE-----