Need to move parition

Matthew Carpenter matt
Mon May 17 11:33:33 PDT 2004


Yes.  You create a file using dd IIRC of desired size and in the desired
location, then use the mkswap command to turn the file into a swap file,
then use swapon to use that file.

# create the file of size: 64mb
dd if=/dev/zero of=swapfile bs=1024 count=65536
# make the file into a swap file
mkswap swapfile
# turn the sucker on
swapon swapfile

On Tue, 18 Jun 2002 20:28:34 -0700
"Kevin O'Gorman" <kevin at kosmanor.com> wrote:

> Hmmm.  I may be mixing my operating systems, but I thought there was a
> way to use a file for swapping.  No?



More information about the Linux-users mailing list