From owner-freebsd-questions@FreeBSD.ORG Wed May 31 19:43:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 DC64E16A64C for ; Wed, 31 May 2006 19:43:07 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A84243D46 for ; Wed, 31 May 2006 19:43:05 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k4VJgl2W009900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 31 May 2006 22:42:49 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k4VJixi7058339; Wed, 31 May 2006 22:44:59 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k4VJixla058338; Wed, 31 May 2006 22:44:59 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 31 May 2006 22:44:59 +0300 From: Giorgos Keramidas To: Robert Huff Message-ID: <20060531194459.GB58198@gothmog.pc> References: <17533.61128.28295.514215@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17533.61128.28295.514215@jerusalem.litteratus.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.407, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.79, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: using bsdlabel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 19:43:13 -0000 On 2006-05-31 15:30, Robert Huff wrote: > > I've never used bsdlabel before; would someone please confirm > I've got this right? > Status quo: > > huff@>> bsdlabel da0s1 > # /dev/da0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 1024000 0 4.2BSD 0 0 0 > b: 2097152 1024000 swap > c: 8916012 0 unused 0 0 # "raw" part, don't edit > d: 2097152 3121152 4.2BSD 0 0 0 > > As I understand it, if I run this: > > huff@>> bsdlabel -w da0s1 -f /label.new > > where /label.new has: > > # /dev/da0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 1024000 0 4.2BSD 0 0 0 > b: 2097152 1024000 swap > c: 8916012 0 unused 0 0 # "raw" part, don't edit > d: 2097152 3121152 4.2BSD 0 0 0 > e: 3697708 5128304 4.2BSD 0 0 0 > > this will allocate the rest of the slice to partition 'e'. > (And we're ready to newfs.) Yes, this looks ok :) The 'e' partition can only start *after* the 'd' partition, so it should have an offset of: 'd' start + 'd' size --------- -------- 3121152 + 2097152 = 5218304 The 'rest' of the disk is: 'c' size - 'e' start -------- --------- 8916012 - 5218304 = 3697708