WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] Swap configured correctly?  (Read 1976 times)

Offline secdroid

  • Newbie
  • *
  • Posts: 29
[Solved] Swap configured correctly?
« on: September 08, 2009, 01:28:38 PM »
I'm not sure whether my swap is configured correctly.  Only have 192 MB physical RAM,
so swap is needed.

free command shows 0 for swap total, used, and free columns

cat /proc/swaps command prints header line, but nothing else

disk /dev/hda has
  200 MB hda1 type 83/Linux
  512 MB hda2 type 82/Linux swap
  rest is still unallocated

Did a swapon -a and rebooted.  No improvement.

Are things working correctly or have I missed something?
« Last Edit: September 08, 2009, 01:48:02 PM by secdroid »

Offline combo3

  • Full Member
  • ***
  • Posts: 148
Re: Swap configured correctly?
« Reply #1 on: September 08, 2009, 01:37:56 PM »
Did you run mkswap /dev/hda2 ?

Offline secdroid

  • Newbie
  • *
  • Posts: 29
Re: Swap configured correctly?
« Reply #2 on: September 08, 2009, 01:47:41 PM »
Did you run mkswap /dev/hda2 ?

Thank you.  Ran mkswap (tested; changes did not take effect), rebooted, retested and have working swap.

Gotta quit using those "training wheels" distros.  I'm forgetting too much.   ;)

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: [Solved] Swap configured correctly?
« Reply #3 on: September 10, 2009, 01:29:51 AM »
After running mkswap, swapon can be used to utilize it without rebooting (iirc)