Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: secdroid on September 08, 2009, 01:28:38 PM

Title: [Solved] Swap configured correctly?
Post by: secdroid 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?
Title: Re: Swap configured correctly?
Post by: combo3 on September 08, 2009, 01:37:56 PM
Did you run mkswap /dev/hda2 ?
Title: Re: Swap configured correctly?
Post by: secdroid 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.   ;)
Title: Re: [Solved] Swap configured correctly?
Post by: ^thehatsrule^ on September 10, 2009, 01:29:51 AM
After running mkswap, swapon can be used to utilize it without rebooting (iirc)