Re: Sharing Linux swap space on FreeBSD 4.9

2004-06-07 Thread Richard Liang
Yeah, it does.
[EMAIL PROTECTED]:/dev ls -l ad0s4
crw-r-  2 root  operator  116, 0x00050002 May 29 17:00 ad0s4
Richard
gt;From: Chris Pressey lt;[EMAIL PROTECTED]gt;
gt;To: quot;Richard Liangquot; lt;[EMAIL PROTECTED]gt;
gt;CC: [EMAIL PROTECTED]
gt;Subject: Re: Sharing Linux swap space on FreeBSD 4.9
gt;Date: Sun, 6 Jun 2004 13:44:38 -0700
gt;
gt;On Thu, 13 May 2004 04:19:56 +
gt;quot;Richard Liangquot; lt;[EMAIL PROTECTED]gt; wrote:
gt;
gt; gt; Hello everyone,
gt; gt;
gt; gt; I am trying to enable the linux swap space I have under Red Hat on 
FreeBSD
gt; gt; 4.9.  [...]
gt; gt; So I've tried quot;swapon /dev/ad0s4quot; from FreeBSD and it 
always says:
gt; gt; swapon: /dev/ad0s4: Device not configured
gt; gt; I poked around my kernel config file, and changed the NSWAPDEVS 
variable to
gt; gt; 2; still no luck.
gt;
gt;Does `ad0s4' exist in your /dev directory?  If not, you probably want to
gt;
gt;   cd /dev amp;amp; ./MAKEDEV ad0s4
gt;
gt;-Chris

_
Add photos to your e-mail with MSN Premium. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sharing Linux swap space on FreeBSD 4.9

2004-06-06 Thread Chris Pressey
On Thu, 13 May 2004 04:19:56 +
Richard Liang [EMAIL PROTECTED] wrote:

 Hello everyone,
 
 I am trying to enable the linux swap space I have under Red Hat on FreeBSD 
 4.9.  [...]
 So I've tried swapon /dev/ad0s4 from FreeBSD and it always says:
 swapon: /dev/ad0s4: Device not configured
 I poked around my kernel config file, and changed the NSWAPDEVS variable to 
 2; still no luck.

Does `ad0s4' exist in your /dev directory?  If not, you probably want to

  cd /dev  ./MAKEDEV ad0s4

-Chris
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sharing Linux swap space on FreeBSD 4.9

2004-05-13 Thread Richard Liang


gt;From: Dan Nelson lt;[EMAIL PROTECTED]gt;
gt;To: Richard Liang lt;[EMAIL PROTECTED]gt;
gt;CC: [EMAIL PROTECTED]
gt;Subject: Re: Sharing Linux swap space on FreeBSD 4.9
gt;Date: Wed, 12 May 2004 23:50:30 -0500
gt;
gt;In the last episode (May 13), Richard Liang said:
gt; gt; Hello everyone,
gt; gt;
gt; gt; I am trying to enable the linux swap space I have under Red Hat on 
FreeBSD
gt; gt; 4.9.  My disk configuration looks like:
gt; gt;
gt; gt; ad0:
gt; gt; s1 - NTFS
gt; gt; s2 - Windows extended
gt; gt; s3 - ext3
gt; gt; s4 - linux swap
gt; gt;
gt;
gt;You sure swap is on primary fdisk partition 4, and not extended
gt;partition 1 (aka s5) ?  I think Linux will create an extended partition
gt;rather than use up all four primaries.

Yeah, I'm quite sure.  The output from an `fdisk ad0` gives:

*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=7297 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=7297 heads=255 sectors/track=63 (16065 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 7,(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
   start 63, size 40965687 (20002 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 15,(Extended DOS, LBA)
   start 40965750, size 55295730 (26999 Meg), flag 0
   beg: cyl 1023/ head 254/ sector 63;
   end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 131,(Linux filesystem)
   start 96261480, size 19904535 (9719 Meg), flag 0
   beg: cyl 1023/ head 254/ sector 63;
   end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 130,(Linux swap or Solaris x86)
   start 116166015, size 1044225 (509 Meg), flag 0
   beg: cyl 1023/ head 254/ sector 63;
   end: cyl 1023/ head 254/ sector 63
Richard

_
Add photos to your e-mail with MSN Premium. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sharing Linux swap space on FreeBSD 4.9

2004-05-12 Thread Richard Liang
Hello everyone,

I am trying to enable the linux swap space I have under Red Hat on FreeBSD 
4.9.  My disk configuration looks like:

ad0:
s1 - NTFS
s2 - Windows extended
s3 - ext3
s4 - linux swap
ad1:
s1 - This is my BSD slice
s2 - NTFS
s3 - ext3
s4 - none
So I read the HOWTO on the internet about sharing the swap space; and with 
it's help I can now swap on the BSD swap space from Linux.  However, the 
HOWTO only says that FreeBSD can swap on any partition without saying how 
to do it.

So I've tried swapon /dev/ad0s4 from FreeBSD and it always says:
swapon: /dev/ad0s4: Device not configured
I poked around my kernel config file, and changed the NSWAPDEVS variable to 
2; still no luck.

I looked in the questions archive from January on, but found no help (albeit 
not that throughly).  Note that I've been using FreeBSD for 4 months without 
this swap space, without problems.  Has anyone else encountered this 
problem?

Thanks in advance,

Richard

_
Add photos to your e-mail with MSN Premium. Get 2 months FREE*  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sharing Linux swap space on FreeBSD 4.9

2004-05-12 Thread Dan Nelson
In the last episode (May 13), Richard Liang said:
 Hello everyone,
 
 I am trying to enable the linux swap space I have under Red Hat on FreeBSD 
 4.9.  My disk configuration looks like:
 
 ad0:
 s1 - NTFS
 s2 - Windows extended
 s3 - ext3
 s4 - linux swap
 
 So I read the HOWTO on the internet about sharing the swap space; and
 with it's help I can now swap on the BSD swap space from Linux. 
 However, the HOWTO only says that FreeBSD can swap on any partition
 without saying how to do it.
 
 So I've tried swapon /dev/ad0s4 from FreeBSD and it always says:
 swapon: /dev/ad0s4: Device not configured
 I poked around my kernel config file, and changed the NSWAPDEVS variable to 
 2; still no luck.

You sure swap is on primary fdisk partition 4, and not extended
partition 1 (aka s5) ?  I think Linux will create an extended partition
rather than use up all four primaries.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]