lkml.org 
[lkml]   [1996]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.019 / U:3.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site