From owner-freebsd-questions@FreeBSD.ORG Mon Mar 13 20:27:34 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 483A416A400 for ; Mon, 13 Mar 2006 20:27:34 +0000 (UTC) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C539F43D48 for ; Mon, 13 Mar 2006 20:27:33 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2) with ESMTP id k2DKRWiU020287; Mon, 13 Mar 2006 15:27:32 -0500 (EST) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.10+Sun/8.12.2/Submit) id k2DKRTA4020286; Mon, 13 Mar 2006 15:27:29 -0500 (EST) From: Jerry McAllister Message-Id: <200603132027.k2DKRTA4020286@clunix.cl.msu.edu> To: m.oe@x-trader.de (Markus Oestreicher) Date: Mon, 13 Mar 2006 15:27:28 -0500 (EST) In-Reply-To: <44154F3A.2050603@x-trader.de> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Adding partition 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: Mon, 13 Mar 2006 20:27:34 -0000 > > Good Day, > > There is free space at the end of my disk and I want to move > /usr/ports do a dedicated partition. > > # disklabel /dev/ad10s1 > # /dev/ad10s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 1024000 0 4.2BSD 2048 16384 64008 > b: 2252800 44032000 swap > c: 368627427 0 unused 0 0 # "raw" > d: 2048000 1024000 4.2BSD 2048 16384 28552 > e: 20480000 3072000 4.2BSD 2048 16384 28552 > f: 20480000 23552000 4.2BSD 2048 16384 28552 > > I want to add a g partition with 10 GByte to end. > > When I enter "disklabel -e /dev/ad10s1" vi opens and I add > the following line to the end: > > g: 20480000 44032000 4.2BSD 2048 16384 28552 > > Upon saving I get an error that partitions "c" and "g" overlap. > As far as I have read this is on purpose. How can I avoid the > error message? I don't know why it would say that c and g overlap, but you have forgot to include the space used for swap in the offset. Your offset should really be 46284800. I have heard that some people think you should put your swap at the highest address, but I don't think that applies in any significant way to modern drives. I could be wrong on that, though. Anyway, using the partition labels out of order does lead to confusion and errors in calculations - in my experience. By the way, did you notice that you can use '*' in the offset field and bsdlabel (or disklabel since 4.xx) will calculate it for you. You can even put a '*' in the last partition (highest address) size AND offset fields and bsdlabel will calculate it for you. I also wonder at your keeping such a large chunk of the FreeBSD slice unallocated that way. Now, if you had reduced the slice, I would think you were saving it for another OS. But it is already in FreeBSD space so just put it all in g: But, to each their own. ////jerry > > I tried it via sysinstall but didn't work either. When saving > the new disklabels I get "Unable to write data to disk ad10". > I assume that is because ad10 is currently mounted? > > Thank you! > > Markus > > > _______________________________________________ > 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" >