LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   change swap partition size? (http://www.linuxquestions.org/questions/linux-general-1/change-swap-partition-size-24893/)

jamaso 07-02-2002 06:34 PM

change swap partition size?
 
How can i change the size of the swap partition with the system already installed ? i mean is it the same thing as partitioning other types as well ?(i use fdisk ) thanks

pickledbeans 07-02-2002 06:43 PM

Which distro are you running?

If you have the free diskspace, just add another swap partiton.

do a man -k swap

but I think it's :

mkswap /dev/partition_id

either swapon or swapctl

and finaly add entry to /etc/fstab for new swap.

jamaso 07-03-2002 09:30 AM

thanks and sorry for the delay , but , this is what i have :

Filename Type Size Used Priority
/dev/hda7 partition 746948 0 -1

what do you mean add another one ? i want to make this one smaller . do you mean two split it in two swaps?

jamaso 07-03-2002 09:32 AM

by the way i`m using slackware

pickledbeans 07-03-2002 09:46 AM

Bless you my child

How much ram do you have? The rule of thumb is swap is
twice the size of ram? The less ram the more swap you need.

Anywhy, try
swapoff /dev/hda7
fdisk
mkswap
swapon -a /dev/hda7 or what ever the paritition is now

adjust /etc/fstab as needed


All times are GMT -5. The time now is 07:42 PM.