Changing Linux Swap Space

Programming, for all ages and all languages.
Post Reply
guest

Changing Linux Swap Space

Post by guest »

recently, i installed Red hat Linux 8 on my Celeron 433 Mhz, 160 MB ram machine. Accidently, i created the swap space as 200 MB. now the machine works too slow :(. i am thinking of reinstalling the linux. i just wanted to know is there any chance of changing the swap space without reinstalling ?
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Changing Linux Swap Space

Post by Candy »

on any normal linux:

swapoff <device>
fdisk -> remove swap space, set up new swap space
mkswap <device>
swapon <device>

For redhat, might be impossible. Check their docs.
tgyb

Re:Changing Linux Swap Space

Post by tgyb »

"upgrading" from the same installation cd can't take that long
Post Reply