[PLUG] Linux server constantly rebooting.
AthlonRob
AthlonRob at axpr.net
Mon Nov 24 09:50:02 UTC 2003
On Mon, 2003-11-24 at 01:09, Josh Orchard wrote:
> Is there some way to test for that? Can I create another swap like a
> file since I can't make another partition now. I knew in HP you could
> add to the swap space by defining a file then make that file the
> primary swap. Not very efficient but worked. Anything similar for
> linux?
I realize you seem to have ruled out a bad swap partition, so this may
not be much help... but is a worthy tip for folks, regardless.
To use a swap file instead of a swap partition, or in addition to (you
can create these on the fly if you find you need more swap in the middle
of something)...
dd if=/dev/zero of=/path/to/swap/file bs=1M count=n
...where n is the number of megabytes you want the swap file to be.
mkswap /path/to/swap/file
swapon /path/to/swap/file
...and bam, you've got more swap.
Rob
More information about the PLUG
mailing list