LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-15-2005, 09:48 AM   #1
toolmania1
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Rep: Reputation: 0
changing the size of an existing swap partition


I have installed Linux and Windows Xp on the same hard drive. on two separate partitions. I would like to change the size of the swap partition since I accepted the default which is very small. How do I change the size of swap after I have already installed Linux (Red Hat 9.0)
 
Old 06-15-2005, 10:45 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
firstly: if you go to (user CP -> Edit profile -> Distro) and enter the distro you use, you don't have to type it in every post you make.

For changing the size of the swap partition--the easiest solution I can think of is booting from a Live CD and running parted (or another partition editor of your choice) from there.

It may also be possible to unmount the swap partition, repartition your disk, and remount it.

But do you really need the swap space? Given that you can run windows nt 5 (sorry, xp), I would think that swap usage would be very low for non-gaming uses--and even games like freeciv are surprisingly light.

hth --Jonas
 
Old 06-15-2005, 04:55 PM   #3
cderbyd
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
HI,

There is no way to grow the swap partition, you should resize the partitions in some way.
Maybe you could create a big archivoe with "dd" command, and use mkswap y swapon command
over that big archive.

Good luck,
 
Old 06-15-2005, 05:24 PM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
Quote:
There is no way to grow the swap partition, you should resize the partitions in some way.
Err... isn't growing a form of resizing?

What exactly do you mean? That he can't grow it without repartitioning? That he can't grow it while it's in use? ...

--Jonas
 
Old 06-16-2005, 07:49 PM   #5
cderbyd
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
Hi,

I mean: you MUST do a repartitioning of your disk to increase the size of your
swap partition.

You CAN grow the size of swap use of the system, but is not the same thing.

To do this, you NEED to create a big file o wathever the size you want the swap
space want to grow, and then perform the "mkswap" and "swapon" .

Good luck
 
Old 06-16-2005, 08:20 PM   #6
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
Quote:
I mean: <snip>
much clearer (to the point of being worse than legalese )

Quote:
mkswap y swapon
Your native language is (closely related to) spanish, si?

--Jonas
 
  


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
Swap Partition Size Murdock1979 Slackware 11 07-27-2005 02:09 AM
swap partition size alaios Linux - General 4 09-27-2004 02:21 PM
Specify existing swap partition at boot when reinstall? GeirG Linux - General 2 09-11-2004 08:42 AM
Max swap partition size mindcry Linux - Software 7 11-17-2003 02:53 PM
swap partition size? Toker Linux - Newbie 16 10-12-2003 12:19 PM


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