From owner-freebsd-questions Mon Jul 29 5: 6: 3 2002 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 642C137B400 for ; Mon, 29 Jul 2002 05:06:00 -0700 (PDT) Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 217D743E3B for ; Mon, 29 Jul 2002 05:06:00 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.12.5/8.12.5) with ESMTP id g6TC5x5Q016923; Mon, 29 Jul 2002 05:05:59 -0700 (PDT) (envelope-from andrsn@andrsn.stanford.edu) Date: Mon, 29 Jul 2002 05:05:59 -0700 (PDT) From: Annelise Anderson To: =?iso-8859-1?q?Oliver=20Humpage?= Cc: freebsd-questions@FreeBSD.ORG, oliver@watershed.co.uk Subject: Re: formatting 'unused space' In-Reply-To: <20020729081926.23979.qmail@web13901.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 29 Jul 2002, Oliver Humpage wrote: > > Sorry, this is an embarrassingly newbie question... > > A 20GB disk in my mail server was about to die, so I > did an emergency dd(1) of its contents over to a new > 40GB drive. So now, on the new drive, I have a 20GB > partition (with /, /usr and /var on it), and 20GB of > "unused" space. > > Is it possible to fdisk (and presumably disklabel) > this spare 20GB? I don't want to do anything fancy > with it, just to have it mounted as /spare_space or > similar. And since this is our main mail server, I > don't really want to wipe the whole disk and restore > from tape... > > I couldn't tell from `man fdisk` whether you can > format one partition without wiping the whole drive. > Can you in fact just ask for the unused space to be > "FreeBSD" in sysinstall, and it won't touch your other > partitions? Or if fdisk won't do it, is there anything > that can? > Yes, you can create a slice (dos partition) in what space, subject to the limitation of four slices per drive. You can then make up to eight partitions on the slice for different file systems. You could create a /usr/local file system; or a /usr/ports; and/or a /usr/obj; or move tmp there will a symlink; or just stash stuff like old kernels or isos. Often people make /home a separate partition. If you're careful and don't delete what exists, you should not have any trouble overwriting what's already on the disk. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: BSDmall.com and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message