From owner-freebsd-questions@FreeBSD.ORG Tue Nov 6 09:32:15 2012 Return-Path: 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 CA21B9E2 for ; Tue, 6 Nov 2012 09:32:15 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp2.insight.synacor.com [208.47.185.24]) by mx1.freebsd.org (Postfix) with ESMTP id 78D318FC0C for ; Tue, 6 Nov 2012 09:32:14 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=2.0 cv=ZYCfx7pA c=1 sm=0 a=Dm9TOXL4taQ+Gy1KovpL+A==:17 a=X1Pz4l4wW6YA:10 a=jLN7EqiLvroA:10 a=9YQ-1ebCAAAA:8 a=LVshqx-NByoA:10 a=6I5d2MoRAAAA:8 a=7AcLqxXZfVHprCy9xg8A:9 a=Dm9TOXL4taQ+Gy1KovpL+A==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Authentication-Results: smtp02.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Received-SPF: softfail (smtp02.insight.synacor.com: transitional domain insightbb.com does not designate 74.130.198.7 as permitted sender) Received: from [74.130.198.7] ([74.130.198.7:49838] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.3.49 r(42060/42061)) with ESMTP id 15/F0-23131-D19D8905; Tue, 06 Nov 2012 04:32:14 -0500 Date: Tue, 06 Nov 2012 04:32:13 -0500 Message-ID: <15.F0.23131.D19D8905@smtp02.insight.synacor.com> From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: Re: Groupping restored partitions into slices Cc: Snow Mountains X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 09:32:15 -0000 > Thomas, thank you for reply! No, it wasn't dangerously dedicated disk. > However, what is the exact command to add ad4s1 and ad4s3 using > bsdlabel? Is it possible at all? I thought I should use fdisk or > gpart for that. > Thanks, > Sergi M You use fdisk to create what FreeBSD calls slices such as ad4s1, ad4s2, ad4s3 and disklabel to subdivide a slice into FreeBSD partitions such as ad4s1a, ad4s1b, ad4s1c, etc. gpart is used to create GPT partitions such as ad4p1, ad4p2, ad4p3, etc. Subdividing a slice into FreeBSD partitions is used with MBR partition/slice table but not recommended with GPT. The online FreeBSD bsdlabel man page is online at http://www.freebsd.org/cgi/man.cgi?query=bsdlabel&apropos=0&sektion=0&manpath=FreeBSD+9.0-RELEASE&arch=default&format=html One example given is This is an example disk label that uses some of the new partition size types such as %, M, G, and *, which could be used as a source file for ``bsdlabel -R ad0s1 new_label_file'': # /dev/ad0s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 400M 16 4.2BSD 4096 16384 75 # (Cyl. 0 - 812*) b: 1G * swap c: * * unused e: 204800 * 4.2BSD f: 5g * 4.2BSD g: * * 4.2BSD but you would have to replace the * with actual appropriate numbers. After you install the disklabel, you could mount each data partition, but not the swap partition, to see if the directory and file structure looks right. Tom