From: Charles Stephens (cfs@mathcs.emory.edu)
Date: 08/08/93


From: cfs@mathcs.emory.edu (Charles Stephens (guest -  exp 9/1/93))
Subject: Re: Swap Files
Date: 9 Aug 1993 01:19:11 GMT

Darcy Boese (dboese@spartan.ac.BrockU.CA) wrote:
: A lot of us Linux users are also DOS/Windows users, as you all know. And when
: you run windows 3.x you have the option of creating a permanent swap file.
: Is there any way for Linux to take advantage of this by using that swap file
: as its own swap file? Certainly there is no useful information stored in any
: of the swap files when it is not actually in use. And since it in contiguous
: blocks you get the effect of a swap partition anyway...

Well that's true. MSWindows doesn't care what's in the swap file when it
starts. However, that isn't true in the reverse. Linux specially formats
it's swap files/partitions before use. MSWindows overwrites this information
with it's own data. Not all is lost. Just put this in your rc file:

mount -av -t noswap
mkswap <path to your windows swapfile> <1K blocks in file>
swapon -a

You should fill in the appropriate information for the mkswap command. You
need to find the name windows uses to make the swapfile. It's hidden (which
can be seen under linux when that partition is mounted), but that shouldn't
be hard to circumvent. Also you can find the number of 1k blocks by
dividing the size of the swapfile by 1024.

This should do it. I hope. If it doesn't, don't come after me!!! I haven't
used windows in ages.