From owner-freebsd-questions@FreeBSD.ORG Wed May 12 21:50:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B83216A4CE for ; Wed, 12 May 2004 21:50:31 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5C3243D46 for ; Wed, 12 May 2004 21:50:30 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i4D4oU8G086826; Wed, 12 May 2004 23:50:30 -0500 (CDT) (envelope-from dan) Date: Wed, 12 May 2004 23:50:30 -0500 From: Dan Nelson To: Richard Liang Message-ID: <20040513045029.GD81440@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: Sharing Linux swap space on FreeBSD 4.9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 04:50:31 -0000 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 dnelson@allantgroup.com