Re: [SLUG] Resize Swap File

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Mon Mar 03 2003 - 09:14:11 EST


On Mon, 2003-03-03 at 07:35, ethan zimmerman wrote:
> how do i resize my swap file? I'm running RH 8.0
>
> -ethan

Turn off swap with swapoff -a.
Delete the old swap file.
Create a new swap file with :
  dd if=/dev/zero of=/swap bs=1M count=128
  sync
  mkswap /swap
 
Turn on the new swapfile with:
  swapon /swap



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:24:59 EDT