From owner-freebsd-questions@FreeBSD.ORG Sun May 9 01:15:39 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 14B8316A4CE for ; Sun, 9 May 2004 01:15:39 -0700 (PDT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 992CA43D2F for ; Sun, 9 May 2004 01:15:37 -0700 (PDT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id i498Hpg7055819; Sun, 9 May 2004 10:17:51 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id i498HokW055818; Sun, 9 May 2004 10:17:50 +0200 (CEST) (envelope-from mail25@bzerk.org) X-Authentication-Warning: ei.bzerk.org: bulk set sender to mail25@bzerk.org using -f Date: Sun, 9 May 2004 10:17:50 +0200 From: Ruben de Groot To: Tim Pushor Message-ID: <20040509081750.GA62178@ei.bzerk.org> References: <409DAA0B.30107@crossthread.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <409DAA0B.30107@crossthread.com> User-Agent: Mutt/1.4.2.1i 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: Sun, 09 May 2004 08:15:39 -0000 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. Ruben > Thanks!, > Tim > > (Please CC me on the reply as I don't subscribe to this list) > _______________________________________________ > 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"