Swap file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ken Bowley
Date:  
Subject: Swap file
On Sat, 19 Jan 2002, Gontran wrote:

> * Tom Karickhoff () 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                                        
 AKA: Lord Johann                              http://www.trod.org
- -=-=-=-=-=[ Linux, the choice of the GNU generation ]=-=-=-=-=-=-=-=-
LCP, LCI, and Brainbench Linux MVP