Swap file

Gontran plug-discuss@lists.plug.mybutt.net
Sat, 19 Jan 2002 12:15:09 -0700


* 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.

hth
Gontran