View previous topic :: View next topic |
Author |
Message |
Mell n00b
Joined: 16 Nov 2002 Posts: 26 Location: Germany
|
Posted: Sun Mar 02, 2003 3:57 pm Post subject: Sharing swap space with Windows 98 |
|
|
Hi,
while doing a google search I found a how-to writte specifically for redhat which explains how to share linux swap space with windows in order to save disk space. I tried to follow the steps described in there but when I boot Gentoo, I get several error messages by the swapinit.sh as well as the swaphalt.sh.
Is there anyone who successfully managed to share swap space between Gentoo and Windows or can someone give me a hint what has to be adopted in the above mentioned files in order to run in Gentoo?
Thank you
P.S. here is the link http://tyrant.linuxlookup.com/HOWTO/mini/Swap-Space.html |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Sun Mar 02, 2003 5:35 pm Post subject: |
|
|
what errors are you getting? |
|
Back to top |
|
|
Mell n00b
Joined: 16 Nov 2002 Posts: 26 Location: Germany
|
Posted: Sun Mar 02, 2003 6:38 pm Post subject: |
|
|
Sorry, I should have told in the first posting already - my fault.
After trying to reconstruct the problem it now works for some reason. Still there are a couple of oddities:
I added the swapinit.sh to /etc/init.d/localmount
When booting, I first I get the message that swap is being added. Then when it comes to the point where it normaly says "activating more swap" I get the error message: "swapon: /dev/winswap : Device or resource busy". Obviously the swap is initialized by another script but I do not know which.
For the restore process I added swaphalt.sh to /etc/init.d/halt.sh. There I get the message, that no swap-signature is found and it therefore is skipping the restore process. Probably that is connected to initialisation of the swap space?
But, under Gentoo and under Windows I have almost all the swap-space available on the partition.
I hope that explains my problems
If not, please let me know, since saving disk space is really essential for me on my old fashioned notebook.
P.S. Actually I have some more questions which somebody might easily answer?
1. Which kernel option is responsible for the module ds?
2. Is there a way how to find outy which ide-chipset is used by my system? Like cat /proc/cpuinfo for the cpu? |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Sun Mar 02, 2003 6:43 pm Post subject: |
|
|
You should make sure the swap is not listed in the fstab to use these scripts.
1) /usr/src/linux-2.4.20-gentoo-r1/drivers/pcmcia/ds.c say it is a pcmcia card services so something in there (although you probably knew that)
2) /proc/pci should help |
|
Back to top |
|
|
Mell n00b
Joined: 16 Nov 2002 Posts: 26 Location: Germany
|
Posted: Sun Mar 02, 2003 8:26 pm Post subject: |
|
|
Thank you so much - it is working perfectly now.
Last problem seems to be related to the following line in the swaphalt.sh:
"while [ $loopcount -lt 3 ]". It is suppossed to loop until loopcount becomes 3. Now when I shutdown I get the error message: "Error in line xy: integer expected." How am I suppossed to change that line in order to avoid the error message? For now, I just uncommented the whole while - thing and restore the windows swap every time... |
|
Back to top |
|
|
David_Escott l33t
Joined: 12 Jan 2003 Posts: 952 Location: Boston, MA
|
Posted: Sun Mar 02, 2003 8:35 pm Post subject: |
|
|
not a really proficient bash scripter but this sure doesnt seem right
loopcount=loopcount+1
I think that needs to be loopcount=$loopcount+1 try that and see what you get. |
|
Back to top |
|
|
Mell n00b
Joined: 16 Nov 2002 Posts: 26 Location: Germany
|
Posted: Sun Mar 02, 2003 9:04 pm Post subject: |
|
|
It had to be:
"let loopcount=loopcount+1"
but it still is not working - always skipping the restore process because not finding the swap signature. The only way getting this to run seems to let the while - thing commented and restore the windows swap in any case. Does not take much time and saves me a lot of disk space.
Thanks for your help!!! |
|
Back to top |
|
|
|