WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline secdroid

  • Newbie
  • *
  • Posts: 29
[Solved] Swap configured correctly?
« on: September 08, 2009, 10:28:38 AM »
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, 10:48:02 AM by secdroid »

Offline combo3

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

Offline secdroid

  • Newbie
  • *
  • Posts: 29
Re: Swap configured correctly?
« Reply #2 on: September 08, 2009, 10:47:41 AM »
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^

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