Linux & MS-Windows sharing swap space?

Linux & MS-Windows sharing swap space?

Post by Jakob Schio » Wed, 12 Jul 1995 04:00:00



Hi Gurus,

Both Linux and MS-Windows can swap to a file.  I never use the two at the
same time, and there is no reason to that require the contents of a swap
file is preserved between sessions.  Can I somehow let Linux and Windoze
share swap space?

I have my DOS partition mounted as /dosc, so I tried to do

mkswap -c /dosc/386spart.par 15360
swapon /dosc/386spart.par

but swapon barfed.  I suppose a swap file has to be located on an ext2
filesystem, and not on an msdos filesystem.  Does anyone know if it's
possible to share swap space, or do I just have to live with two spaw areas
on my disk, where only one is ever used?

Thanks for any answers.  Email preferred, but I'll also look here.  I'll
summarize any useful answers.

Best regards,

Jakob

--
Jakob Schiotz              !  Fax:    +1 (314) 935 6219
Deptartment of Physics     !  Phone:  +1 (314) 935 4968

St. Louis, MO 63130, USA   !  WWW:    http://nils.wustl.edu/schiotz.html

 
 
 

Linux & MS-Windows sharing swap space?

Post by Yves-Chandler Eynar » Wed, 12 Jul 1995 04:00:00



>Hi Gurus,

>Both Linux and MS-Windows can swap to a file.  I never use the two at the
>same time, and there is no reason to that require the contents of a swap
>file is preserved between sessions.  Can I somehow let Linux and Windoze
>share swap space?

>I have my DOS partition mounted as /dosc, so I tried to do

>mkswap -c /dosc/386spart.par 15360
>swapon /dosc/386spart.par

>but swapon barfed.  I suppose a swap file has to be located on an ext2
>filesystem, and not on an msdos filesystem.  Does anyone know if it's
>possible to share swap space, or do I just have to live with two spaw areas
>on my disk, where only one is ever used?

>Thanks for any answers.  Email preferred, but I'll also look here.  I'll
>summarize any useful answers.

Why, yes you can (although I have never done it).  The setup is a little tricky,
you will have to reinstall windows (or recreate the swapfile).  But don't run
windows yet.  Boot linux and do your swap there.  Then you can run windows or
linux and use the swap.
If I recall correctly, windows writes to the swap file and if you try to swapon
with linux after this header info is written, it will fail, as you have seen.

Hope this helps.

Yves

 
 
 

1. Sharing Swap-Space b/w Linux & MS-Windows

        Hello there,

        I am asking for help on Sharing Swap-Space b/w Linux & MS-Windows.

        I'm running HP Vectra 486/66U, the MSDOS version is 6.20. My hard disk
        partition is as follows:

        Partition  Status   Type     Volume Label     Mbytes   System  Usage
        C: 1          A   Pri DOS      MS-DOS_6         200     FAT16  
           2              Non-DOS(Linux)                191    
           3              EXT DOS                        15
                            ^^
                            (supposed to be the swap space)

        Logical DOS Drive info:
        Drv   Volume Label    Mbytes    System    Usage
        D:    SWAP SPACE       15       FAT12     100%

        I am using SCSI hard disk, which means I have done:
                   "ln -s /dev/sda2 /dev/winswap".
        (/dev/sda1 --> DOS partition; /dev/sda3 --> Linux native)

        The problem is that I can not get Linux recognize the D drive, I mean,
        I can not mount /etc/winswap with msdos type (or any other types), nor
        can I run msinfo with "msinfo /dev/winswap"
                 (the result is: "Floating point exception").

        Did I do something wrong? Any hints would be really appreciated.

        Regards,
        -Zhongxia

2. smail configuration

3. Mini-HOWTO: Linux/MS-Windows swap space sharing [revised]

4. FW: Promise PDC20268 FastTrack 100 TX2 (PDC20268)

5. Linux and shared swap space with ms-windows

6. File Manager

7. Linux/MS-Windows swap space sharing - correction

8. Sendmail Support from IBM

9. Sharing swap file between MS-Windows and Linux

10. Linux and MS Windows 3.1 (yuck) swap space.

11. Windows and Linux sharing swap space

12. Linux and Windows shared swap space again (sorry)

13. Linux & OS/2 sharing a swap space, here's how it's done.