From owner-freebsd-questions@FreeBSD.ORG Wed May 31 21:31:54 2006 Return-Path: X-Original-To: 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 1745E16A93A for ; Wed, 31 May 2006 21:31:54 +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 8567743D45 for ; Wed, 31 May 2006 21:31:53 +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.13.6+Sun/8.13.6) with ESMTP id k4VLVrlP008851; Wed, 31 May 2006 17:31:53 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.13.6+Sun/8.13.6/Submit) id k4VLVmlF008850; Wed, 31 May 2006 17:31:48 -0400 (EDT) From: Jerry McAllister Message-Id: <200605312131.k4VLVmlF008850@clunix.cl.msu.edu> To: roberthuff@rcn.com (Robert Huff) Date: Wed, 31 May 2006 17:31:47 -0400 (EDT) In-Reply-To: <17534.1452.443218.271412@jerusalem.litteratus.org> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: 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 21:32:02 -0000 > > > Jerry McAllister writes: > > > The only thing you aren't doing in either of these cases is making > > that da0s1a bootable. If you want that, you need to do: > > That's because it already is, and I do _not_ want to change that. > It's a 4.5 G disk. When I installed the system, I spent 0.5 G > on /, 1 G for swap, another for /var ... and left the rest > untouched. > I now have a project that can use that space. OK. No problem. By the way, you can't run bsdlabel on a mounted and active slice. So, if you are booted to da0s1, then it won't work. You will need to do something like boot to the fixit CD or boot from another disk (which will change your device name for that moment). > > If I am doing it by hand, I would prefer using direct edit as in: > > (NOTE, you apparently already have some usable label on the disk) > > > > >> bsdlabel -e -r da0s1 > > > > This will bring up an edit session (vi unless you have your editor > > set to something else - I use vi) > > as follows. > > > > > # /dev/da0s1: > > > 8 partitions: > > > # size offset fstype [fsize bsize bps/cpg] > > > a: 1024000 0 4.2BSD 0 0 0 > > > b: 2097152 * swap > > > c: * 0 unused 0 0 # "raw" part, don't edit > > > d: 2097152 * 4.2BSD 0 0 0 > > > e: * * 4.2BSD 0 0 0 > > So (using the file method) I can specify the start, use '*' for > the size, and it will compute the correct value for "rest of the slice"? Yes, you can do it both with file and edit method. You only need to specify the offset for the first slice and then * after that for offset. Then size for every one except the last which can also be * - and it will put everything left in to that last one. It works just dandy for me that way. ////jerry > > > Robert Huff > _______________________________________________ > 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" >