From owner-freebsd-questions@FreeBSD.ORG Fri Jan 28 19:49:27 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 EEDFE16A4CE for ; Fri, 28 Jan 2005 19:49:27 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4155F43D1F for ; Fri, 28 Jan 2005 19:49:25 +0000 (GMT) (envelope-from j65nko@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so448993wra for ; Fri, 28 Jan 2005 11:49:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=C4RxRhVc7C7G8Ras0InmIY3BVU4jfhYDjRRz6FTEkgt5Np6XRIIaxiQtNNeXBsF4GdDPcYkTuKtOSwE7MPkxs+EJRRa9dPDROxHKxYB63SttuxTf6/XIdz9yxHeuukeoeaOky6KBCPKDdzJSx+Jj8TJ4Q6IcxNUnP1/KJ7996K0= Received: by 10.54.50.63 with SMTP id x63mr116128wrx; Fri, 28 Jan 2005 11:49:21 -0800 (PST) Received: by 10.54.37.40 with HTTP; Fri, 28 Jan 2005 11:49:21 -0800 (PST) Message-ID: <19861fba0501281149488bf26d@mail.gmail.com> Date: Fri, 28 Jan 2005 20:49:21 +0100 From: J65nko BSD To: freebsd-questions@freebsd.org In-Reply-To: <20050128143546.GD307@weller-fahy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050128143546.GD307@weller-fahy.com> Subject: Re: Adding a partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: J65nko BSD List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 19:49:28 -0000 On Fri, 28 Jan 2005 15:36:08 +0101, David J. Weller-Fahy wrote: > 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? > First you need to create a FreeBSD slice with fdisk, say /dev/ar0s2. Only then you can disklabel that /dev/ar0s2. =Adriaan=