Possibility of shared swap filespace on a dual boot Linux/Win98
Message-ID: <018401c05550$31b89960$44601f18@atl.mediaone.net> From: "peter hollings" <phollings@atl.mediaone.net> Date: Thu, 23 Nov 2000 08:20:47 -0500 Subject: Possibility of shared swap filespace on a dual boot Linux/Win98 Sorry for the annoying HTML last time and this re-post, now it's in plain text. I have a Pentium II running Windows 98 that I'm preparing for a fresh install of SuSE Linux 7.0. The machine is used as a home workstation. While I have adequate diskspace (8.4 GB), I'd like to make it all count. A little over half is available for Linux. One option is to use the same space (about 250 MB) under both Windows 98 and Linux for a swapfile. Here's what I understand I'd have to do: Create a separate partition solely for the swapfile (I could use a logical partition). I'm not sure what partition type this would be (Using YAST I'd set it as 82 for Linux?). Add a command to delete win386.swp near the end of autoexec.bat to delete the file as a part of Windows 98 shutdown processing. Add a mkswap command to my Linux bootscript (where?) to create the Linux swapfile just before the swapon command. Then as a part of Linux shutdown, just after swapoff (where is this script?) I'd need to reformat the swapfile for Windows (what command/arguments?). Finally, I'd have to designate the file for swap purposes in Windows (System Properties>Virtual Memory Tab) and in Linux (Yast setup??). Being a Linux newbie, I don't understand all the details. Also, I'm not sure that this is a good overall strategy. For example, suppose there is a powerfailure, normal shutdown processing doesn't occur and then you start the OTHER OS which finds an incompatibly formatted swapfile. Would it be better to always format the swapfile as a part of startup processing (then it wouldn't matter how the system was shutdown)? I'm expecting that this might add 5 seconds to my boot process, which is acceptable (not if it is MUCH longer). I'm thinking that the extra 250MB is worth having, but not if it causes serious problems. Has anyone made this work reliably? What are the pitfalls?? Another issue: I'm considering using ReiserFS for my Linux partitions. I understand that I'd have to use the NOTAIL option when mounting my boot part ition to make the files accessible to LILO. I have no compelling need to use ReiserFS except a desire to have a better, more reliable system and to push the limits a little bit. I'm assuming SuSE wouldn't release ReiserFS unless it was reliable. I understand that it may lack all the utilities, like fsck. Am I making a mistake?? TIA, Peter Hollings Atlanta, Georgia phollings@alum.mit.edu
Date: Thu, 23 Nov 2000 18:20:31 +0100 From: Cliff Sarginson <cliff@raggedclown.net> Message-ID: <20001123182031.B2104@buffy.local> Subject: Re: [SLE] Possibility of shared swap filespace on a dual boot Linux/Win98 On Thu, Nov 23, 2000 at 08:20:47AM -0500, peter hollings wrote: <snip snip>
little over half is available for Linux. One option is to use the same space (about 250 MB) under both Windows 98 and Linux for a swapfile.
I didn't read all your explanation of how you can use Win swap and Linux swap in the manner you wish. I take it you have found this described somewhere (maybe in the Suse manual ?) Anyway for 250 MB I would say it is a ludicrously hazhardous thing to do..and I presume you only get a Linux swap file out of it rather than a Linux swap device, which if your machine does start to swap will degrade performance a lot.. Don't be mean ! And be kind to yourself, god alone knows what problems may ensue if it doesn't work .. you may lose Windows all together ! (mmm.. come to think of it maybe it ain;t such a bad idea .. lol) Cliff
participants (2)
-
cliff@raggedclown.net
-
phollings@atl.mediaone.net