From owner-freebsd-doc@FreeBSD.ORG Mon Feb 9 18:11:28 2004 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98A2A16A4CF for ; Mon, 9 Feb 2004 18:11:28 -0800 (PST) Received: from spam2.snu.ac.kr (spam2.snu.ac.kr [147.46.10.68]) by mx1.FreeBSD.org (Postfix) with SMTP id 0350A43D1F for ; Mon, 9 Feb 2004 18:11:28 -0800 (PST) (envelope-from nospam@users.sourceforge.net) Received: (snipe 16832 invoked by alias); 10 Feb 2004 11:11:23 +0900(KST) Received: from nospam@users.sourceforge.net with SpamSniper2.76 (Processed in 0.048214 secs); Received: from unknown (HELO sis1.snu.ac.kr) (147.46.10.36) by 0 with SMTP; 10 Feb 2004 11:11:23 +0900(KST) X-RCPTTO: freebsd-doc@FreeBSD.org,ceri@FreeBSD.org, Received: from users.sourceforge.net (cisr.snu.ac.kr [147.46.44.181]) by sis1.snu.ac.kr (8.12.10/8.12.10) with ESMTP id i1A289wT109338; Tue, 10 Feb 2004 11:08:09 +0900 Message-ID: <40283DCC.1060702@users.sourceforge.net> Date: Tue, 10 Feb 2004 11:11:24 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ceri Davies , freebsd-doc@FreeBSD.org References: <402624E2.8010607@users.sourceforge.net> <20040209214025.GI449@submonkey.net> In-Reply-To: <20040209214025.GI449@submonkey.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Handbook 19.7 Diskless Operation: bug in configuring swap text X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2004 02:11:28 -0000 Ceri Davies wrote: > On Sun, Feb 08, 2004 at 09:00:34PM +0900, Rob wrote: > >>Hi, >> >>Section "19.7.1.6 Configuring Swap", on diskless operation, has a mistake, >>that drove me almost crazy. It says there: >> >>---------------------------------------------------------------- >> >>/etc/bootptab would use the following syntax instead: >> >>T128="192.168.4.4:/netswapvolume/netswap":T129=64000 >> >>---------------------------------------------------------------- >> >>The T129 here is totally wrong, because this T129 is a syntax error and >>stops bootpd from working properly! >> >>So the second line above should be replaced by: >> >>T128="192.168.4.4:/netswapvolume/netswap":T129=0000fa00 > > Rob, would an equivalent be: > > T128="192.168.4.4:/netswapvolume/netswap":T129="64000" > > I think that would be clearer for most users. No, that doesn't work, unfortunately. Using the quoted decimal number, the kernel initially boots, but panics as soon as it tries configuring the swap space. The message is something like: [...] bootp panic: expected 4 bytes for swaplen not 6 bytes rebooting.... Using unquoted hex numbers solvs this problem. So it is really important to correct and mention this in the handbook, otherwise it'll drive people crazy. It took me a very long time to find the solution. Rob.