LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2002, 06:34 PM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
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
 
Old 07-02-2002, 06:43 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
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.
 
Old 07-03-2002, 09:30 AM   #3
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
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?
 
Old 07-03-2002, 09:32 AM   #4
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
by the way i`m using slackware
 
Old 07-03-2002, 09:46 AM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap Partition Size Murdock1979 Slackware 11 07-27-2005 01:09 AM
Change the swap size ust Linux - General 11 06-16-2005 11:04 PM
swap partition size alaios Linux - General 4 09-27-2004 01:21 PM
HowTo Change swap file size gee Linux - Newbie 2 02-26-2004 08:40 PM
swap partition size? Toker Linux - Newbie 16 10-12-2003 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration