From owner-freebsd-questions@FreeBSD.ORG Tue Feb 19 20:45:27 2008 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 E361C16A41A for ; Tue, 19 Feb 2008 20:45:27 +0000 (UTC) (envelope-from jeff.gold@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 78C8413C447 for ; Tue, 19 Feb 2008 20:45:27 +0000 (UTC) (envelope-from jeff.gold@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so770100nfb.33 for ; Tue, 19 Feb 2008 12:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=HewDlVFwpk5InE4CO4j1zYFTiNX6hqd9tDBZ3HmoaQE=; b=oFTJ6FkXz5886lDvpbh6CLTEmQez+S4iq05mN+wYAtgEA2hjNIAOKELONVGDMVjmPmpO1OcDc0QHK66mSAGEOZa6SWd2LUM//bsf089l2BzIjcgxSqA6GV02UGGQulILHuftV8EhT4ez3TjJlljYEhIBxD42RxfuHGNL7wyIwM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BeAhca/7WyDMRs6TMKLtTjNFwXgphnlRR4tRfG0/z/nJ1dbHBSxaTPtR6n6/H+wgvuEn6/QNCuWqx1q6+xkZ7BtWqyh3PDFTUy5I2gLUC4FAQ0DDA/ujIajLQt40G8GQZDevnQTFdnsgv6G5xWcfMV3LU6rj7D3eaxtA2KLtPRo= Received: by 10.78.192.20 with SMTP id p20mr12264339huf.40.1203453925610; Tue, 19 Feb 2008 12:45:25 -0800 (PST) Received: by 10.78.19.19 with HTTP; Tue, 19 Feb 2008 12:45:25 -0800 (PST) Message-ID: <4bded9640802191245q20832a83j31723763ab21a940@mail.gmail.com> Date: Tue, 19 Feb 2008 15:45:25 -0500 From: "Jeff Gold" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: diskLabelCommit fails within a sysinstall script? 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: Tue, 19 Feb 2008 20:45:28 -0000 I am attempting to partition a disk non-interactively using sysinstall, but I don't seem to be getting this right. I use the following script on an 80G drive: debug=true ufs=/6.2-RELEASE mediaSetUFS disk=ad0 partition=all bootManager=boot diskPartitionEditor diskPartitionWrite ad0s1a=ufs 1048576 / ad0s1b=swap 4194304 none ad0s1d=ufs 2097152 /tmp ad0s1e=ufs 16777216 /usr ad0s1f=ufs 0 /var 1 diskLabelEditor diskLabelCommit shutdown This runs without any evident error, but the relevant contents of /dev change from just ad0 to ad0, ad0s1 and ad0s1c. The first two make sense but ad0s1c is the only device I didn't request. None of the ones I did seem to appear. A boot loader does seem to have been installed but when I select "F1" for FreeBSD it says "Invalid partition" and complains that there's "No /boot/loader" to be found. So I guess the first stage got installed but not the next one? Can anyone explain why this doesn't work? I skipped the 'c' partition because that's what sysinstall wants to do when I run it interactively, but renaming the devices to include the 'c' makes no difference. There is still an s1c and nothing else. Also, I tried the syntax in the man page (ad0s1-1 instead of ad0s1a) but that -- perversely -- gives me a bunch of errors about being unable to mount partitions with the other style names. Jeff