From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 18 21:39:37 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 507481065672 for ; Tue, 18 Nov 2008 21:39:37 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from arcturus.maxiscale.com (arcturus.maxiscale.com [76.231.178.136]) by mx1.freebsd.org (Postfix) with ESMTP id 278D58FC12 for ; Tue, 18 Nov 2008 21:39:37 +0000 (UTC) (envelope-from psteele@maxiscale.com) X-ASG-Debug-ID: 1227044148-7adb00020000-P5m3U7 X-Barracuda-URL: http://10.100.1.25:8000/cgi-bin/mark.cgi Received: from polaris.maxiscale.com (localhost [127.0.0.1]) by arcturus.maxiscale.com (Spam Firewall) with ESMTP id A57EE2FF1B for ; Tue, 18 Nov 2008 13:35:48 -0800 (PST) Received: from polaris.maxiscale.com (polaris.maxiscale.com [10.100.1.24]) by arcturus.maxiscale.com with ESMTP id CYkrERLEPg1mhsV8 for ; Tue, 18 Nov 2008 13:35:48 -0800 (PST) X-ASG-Whitelist: Client X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 X-ASG-Orig-Subj: What are proper install.cfg for configuring multiple slices? Date: Tue, 18 Nov 2008 13:35:46 -0800 Message-ID: <2ACA3DE8F9758A48B8BE2C7A847F91F240C97F@polaris.maxiscale.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: What are proper install.cfg for configuring multiple slices? Thread-Index: AclJxZ3MGVGFCUBhRhG5VKk+2wbncQ== From: "Peter Steele" To: X-Barracuda-Connect: polaris.maxiscale.com[10.100.1.24] X-Barracuda-Start-Time: 1227044148 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at maxiscale.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: What are proper install.cfg for configuring multiple slices? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 21:39:37 -0000 I want to do an automated sysinstall through an install.cfg script and the script partition the install disk into three slices. I've been going through various tests trying to figure out what the proper directives are but I haven't had much luck, and I can't find any good examples. Here is a snippet of my config file: =20 disk=3Dad0 bootManager=3Dstandard partition=3D12582912 diskPartitionEditor partition=3D2097152 diskPartitionEditor partition=3Dfree diskPartitionEditor =20 ad0s1-1=3Dufs 4194304 / ad0s1-2=3Dufs 4194304 /tmp ad0s1-3=3Dufs 4194304 /var ad0s2-1=3Dswap 2097152 none ad0s3-1=3Dufs 4194304 none ad0s3-2=3Dufs 4194304 none ad0s3-3=3Dufs 0 none diskLabelEditor diskLabelCommit =20 My intent here is to create three slices-one 6GB in size, another 1GB in size, and the third sized to consume the remaining free space. When I run this through sysinstall, it complains that it can't find the space for the partitions. It even complains that it can't find any free space. Because the slices don't get created, the subsequent label assignments fail as well. What is the proper commands for creating multiple slices in install.cfg? =20 Another thing I'm having trouble with is partitioning more than one disk. I have four disks that I'd like to partition as part of the install.cfg script. In fact, I want to partition the four disks more or less identically (although only one should have an active root partition). Again though, if I try partitioning another disk after ad0, sysinstall complains about various things and the disk does not get partitioned. Can multiple disks be partitioned in this manner or does the step have to be done as a post-install operation? =20