LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 07: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, 07:43 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
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, 10: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, 10: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, 10:46 AM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
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 02:09 AM
Change the swap size ust Linux - General 11 06-17-2005 12:04 AM
swap partition size alaios Linux - General 4 09-27-2004 02:21 PM
HowTo Change swap file size gee Linux - Newbie 2 02-26-2004 09:40 PM
swap partition size? Toker Linux - Newbie 16 10-12-2003 12:19 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration