From owner-freebsd-questions@FreeBSD.ORG Sun Nov 15 10:09:57 2009 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 DE1AD1065672 for ; Sun, 15 Nov 2009 10:09:56 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6DC1C8FC08 for ; Sun, 15 Nov 2009 10:09:56 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1N9c3P-0003Zd-F6 for freebsd-questions@freebsd.org; Sun, 15 Nov 2009 11:09:55 +0100 Received: from pool-71-166-135-199.washdc.east.verizon.net ([71.166.135.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Nov 2009 11:09:55 +0100 Received: from nightrecon by pool-71-166-135-199.washdc.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Nov 2009 11:09:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sun, 15 Nov 2009 05:10:38 -0500 Lines: 75 Message-ID: References: <20091115090300.GA8859@thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-71-166-135-199.washdc.east.verizon.net Sender: news Subject: Re: how to do a custom install? 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, 15 Nov 2009 10:09:57 -0000 Gary Kline wrote: > > due to strange disk problems i was down for around 30 hours. i am > currently wiping dos/win off in favor of 7.2-R and i have a question > about doing a "custom" install that would let me slice the drive into > more that four pieces. > > i am building, by default, > > /, > /var > SWAP, and > /usr > > it has been years since my custom install where [[*some*]] technique > let me slice something like, say, > > /, > /var, > /tmp, > /usr/local/ > SWAP, and > /usr > > anybody remember what keys to hit in the installation procedure? > > tia, > > gary > > Not sure about the terminology in use here. The old standard was to create one, or more, slice(s) and then partition with bsdlabel. In the sysinstall step for this it will run fdisk. Note that playing by the $MS standard the normal maximum number of slices would be 4, e.g. aka "primary partitions" in the Dos/Windows world. Fdisk makes "slices". An example of a slice on an IDE drive would be ad0s1. After the fdisk step would next come bsdlabel. This is the step that creates partitions within the "slice" previously made with fdisk. Note the difference in terminology: what Dos/Windows refers to as a "primary partition" in the Unix world this is a "slice". Partitions are created within a slice with bsdlabel. On the sysinstall Custom menu these two options are one above the other, e.g. Fdisk and Label. Select the Fdisk and create a slice, exit fdisk returning to sysinstall and proceed to select the Label menu option to bring up bsdlabel. (IIRC also called disklabel.) An example of a partition would be ad0s1a, ad0s1b for swap, ad0s1c is a reserved wrapper entity, ad0s1d, e, f, g. Usually ad0s1a will be your root, b will be swap, d might be /usr, e might be /var. etc. In the bsdlabel utility there is the option to choose both the partition type and size as well as it's mount point. It is actually possible to have more than 4 slices even when playing by the $MS Dos/Windows standard. Fdisk will allow for the creation of what on Dos are called "extended partitions". The numbering for these starts at 5. You won't be able to boot from them and from a *Nix point of view are semi useless except within the context of Dos/Win compatibility. If this is just going to be a FreeBSD machine no need for the so-called "extended partition" of the Dos/Win world. Just create a slice [fisk], and break that up into partitions [bsdlabel]. If everything goes according to plan after Fdisk, Label, Return to previous menu, etc, at some point later on (IIRC after choosing packaging distributions) sysinstall will later perform the actions you configure in these preparatory steps. For reference peruse the Handbook; it's probably written clearer than I can accomplish. -Mike