LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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



Reply
 
Search this Thread
Old 03-07-2003, 01:46 PM   #1
star geezer
LQ Newbie
 
Registered: Feb 2003
Location: LA
Posts: 17

Rep: Reputation: 0
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
 
Old 03-07-2003, 01:48 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
No, you use parted. It has 'resize' option.
 
Old 03-07-2003, 03:08 PM   #3
JStew
Member
 
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229

Rep: Reputation: 30
Delete all partitions and then re-install and re-configure.

That would be a start.
 
Old 03-07-2003, 04:03 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
JStew, why do you think it's the best idea? Reinstallation requires data backup, while parted and 'resize' option make everything much easier.
 
Old 03-07-2003, 04:15 PM   #5
JStew
Member
 
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229

Rep: Reputation: 30
Just an opinion...
 
Old 03-07-2003, 04:37 PM   #6
thedeud
LQ Newbie
 
Registered: Mar 2003
Distribution: Redhat
Posts: 18

Rep: Reputation: 0
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.
 
Old 03-07-2003, 08:47 PM   #7
JStew
Member
 
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229

Rep: Reputation: 30
how much actual ram do you have?

if you have 512mb or more then you really dont need a /swap partition IMHO
 
Old 03-10-2003, 11:11 AM   #8
star geezer
LQ Newbie
 
Registered: Feb 2003
Location: LA
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 03-10-2003, 12:26 PM   #9
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
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
 
Old 03-10-2003, 01:04 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
1GB RAM+1.5GB swap would be good for film editing, but not for normal use...
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu - increase swap size dna9 Linux - Distributions 11 01-24-2005 12:45 PM
Space Increase webterractive Linux - Software 2 12-22-2004 10:42 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Looking to increase swap partition Patgod Linux - Newbie 8 03-29-2004 06:46 PM
How to increase SWAP partition space ? sureshsaragadam Linux - Newbie 23 10-01-2003 10:24 AM


All times are GMT -5. The time now is 12:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration