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

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

Post by Yuan Zhong X » Thu, 15 Jun 1995 04:00:00



        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

 
 
 

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

Post by Louis J. LaBash J » Fri, 16 Jun 1995 04:00:00


:       Hello there,

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

Grab Peter Anvin's "Swap-Space", it's on "sunsite.unc.edu"; look
under "pub/Linux/docs/HOWTO/mini".  It walks you thru the process.

Hope this is of some utility.
--


 
 
 

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

Post by Frank Twieha » Sun, 18 Jun 1995 04:00:00


Hi,

Quote:>           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%

Wouw ! I've never seen a Linux SWAP-PARTITION formattet with a FAT-system.  
As I know it, Linux has it's own format for swap-partitions. (But I may be  
wrong... !?)

When you run FDISK from Linux, you are able to give a partition the ID-No.  
81 or 82 (I don't remember). That indicates a swap-partition for Linux !  
And this partition must be formattet under Linux and activated with "swap  
on".

And please have in mind that one swap-partition for linux can only have  
the size of a maximum of 16megs ! (When you need more, create more swap-
partitions).

cu on the net, merlin.
## CrossPoint v3.02 ##

 
 
 

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

Post by H. Peter Anv » Sun, 18 Jun 1995 04:00:00




In newsgroup: comp.os.linux.setup

Quote:

>    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.

Your swap space partition is /dev/sda5, not /dev/sda2.  The extended
partition itself is *not* the same thing as the logical "drives"
(partitions) contained within.

By the way -- the info posted by someone stating Linux can only use
16 Mb per swap partition is wrong.  The limit is 128 Mb per partition and
has been for quite some time.

        /hpa
--

"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

 
 
 

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

Post by Mike Humphre » Tue, 20 Jun 1995 04:00:00



Quote:> > Logical DOS Drive info:
> > Drv   Volume Label    Mbytes    System    Usage
> > D:    SWAP SPACE       15       FAT12     100%
> Wouw ! I've never seen a Linux SWAP-PARTITION formattet with a FAT-system.  

Did you read the HOWTO before you posted this answer?  It quite clearly
says that if you're going to share swap space it needs to be a dos
partition to begin with, so that windows can recognise it. Linux couldn't
care less about the partition type, and will use it anyway.  The scripts
in the howto put the disk back how windows wants it before shutdown.
Works very well, I've had it running almost as long as I've had Linux.

Quote:> And please have in mind that one swap-partition for linux can only have  
> the size of a maximum of 16megs ! (When you need more, create more swap-
> partitions).

Which version are you using? That restriction went ages ago!

Mike Humphrey          | Maintainer UBU Clubs/Societies Index
Bradford University    | and brad.cc.service/brad.questions FAQ

WARNING:- Email will not be read July-September due to vacation !

 
 
 

1. Linux & MS-Windows sharing swap space?

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

2. tts/0: 1 input overrun(s)

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

4. help installing RH 8.0

5. Linux and shared swap space with ms-windows

6. can't anybody help ?!

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

8. Lpr printers halting on me!!!!!

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.