From owner-freebsd-questions@FreeBSD.ORG Fri Jul 11 21:08:58 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35AD87FA for ; Fri, 11 Jul 2014 21:08:58 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBE8226C0 for ; Fri, 11 Jul 2014 21:08:57 +0000 (UTC) Received: from r56.edvax.de (port-92-195-69-249.dynamic.qsc.de [92.195.69.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id B5DE83CD98; Fri, 11 Jul 2014 23:08:55 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s6BL8sXt002668; Fri, 11 Jul 2014 23:08:54 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 11 Jul 2014 23:08:54 +0200 From: Polytropon To: Warren Block Subject: Re: gpart and bsdlabel Message-Id: <20140711230854.1754a05f.freebsd@edvax.de> In-Reply-To: References: <20140711201114.GA2064@bewilderbeast.blackhelicopters.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org, "Michael W. Lucas" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2014 21:08:58 -0000 On Fri, 11 Jul 2014 15:02:45 -0600 (MDT), Warren Block wrote: > On Fri, 11 Jul 2014, Michael W. Lucas wrote: > [...] > > Is there a way to specify which partition letter you want to create, > > or start with, or something? > > Interesting question. I always figured the letters were dynamic. If > they are static, maybe -l could be used to assign them to BSD > partitions. The letters can be from 'a' to 'h' and are assigned in the way the label actually contains them, if I remember correctly, with the exception that: 'a' has to be the 1st partition if you want to boot from it 'b' is reserved for swap 'c' is "the whole thing" (whole slice, whole disk) Here's an actual example: % bsdlabel ad4s1 # /dev/ad4s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 0 0 0 b: 4194304 2097152 swap c: 625142385 0 unused 0 0 # "raw" part, don't edit d: 2097152 6291456 4.2BSD 0 0 0 e: 2097152 8388608 4.2BSD 0 0 0 f: 104857600 10485760 4.2BSD 0 0 0 g: 10485760 115343360 4.2BSD 0 0 0 h: 499313265 125829120 4.2BSD 0 0 0 It would be interesting to see if the label is edited in a "strange" manner. After initialization, only 'c' is present. Now one could add a 'f' partition at the first position, and maybe 'd' later on and declare it as swap... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...