Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions
User Name
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.


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

Rep: Reputation: 15
Adding swap space


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 there a way to safely resize one of the partitions that are currently there?


Old 12-15-2004, 02:45 PM   #2
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:
Backing up your important stuff before you begin messing with partitions is always a good idea
Old 12-15-2004, 07:16 PM   #3
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, 07:28 PM   #4
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

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, 05:32 AM   #5
Registered: Dec 2004
Location: Brazil
Distribution: ImagineOS
Posts: 95

Rep: Reputation: 17
You can also create a swap file instead of a swap partition...
dd if=/dev/zero of=/mnt/swaps count=128000 bs=1024 2>/dev/null
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...


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

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration