From owner-freebsd-questions@FreeBSD.ORG Mon May 10 07:46:50 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 C06DA16A4CE for ; Mon, 10 May 2004 07:46:50 -0700 (PDT) Received: from hercules.crossthread.com (hercules.crossthread.com [64.56.149.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E57943D3F for ; Mon, 10 May 2004 07:46:50 -0700 (PDT) (envelope-from timp@crossthread.com) Received: from [192.168.1.2] (dedalus.crossthread.com [192.168.1.2]) (authenticated)i4AEmUC82076; Mon, 10 May 2004 08:48:31 -0600 (MDT) Message-ID: <409F95C2.8010902@crossthread.com> Date: Mon, 10 May 2004 08:46:26 -0600 From: Tim Pushor User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Kennaway References: <409DAA0B.30107@crossthread.com> <20040509081750.GA62178@ei.bzerk.org> <20040509084103.GA1870@xor.obsecurity.org> In-Reply-To: <20040509084103.GA1870@xor.obsecurity.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Ruben de Groot cc: questions@freebsd.org Subject: Re: Scripted fdisk/slice/fs generation? 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: Mon, 10 May 2004 14:46:50 -0000 Kris, That is *exactly* what I was looking for. Thank you! I was trying to avoid the sysinstall route if possible. Tim Kris Kennaway wrote: >On Sun, May 09, 2004 at 10:17:50AM +0200, Ruben de Groot wrote: > > >>On Sat, May 08, 2004 at 09:48:27PM -0600, Tim Pushor typed: >> >> >>>Hi all, >>> >>>I do CPIO style image backups of my FreeBSD systems. In the event that I >>>need to restore one of these backups, I usually use the FreeBSD >>>installation media to fdisk and create filesystems, then mount the new >>>filesystems and restore the CPIO archive. >>> >>>This system works great for me, but I would like to automate the >>>restoration process. I have worked a little with fdisk and disklabel >>>back in FreeBSD 2.x days (and trying early versions of OpenBSD) but >>>wouldn't really know where to start automating that process. ( I do >>>write code, but the thought of trying to use disklabel to read the >>>geometry of the disks, calculate sizes, cylinder boundaries, etc give me >>>a headache ) >>> >>>I would really like to specify minimum sizes of partitions and >>>filesystems, with one having all the excess (rather than having to count >>>cylinders). >>> >>>I've done some searching on Google and havn't really come up with >>>anything conclusive. >>> >>>Can anyone point me in the right direction? >>> >>> >>Sounds like you want to use sysinstall in batch mode. The manpage >>sysinstall(8) gives a detailed explanation on how to do this. >> >> > >See also the diskprep port that was committed a few days ago. > >Kris > >