LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-15-2004, 12:02 PM   #1
sbrewer
Member
 
Registered: Jul 2004
Location: Huntsville, AL
Distribution: RedHat 9
Posts: 43

Rep: Reputation: 15
Adding swap space


All,

Here is the scenario. I have a machine with 2 hard drives. Nothing was on the second hard drive but the swap partition. The drive with the swap partition was removed.

There is not any additional free space on the drive that remains. If I understand correctly, one of these partitions will have to be resized and a new swap partition created.

My question is...is there a way to safely resize one of the partitions that are currently there?

TIA

sbrewer
 
Old 12-15-2004, 01:45 PM   #2
ferrix
Member
 
Registered: Jun 2003
Location: Sydney, Australia
Distribution: Ultima, Blag, KateOS, PCLinuxOS, Frugalware
Posts: 216

Rep: Reputation: 31
Yes, the tool for that is GNU Parted: http://www.gnu.org/software/parted/parted.html
Backing up your important stuff before you begin messing with partitions is always a good idea
 
Old 12-15-2004, 06:16 PM   #3
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
Swap is not an absolute requirement. You can get by without it with 512M for normal use.
 
Old 12-15-2004, 06:28 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
No it's not an absolute requirement but it's nice to have if you think you'll use more physical memory than you have available. I know I was suprised, I managed to use a bit over 800MB running fluxbox on Gentoo a while ago, I figured it would be much less but I was doing a lot of stuff..
 
Old 12-19-2004, 04:32 AM   #5
Grobsch
Member
 
Registered: Dec 2004
Location: Brazil
Distribution: ImagineOS
Posts: 95

Rep: Reputation: 17
You can also create a swap file instead of a swap partition...
Type:
dd if=/dev/zero of=/mnt/swaps count=128000 bs=1024 2>/dev/null
Then:
mkswap /mnt/swaps
After that start swap file:
swapon /mnt/swaps

Will work only if you have free space, and dreate a swap file with 128Mb... You don't need to change partition type or size, just create some space deleting some files...
 
  


Reply



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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
adding swap space jamaso Slackware 6 06-20-2004 11:05 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
Swap space ekoome Red Hat 3 11-07-2003 10:49 AM
Swap space ? wr3ck3d Linux - Hardware 2 03-28-2003 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 11:04 AM.

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