Swap file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Gontran
Date:  
Subject: Swap file
* 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.

hth
Gontran