From owner-freebsd-questions@FreeBSD.ORG Mon Jun 4 14:48:08 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CF07106572D for ; Mon, 4 Jun 2012 14:48:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id D0EDC8FC14 for ; Mon, 4 Jun 2012 14:48:07 +0000 (UTC) Received: from r56.edvax.de (port-92-195-20-192.dynamic.qsc.de [92.195.20.192]) by mx02.qsc.de (Postfix) with ESMTP id EB80228AD5; Mon, 4 Jun 2012 16:42:45 +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 q54EgiL1002103; Mon, 4 Jun 2012 16:42:45 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 4 Jun 2012 16:42:44 +0200 From: Polytropon To: freebsd@dreamchaser.org Message-Id: <20120604164244.81e24528.freebsd@edvax.de> In-Reply-To: <4FCCBDF4.1030008@dreamchaser.org> References: <4FCCBDF4.1030008@dreamchaser.org> 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: FreeBSD Mailing List Subject: Re: bsdlabel geometry params X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 14:48:08 -0000 On Mon, 04 Jun 2012 07:53:56 -0600, Gary Aitken wrote: > According the the handbook, one should do the following to set up a new disk: > > 1 dd if=/dev/zero of=/dev/da1 bs=1k count=1 > 2 fdisk -BI da1 #Initialize your new disk > 3 bsdlabel -B -w da1s1 auto #Label it. > 4 bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. > 5 mkdir -p /1 > 6 newfs /dev/da1s1e # Repeat this for every partition you created. > 7 mount /dev/da1s1e /1 # Mount the partition(s) > 8 vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. > > In step #4, bsdlabel gives you a label with zeros for fsize, bsize, bps/cpg > Is it necessary to fill these in, or is there a way to get some > reasonable defaults? > "newfs -N" will give you numbers for bsize and fsize, but what about bps/cpg? > > What does the install process do for this step? I don't remember > ever having to deal with it. Maybe it's bit overcomplicated. I assume as you're creating /dev/da1s1e here (non-boot volume on 1st slice, which would be /dev/da1s1a instead), so basically you're creating a kind of "data disk" (one full disk, not bootable). You can have that much easier: # newfs /dev/da1 Of course you can add options to newfs if needed, and also apply tunefs afterwards. But dealing with slices (which are "DOS primary partitions") is not needed if what you're creating will be a "data disk" as described. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...