Hello list,

I am trying to share swap between OpenBSD 4.0/i386 and FreeBSD,
on a Dell laptop. I have sliced the disk as

Disk: wd0       geometry: 41344/15/63 [39070080 Sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending       LBA Info:
 #: id    C   H  S -    C   H  S [       start:      size   ]
------------------------------------------------------------------------
 0: A5    0   1  1 - 22191  14 63 [          63:    20971377 ] FreeBSD     
*1: A6 22192   0  1 - 39944  14 63 [    20971440:    16776585 ] OpenBSD     
 2: 82 39945   0  1 - 41053  14 63 [    37748025:     1048005 ] OpenBSD
 3: 82 41054   0  1 - 41343  14 63 [    38796030:      274050 ] OpenBSD

and I try to make both systems use partiton 3 as their swap.

(The type of 'OpenBSD' = a6 for slices 2 and 3 is arbitrary - one will
just be the swap, the last one is for suspend/hibernation and my FS
experiments.)

The FreeBSD installation lives in 'ad0s1a' (the first and only
partition within the FreeBSD slice), and uses 'ad0s3b' (the only
partition within the third slice) as its swap.

The OpenBSD installation lives in 'wd0a', and I don't know how to make
it use the third partition as the swap. How do I even refer to the
pieces of disk which lie outside the OpenBSD slice? I only see
/dev/wd0? and /dev/rwd0? under /dev - which of them would possibly be
the other slices? Isn't 'wd0' just the OpenBSD portion of the disk
(ie, slice 1 in the above fdisk output)?

I came accross an old message
http://openbsd.monkey.org/misc/199803/msg00085.html
where Marc Espie writes

        I wanted to share the swap partitions with other systems, so
        my swap resided on another drive. Took me three trials to get
        it right.

Is it really neccessary to have the swap partition on a separate disk
to share it with other systems?

        Thank you very much

                Jan

Reply via email to