Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 May 2004 10:17:50 +0200
From:      Ruben de Groot <mail25@bzerk.org>
To:        Tim Pushor <timp@crossthread.com>
Cc:        questions@freebsd.org
Subject:   Re: Scripted fdisk/slice/fs generation?
Message-ID:  <20040509081750.GA62178@ei.bzerk.org>
In-Reply-To: <409DAA0B.30107@crossthread.com>
References:  <409DAA0B.30107@crossthread.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040509081750.GA62178>