LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2004, 12:01 AM   #1
Terra Niux
Member
 
Registered: Nov 2004
Posts: 36

Rep: Reputation: 15
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.
 
Old 12-29-2004, 01:26 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 12-29-2004, 05:48 AM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
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...)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swap partition Mojojo Linux - Hardware 10 01-20-2005 06:12 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM
Should I be using a SWAP partition? Gene126 Linux - General 3 08-14-2002 10:03 PM
swap.partition anoop_chandran Linux - General 3 12-28-2001 10:48 AM
Swap partition Thomas_Delrue Linux - Newbie 3 07-12-2001 09:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration