You can do it best like this (please don't quote me on the exact namesQuote:> Situation: I have Win95 on hda1, a 20meg hda2 for swap, and linux
> just freashly installed on hda3. I would not mind re-installing Linux and
> hda2 to do this.
> Want to do:
> Make Win95 use drive "D" the hda2 for it's swap partition, as
> well as have linux use it. And be able to go back and forth from win95 to
> linux without complicated mecanations.
> I have heard that this is possible, but my linux CD-ROM has no
> text files on it about that subject, and I don't know enough about Linux
> to want to try this on my own.
> Any help gladly accepted.
> P.S.-Please email as well as post, I will condense/repost into mini-faq.
of commands and locations, it's been a while since i installed it on
my Linux box, it has been running without a problem):
1) Make the D drive empty and temporarely do NOT use it as a swap
drive for Win95. So Drive D should be empty and formatted correctly
2) Go into Linux
3) In linux save the first few blocks (128K or so) from /dev/hda2 with
dd if=/dev/hda2 bs=512 count=256 | compress > /etc/hda2_copy.Z
4) Put in your rc.local a mkswap command (or what was it) for
/dev/hda2, and and swapon (or what was it)
5) Put the restore of the hda2_copy.Z file in the appropriate rc file
(don't remember which) so that it is executed when you shutdown the
system (i do that with CTRL-ALT-DEL).
Then Windows 95 will see an empty drive D on which to put its swap.
Linux will recreate its swap space each time it boots. It's is fast
If you want a permanent swap file tou should set that up first, then
save the file in Linux. You don't have to save more than 128K or so
because the contents of the Swap-file is not important information,
only the header containts some critical information.
I am using this mechanism for a shared swapfile between Windows 3.11