LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Swap Partition (https://www.linuxquestions.org/questions/slackware-14/swap-partition-271386/)

Terra Niux 12-28-2004 11:01 PM

Swap Partition
 
I am using Linux Slackware 10.0, I have just created my partitions for me server and it appears as such..

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Boot Primary Linux ext3 38798.65
hda2 Primary Linux swap 1217.35

Yet when I type free, I get this..

total used free shared buffers cached
Mem: 304808 263760 41048 0 35780 99096
-/+ buffers/cache: 128884 175924
Swap: 0 0 0

Any feedback on why my Swap is appearing as 0 and how to fix it would be appreciated, thanks.

slakmagik 12-29-2004 12:26 AM

Did you initialize it with 'mkswap' and 'swapon'? The Slack install should have done that - unless this is a mid-install report - but that should fix it, anyway.

gd2shoe 12-29-2004 04:48 AM

Code:

swapon /dev/hda2
to start using it right now. If the space hasn't yet been formated as swap, then you will need to use mkswap first to format it (Just because it is allocated does not mean that it is formated yet). Add a line to your /etc/fstab to use it automatically in the future:
Code:

/dev/hda2            swap                swap      defaults                0 0
(I think I have this right...)


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