On Wed, 2002-03-06 at 09:10, Jamie Wilkinson wrote:
> This one time, at band camp, Grant Parnell wrote:
> >On Sat, 2 Mar 2002, Scott Howard wrote:
*snip, damn you, SNIP!*
> >> Yes. Whats more, if you've got Linux and Windows dual-booting on a machine
> >> it's even possible to share the same disk between the Linux swapspace and
> >> the Windows swapfile (or at least, it was under Win95 - not sure about
> >> anything later).
> >
> >Ewww yuk! I wouldn't recommend that.
>
> Why not? Reasons, man.
Admittedtly, it's a fairly hackish solution.
In a nutshell, you:
1) In windows, format the partition, tell 'doze you want to create a
swapfile on that partition, using all of the available space. It should
create an empty swapfile.
2) Back in Linux, dd that partition to a file, and gzip it. Because
it's mostly zeroes, it'll compress down *real* small.
3) In your startup scripts, you run mkswap on that partition before
swapon'ing it.
4) In your shutdown scripts, *after* you've unmounted your swap, dd that
file back out to the partition.
It works, and works reasonably well. If saving a few hundred megs of
space on your hard drive is more important than an extra 30 seconds or
so of bootup/shutdown time, then go read the mini-HOWTO.
--
Peter
[EMAIL PROTECTED]
And now it seems there are lots of other worlds as well. When I think I
might die without seeing a hundredth of all there is to see it makes me
feel, well, humble, I suppose. And very angry, of course.
-- Twoflower the tourist.
(Terry Pratchett, The Colour of Magic)
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug