Enable swap

How to enable swap on the SheevaPlug.

7 Responses to “Enable swap”

  1. Kenny says:

    Please keep comments clean and constructive. Inappropriate comments will be removed. Thank you.

  2. Jason says:

    This didn’t work for me when I tried to create the swapfile under /dev/swapfile, gave error invalid argument when entering “swapon /dev/swapfile”, I got it to work by creating the file /swapfile, works now.

  3. denim says:

    > I got it to work by creating the file /swapfile, works now.

    will this be mounted too by using /ets/fstab ?

  4. TJeh says:

    Hi love your summary :)

    I have a 16GB SD card with 2 Partitions. The second partition is a swap partition type 82.

    It is listes under “top” but it never gets used !? Is there any way of forcing the Sheeva to use it?

    my fstab:

    /dev/mmcblk0p2 none swap sw 0 0

    my free:

    Mem: 513752k total, 203164k used, 310588k free, 6544k buffers

    Swap: 1005528k total, 0k used, 1005528k free, 167076k cached

    my fdisk:

    Disk /dev/mmcblk0: 16.0 GB, 16062087168 bytes

    4 heads, 16 sectors/track, 490176 cylinders

    Units = cylinders of 64 * 512 = 32768 bytes

    Disk identifier: 0×15fe73a8

    Device Boot Start End Blocks Id System

    /dev/mmcblk0p1 1 458753 14680095+ 83 Linux

    /dev/mmcblk0p2 458754 490176 1005536 82 Linux swap / Solaris

    • Kenny says:

      I don’t think there is a way to force Linux to use swap. Seeing that free gives you the correct swap size, I’m pretty sure it’ll use it when you run out of real memory. If you haven’t already, install X and VNC, that’ll guarantee the Sheeva Plug will use swap. :D

Leave a Reply

You must be logged in to post a comment.