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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-02-2002, 06:34 PM
|
#1
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Rep:
|
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
|
|
|
07-02-2002, 06:43 PM
|
#2
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
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.
|
|
|
07-03-2002, 09:30 AM
|
#3
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Original Poster
Rep:
|
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?
|
|
|
07-03-2002, 09:32 AM
|
#4
|
Member
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615
Original Poster
Rep:
|
by the way i`m using slackware
|
|
|
07-03-2002, 09:46 AM
|
#5
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
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 04:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|