From owner-freebsd-questions@FreeBSD.ORG Thu Jun 14 03:53:53 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE7AE16A46D for ; Thu, 14 Jun 2007 03:53:53 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.freebsd.org (Postfix) with ESMTP id 3121C13C46E for ; Thu, 14 Jun 2007 03:53:52 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so610215uge for ; Wed, 13 Jun 2007 20:53:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RU8F7fTAhIEKxkV+I309ysAgthlnSb9Sbk4xufzRoJwxdbUjIZVsxOBQmBQ6YYxjhbGXmTaamknI0bSIIEXpqrs4xRKbJNTjKSgq3VCspPiRO+FugIY3y0U2VH0YdWNtwhVgaLZ4AZG9RMNiISBdw9PAo+JSCF3py45ehbflEic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SlWlpWCB/iA0w/utJR0PNeTpmqQNJLCLbb5L/XrpZc0oEoht+baeTgK0JmKDDoNpYRcAroReZk9GZ9kyfqQjPDJa9oPhjPOxyTPRX1Mo1W1TtVEAkFoyu73rX+/Pcuz3LCCSjwpgvhtfutXdP43jAN2rcdWJ1f7HOFz7tBNwXR0= Received: by 10.82.146.14 with SMTP id t14mr2537259bud.1181793231703; Wed, 13 Jun 2007 20:53:51 -0700 (PDT) Received: by 10.82.187.12 with HTTP; Wed, 13 Jun 2007 20:53:51 -0700 (PDT) Message-ID: Date: Wed, 13 Jun 2007 23:53:51 -0400 From: "illoai@gmail.com" To: "Stevan Tiefert" In-Reply-To: <1181769588.38379.4.camel@vagabund.w33> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1181769588.38379.4.camel@vagabund.w33> Cc: freebsd-questions@freebsd.org Subject: Re: can not add a 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: Thu, 14 Jun 2007 03:53:53 -0000 On 13/06/07, Stevan Tiefert wrote: > Hello list, > > I left a little bit space left in my slice during the installation. Now > I wanted to use this left space to create a gbde-partition. > > When I use sysinstall and create in menu "Label" a new partition and I > hit "W" to write my changes to disk an error appears, that label didn't > created the partition I wanted. > > My question is why can I not add a partition in my existing slice? On > what should I take care maybe? > sysinstall, while functional, is quite slow and clumsy. Assuming your disk is /dev/ad0, try: % bsdlabel ad0s1 (this won't modify anything) The out put should resemble: # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 2048 16384 28552 b: 995328 2097152 swap c: 20044080 0 unused 0 0 # "raw" part, don't edit d: 2594816 3092480 4.2BSD 2048 16384 28552 e: 2097152 5687296 4.2BSD 2048 16384 28552 f: 12259632 7784448 4.2BSD 2048 16384 28552 If I had any room left here (I don't) I could # bsdlabel -e ad0s1 and add the line: g: * * unused 0 0 at the bottom, which would cause bsdlabel to dedicate any remaining space to partition "g" and do all the offset calculations for me. (If you are unfamiliar with vi, you can type setenv EDITOR ee (or export EDITOR=ee if you use bash (ksh should take bash syntax, I think. You're on your own with zsh)) first.) And then # newfs -U ad0s1g Note well that you can only have a-h, as I believe the eight partition limit still holds under bsdlabel. -- --