From owner-freebsd-questions@FreeBSD.ORG Sun Apr 22 02:58:13 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 8C3AF16A404 for ; Sun, 22 Apr 2007 02:58:13 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 21BEE13C468 for ; Sun, 22 Apr 2007 02:58:12 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so1016576ugh for ; Sat, 21 Apr 2007 19:58:12 -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=SshR201x/vQlwAoP1LKgWscHvpuQ7yGICWo8K6zLIhLjrax6xYm/h06to8iXuEwZmge8f3aSeJwmWrfgDYa0kBmYvMkCe5MeWlWTZliY6+EmKJh2O/4sXbsjfFU2B6MQunCvX4CW/jWL6s4IV8BN3Nxy631kP9ne6CYpdFAmK3c= 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=NV7efJmBlB3OkevLSgGrF9go3X+3Dq15fyi0gxABTf86fYV0/j5MY+HlRGU39UUwNBGjOBSMCD9rn+dSkWpY/n7s4U5CHHWxW3hrqMJgSxg1PhwIHXgv4br69tkfDZ0Xu4IU+cAIMDZxgFIglefftXsjgavnbRXKxn8csmLmPMs= Received: by 10.82.158.12 with SMTP id g12mr7016466bue.1177210691857; Sat, 21 Apr 2007 19:58:11 -0700 (PDT) Received: by 10.82.149.2 with HTTP; Sat, 21 Apr 2007 19:58:11 -0700 (PDT) Message-ID: Date: Sat, 21 Apr 2007 21:58:11 -0500 From: "illoai@gmail.com" To: "L Goodwin" In-Reply-To: <907596.95892.qm@web58113.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <907596.95892.qm@web58113.mail.re3.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: bsdlabel editing to create a single 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: Sun, 22 Apr 2007 02:58:13 -0000 On 21/04/07, L Goodwin wrote: > I want to dedicate the entire disk to a single FreeBSD partition ("da1s1a"), and > am a little confused about editing partitions via "bsdlabel -e ". > > Prior to editing, it looks like this: > ---------------------------------------------------------------------------------------- > # /dev/da1s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 17908300 16 unused 0 0 > c: 17908316 0 unused 0 0 # "raw" part, don't edit > ---------------------------------------------------------------------------------------- > > I gather that I should change the following field values for "c:": > fstype: 4.2BSD > fsize: 2048 > bsize: 16384 > > Questions: > 1) Do I change the "size" value for "a:" or leave at current size? NO > 2) Do I leave the "c:" line alone (in place) and if YES does > its "size" and "offset" values need to be edited? Leave it alone. > > If someone could show me what it should look like when done, I'd appreciate it. > > When I leave the "c:" entry in place, I get /dev/da1s1a and /dev/da1s1c in /dev/. > Should I delete the "c:" entry? Here's what I have now: > ---------------------------------------------------------------------------------------- > # /dev/da1s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 17908300 16 4.2BSD 2048 16384 > c: 17908316 0 unused 0 0 # "raw" part, don't edit > ---------------------------------------------------------------------------------------- > Don't edit the bsdlabel at all, just: # newfs -U /dev/da1s1a and it will automatically fill out the fsize, bsize, and bps/cpg fields. You can then add a line to fstab, mount it, fill it with text files containing the word "corn" ever and over. c: should nearly never be touched, and definitely never in the course of simply setting up a disk for use. -- --