I'm on Linux machines and run into the following problem:
I want to run a diskless X-Terminal which runs several other services as well. Therefore it needs a little swap space which I want to provide via NFS and which I can't get to work.
I did the following (as described in man mkswap and of course I am root when doing this):
$ dd if=/dev/zero of=swapfile bs=1024 count=8192
$ mkswap swapfile 8192
$ swapon swapfile
Everything went fine except the swapon command. It complains about a wrong argument. In the syslog I get the following lines:
Jun 3 10:09:05 host kernel: rw_swap_page: bad swap file
Jun 3 10:09:05 host last message repeated 3 times
Jun 3 10:09:05 host kernel: Unable to find swap-space signature
How can I get the swapfile working?