Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-07-2003, 12:46 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2003
Location: LA
Posts: 17
Rep:
|
Increase Swap Space?
How do I increase swap space in an exiting partition configuration? Do I have to start over, i.e., redo partions & reinstall my Red Hat 7.3?
- Vaughn
|
|
|
|
03-07-2003, 12:48 PM
|
#2
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
No, you use parted. It has 'resize' option.
|
|
|
|
03-07-2003, 02:08 PM
|
#3
|
|
Member
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229
Rep:
|
Delete all partitions and then re-install and re-configure.
That would be a start.
|
|
|
|
03-07-2003, 03:03 PM
|
#4
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
JStew, why do you think it's the best idea? Reinstallation requires data backup, while parted and 'resize' option make everything much easier.
|
|
|
|
03-07-2003, 03:15 PM
|
#5
|
|
Member
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229
Rep:
|
Just an opinion...
|
|
|
|
03-07-2003, 03:37 PM
|
#6
|
|
LQ Newbie
Registered: Mar 2003
Distribution: Redhat
Posts: 18
Rep:
|
Why not just use a swap file?
To add swap you can create a swap file,
For eg:
Assuming you want to create this swap in /swap and having size 512M.
Run the following commands
dd if=/dev/zero of=/swap bs=512k count=1024
mkswap /swap
chmod 0600 /swap
swapon /swap
you will also have to add this line to /etc/fstab
/swap swap swap defaults 0 0
You can run free -m to find the swap space used in megabytes before and after the allocation of swap space.
|
|
|
|
03-07-2003, 07:47 PM
|
#7
|
|
Member
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229
Rep:
|
how much actual ram do you have?
if you have 512mb or more then you really dont need a /swap partition IMHO
|
|
|
|
03-10-2003, 10:11 AM
|
#8
|
|
LQ Newbie
Registered: Feb 2003
Location: LA
Posts: 17
Original Poster
Rep:
|
Thanks for all the suggestions... I'm adding .5GB to my existing .5GB of RAM & I want to increase my swap space from .5GB up to at least 1.5GB. Right now my disk space is set up as follows:
Device Boot Start End Blocks Id System
/dev/sda1 1914 4427 20193705 83 Linux
/dev/sda2 1 9 72261 83 Linux
/dev/sda3 10 1913 15293880 5 Extended
/dev/sda5 10 264 2048256 83 Linux
/dev/sda6 265 456 1542208+ b Win95 FAT32
/dev/sda7 457 584 1028128+ 83 Linux
/dev/sda8 585 650 530113+ 82 Linux swap
/dev/sda9 651 714 514048+ 83 Linux
/dev/sda10 715 727 104391 83 Linux
/dev/sda11 728 1913 9526513+ 83 Linux
I didn't set it up this way myself & now I want to change it. My guess is that I can convert the Win95 FAT32 (/dev/sda6) partition which I don't use to Linux Swap space & I'm done. Right???
Vaughn
|
|
|
|
03-10-2003, 11:26 AM
|
#9
|
|
LQ Addict
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403
Rep:
|
If you're going to have a total of 1Gig of ram, you really shouldn't need 1.5 Gigs of swapspace.
Use the diskspace for something else more worthwhile 
|
|
|
|
03-10-2003, 12:04 PM
|
#10
|
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,471
Rep: 
|
1GB RAM+1.5GB swap would be good for film editing, but not for normal use...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:30 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
|
|