Swap file

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Gontran
日付:  
題目: 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