[ale] how do I increase Linux swap file size?

Richard Faulkner rfaulkner at 34thprs.org
Mon Jan 17 20:34:58 EST 2011


Agreed...GParted should do the trick.  I would do some reading if it
were me to confirm that you 
can fulfill the "non-destructive" part of the requirement.  But I also
agree on the necessity of creating 
a larger swap file.  If you use hibernate you'll need to have RAM ==
Swap (correct me if I'm wrong)
otherwise it would be more to do with if you really use that much swap
and if you really need to 
increase it.

RinL

-----Original Message-----
From: Michael H. Warfield <mhw at WittsEnd.com>
Reply-to: mhw at WittsEnd.com, Atlanta Linux Enthusiasts <ale at ale.org>
To: Atlanta Linux Enthusiasts <ale at ale.org>
Cc: mhw at WittsEnd.com
Subject: Re: [ale] how do I increase Linux swap file size?
Date: Mon, 17 Jan 2011 17:52:32 -0500


On Mon, 2011-01-17 at 17:21 -0500, Ron Frazier wrote: 
> Hello all,

> My main hard drive on this machine is partitioned as follows:

> 157 GB NTFS Windows Vista
> 97 GB EXT4 Linux (Ubuntu 10.04)
> 8 GB Linux swap
> 235 GB NTFS Windows Data (Also usable in Ubuntu)

> I normally keep my swap file set for 2X system ram.  I recently upgraded
> the computer to 8 GB of RAM, so I would like to non destructively shrink
> the last partition, while keeping it at the end of the disk.  Then, I
> want to increase the swap file to 16 GB.  Anybody know how to do that,
> preferably with a graphical utility, under Ubuntu?

Sounds like a straight forward job for gparted.

You may need to boot from a run-live to do it, so the file systems are
not mounted.  You can do it manually with resize2fs and others but if
you don't really REALLY know what you are doing, it can be a receipe for
disaster.  Highly recommend going the gparted route.  It will be time
consuming, if you are moving the start point of an existing partition,
then it can become very time consuming, especially expanding a partition
and moving it up on the disk.  Just deal.  It will cost you some time to
let gparted redo the partitioning but it will be done correctly.  It
will also deal with resizing the file systems if you don't have anything
real bizzare.

Mike

> Thanks in advance for your help.
> 
> Sincerely,
> 
> Ron
> 
> -- 
> 
> (PS - If you email me and don't get a quick response, you might want to
> call on the phone.  I get about 300 emails per day from alternate energy
> mailing lists and such.  I don't always see new messages very quickly.)
> 
> Ron Frazier
> 
> 770-205-9422 (O)   Leave a message.
> linuxdude AT c3energy.com
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> 

_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110117/05b0ba2b/attachment.html 


More information about the Ale mailing list