On Thursday 30 July 2009 15:47:18 Grant wrote:
> > Not true. I have machines with zero swap and they work just fine. I am
> > utterly unconcerned with out of memory conditions as whether you have
> > swap or not, when virtual memory runs out, either way you have a horrible
> > cockup that is hard to fix. Then there's the oom-killer that comes along,
> > stomps all over everything and just makes it worse.
>
> Sounds good.  Will commenting the swap line out of /etc/fstab and
> rebooting disable swap?  

Yes. Or you can just use swapoff as root.

> In order to resize the root partition to
> include the swap paritition, I'll have to boot to LiveCD right?

It's safest, but not always necessary.

If your partition table is laid out with the swap partition directly after the 
root partition, you can delete both, recreate the root partition the same size 
as both together. The new root partition must start where the old one did. 
Renumber the partitions and remember to adjust fstab if you mount by device 
number. Then resize the root file system. The filesystem and your kernel must 
support this.

If your root partition and swap partition are logical partitions in fdisk, 
this will probably fail. I do not know why, but I never got this to work. 
Physical partitions work just fine.

That's a lot of "ifs".

-- 
alan dot mckinnon at gmail dot com

Reply via email to