From owner-freebsd-questions@FreeBSD.ORG Wed Jan 27 22:10:47 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 832CC106568B for ; Wed, 27 Jan 2010 22:10:47 +0000 (UTC) (envelope-from fbsdlists@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 5ABBD8FC1B for ; Wed, 27 Jan 2010 22:10:47 +0000 (UTC) Received: by pwi15 with SMTP id 15so28576pwi.3 for ; Wed, 27 Jan 2010 14:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5E8wQF93qpiv7jiQmQZ/zxGGoLMCr8puqTEEflYVtWY=; b=toEmz4XFzQYEBbD1Blg05/S/LW44i0ly6WrCoHJX2upaWaha+MysaE9Qprb0Boy4Al K7iRNGLhgjCrkMvyvxzzR09URxZJ/kJLvCjzYkYhgilvUvAtfDrfqEXsk0rV5/buvNzV kB0J4+q1Fx0MT6/nOGw/ALIXVHNlw9N9mzHww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=xHXSKFQQ/HuVzK8QAPR7yBpUaaR7xhvFYk+zOgR75gqJrV7PxeCXulR8ESYlE5cphq HvRSW2Iy4ylDJLyZERjGlFYdAOBaESpoA3w0bPvHbC5rMIOZsKmJA64ZUC+msP0p+nwo osSYyApUoa/JbYGRFVZelqrXf3hU1BbvH2+Q0= MIME-Version: 1.0 Received: by 10.142.5.26 with SMTP id 26mr642607wfe.210.1264630246996; Wed, 27 Jan 2010 14:10:46 -0800 (PST) In-Reply-To: <201001272115.o0RLFa2r058113@dc.cis.okstate.edu> References: <201001272115.o0RLFa2r058113@dc.cis.okstate.edu> Date: Wed, 27 Jan 2010 17:10:46 -0500 Message-ID: <54db43991001271410y6e4156ddl4737d4d6f96f2b6c@mail.gmail.com> From: Bob Johnson To: Martin McCormick Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: Swap Partition First? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 22:10:47 -0000 The only thing that looks out of place is that you have defined ad0s1-2 before ad0s1-1. I've never tested it, but perhaps this is causing it to get confused when calculating the disk layout? In other words, perhaps you should use #1G swap followed by / on rest of disk. # ad0s1-1=swap 2097152 #All the rest is FreeBSD with soft updates. ad0s1-2=ufs 0 / 1 so they are defined in numerical sequence. On 1/27/10, Martin McCormick wrote: > Our FreeBSD systems mostly have a very simple disk layout. There > is a 1 or 2-gigabyte swap partition and all the rest is FreeBSD. > When manually configuring these partitions in sysinstall, I > usually set up swap first with a 1GB size and then use the > remaining space by selecting the values as defaults. > > An attempt to script this in an install.cfg file is not > going well. The disk formatting part of the file is as follows: > > disk=ad0 > partition=all > bootManager=none > diskPartitionEditor > #Entire disk is FreeBSD. > diskPartitionWrite > ################################ > > ################################ > # All sizes are expressed in 512 byte blocks! > # > #1G swap followed by / on rest of disk. > # > ad0s1-2=swap 2097152 > #All the rest is FreeBSD with soft updates. > ad0s1-1=ufs 0 / 1 > # Let's do it! > diskLabelEditor > diskLabelCommit > > # OK, everything is set. Do it! > installCommit > > This doesn't work. sysinstall reports that it can't > write the swap space. > > fdisk reports a FreeBSD partition and all the others are > shown as free. > > Any ideas? Thank you. > > Martin McCormick WB5AGZ Stillwater, OK > Systems Engineer > OSU Information Technology Department Telecommunications Services Group > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- -- Bob Johnson fbsdlists@gmail.com