Messages in this thread |  | | Date | Sun, 01 Dec 1996 08:27:20 +0100 | From | Michael Bruck <> | Subject | Re: swapping |
| |
At 02:01 01.12.1996 -0500, Chris Salinardi wrote: > >Does anyone know where I can find a program that >will swap to a file instead of just partitions? >
This is from man mkswap
To setup a swap file, it is necessary to create that file before running mkswap. A sequence of commands similar to the following is reasonable for this purpose:
# dd if=/dev/zero of=swapfile bs=1024 count=8192 # mkswap swapfile 8192 # sync # swapon swapfile
Note that a swap file must not contain any holes (so, using cp(1) to create the file is not acceptable).
Michael
|  |