LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   swap, /dev/hda2 by /dev/hands :) (https://www.linuxquestions.org/questions/slackware-14/swap-dev-hda2-by-dev-hands-229955/)

kaN5300 09-13-2004 03:18 AM

swap partition by /dev/hands :)
 
I set up my slack 10 without a swap prtition, now i wanna set it up, i used fdisk, created a swap patrition, then, mkswap... then i wrote this line in /etc/fstab:
Code:

/dev/hda5        swap            swap        defaults        0  0
fdisk:
Code:

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1      18000  144584968+  83  Linux
/dev/hda2          18001      19000    8032500  83  Linux
/dev/hda3          19001      19457    3670852+  5  Extended
/dev/hda5          19001      19457    3670821  82  Linux swap

Command (m for help):

But, #top:
Code:

Mem:    384768k total,  354984k used,    29784k free,  117260k buffers
Swap:        0k total,        0k used,        0k free,    79208k cached

I cant find my swap :(

gbonvehi 09-13-2004 03:20 AM

Did you try with swapon -a ?

kaN5300 09-13-2004 03:45 AM

Thnx a lot =)
Code:

root@portal:/home/kan5300# mkswap /dev/hda5
Setting up swapspace version 1, size = 3758915 kB
root@portal:/home/kan5300# swapon -a
root@portal:/home/kan5300#

Code:

Mem:    384768k total,  285188k used,    99580k free,  101232k buffers
Swap:  3670812k total,        0k used,  3670812k free,    16420k cached



All times are GMT -5. The time now is 10:10 AM.