From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 15:47:49 2005 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 6D93B16A4CE for ; Fri, 28 Jan 2005 15:47:49 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D260B43D54 for ; Fri, 28 Jan 2005 15:47:48 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id j0SFlju14517; Fri, 28 Jan 2005 10:47:45 -0500 (EST) From: Jerry McAllister Message-Id: <200501281547.j0SFlju14517@clunix.cl.msu.edu> To: dave-lists-freebsd-questions@weller-fahy.com (David J. Weller-Fahy) Date: Fri, 28 Jan 2005 10:47:44 -0500 (EST) In-Reply-To: <20050128143546.GD307@weller-fahy.com> from "David J. Weller-Fahy" at Jan 28, 2005 03:36:08 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Adding a partition 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: Fri, 28 Jan 2005 15:47:49 -0000 > > I left about 26GB free on my 80GB hard drive. Having found a use for > that space, I now want to add a partition. I've not added one by hand, > and /stand/sysinstall gives me a 'cannot write to ...' message, so I > want confirmation that what I'm about to do won't crump on me. ;] > > System is two 80GB ATA hard drives on a 'Promise PDC20269 UDMA133 > controller' (according to dmesg), with one on each channel (both > master). I'm running software raid using atacontrol. > > My current partition table follows: > > #v+ > dave[tigger]~> sudo bsdlabel ar0s1 > # /dev/ar0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 1048576 0 4.2BSD 2048 16384 8 > b: 2097152 1048576 swap > c: 156296322 0 unused 0 0 # "raw" part, don't edit > d: 73400320 30408704 4.2BSD 2048 16384 28544 > e: 2097152 3145728 4.2BSD 2048 16384 28552 > f: 12582912 5242880 4.2BSD 2048 16384 28552 > g: 12582912 17825792 4.2BSD 2048 16384 28552 > #v- > > To use up the unused space, I believe I need to add the following line: > > #v+ > h: 52487298 103809024 4.2BSD 2048 16384 28552 > #v- > > Could someone who's done that before confirm whether that looks right? That looks correct to me, though I wonder why you made a d: partition out of order in there. In FreeBSD 4.xx disklabel, you can just put a '*' in for the size and it will make a partition of all remaining unpartitioned space. I don't have a 5.xx bsdlabel handy, but would be surprised if it didn't offer that feature. You will need to be booted in such a way as nothing on that slice is mounted to be able to write the new label, I believe. ////jerry > > Regards, > -- > dave [ please don't CC me ]