This email was mistakenly delivered to Positive Telecom, Inc. and
is being forwarded to the intended recipient as a courtesy.
Administrator
[EMAIL PROTECTED]
-----------------------------------------------------------------
sweeloong mok wrote:
> Thanks to Ray, Neil, Marty and anyone who help me!
>
> from, mok
>
> "J. Neil Doane" wrote:
> >
> > Well, your "free" says you're using no swap right now. I'll assume from
> > the email that you have an actual partition dedicated to swap. Here's
> > what I'd do:
> >
> > 1. run 'fdisk' on the drive you have a swap partition on and get the size
> > of that swap partition in blocks (while you're in there make sure that
> > partition's type is "82" ("Linux swap")). Here's what my fdisk looks
> > like for comparison:
> > Device Boot Begin Start End Blocks Id System
> > /dev/hda1 1 1 192 1542208+ 83 Linux native
> > /dev/hda2 193 193 460 2152710 83 Linux native
> > /dev/hda3 461 461 1016 4466070 83 Linux native
> > /dev/hda4 1017 1017 1024 64260 82 Linux swap
> >
> > So, here you can see my type is set to swap and size in blocks in 64260.
> >
> > 2. Run mkswap on your swap partition. The syntax is:
> > mkswap [ -c ] device [size-in-blocks]
> > So for me, I'd run:
> > mkswap -c /dev/hda4 64260
> > (The -c just checks for bad blocks, but it's a good idea.)
> >
> > 3. Now that the swap partition is created, just swapon it. The syntax is:
> > swapon /dev/hda4
> > At this point, you should see the swap appear in your "free" listing.
> >
> > 4. Now, if you want it to use this swap partition all the time without
> > having to swapon it each time, you'll need to add a line in your
> > /etc/fstab, here's what I use:
> > /dev/hda4 swap swap defaults 0 0
> >
> > Hope this helps,
> >
> > Neil Doane