From owner-freebsd-questions Sun Oct 8 18:34:11 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA17482 for questions-outgoing; Sun, 8 Oct 1995 18:34:11 -0700 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA17476 for ; Sun, 8 Oct 1995 18:34:08 -0700 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.9/8.6.9) id LAA08002; Mon, 9 Oct 1995 11:31:59 +0930 From: Michael Smith Message-Id: <199510090201.LAA08002@genesis.atrad.adelaide.edu.au> Subject: Re: fdisk & partition names To: jbarrm@panix.com (Barry Masterson) Date: Mon, 9 Oct 1995 11:31:59 +0930 (CST) Cc: questions@freebsd.org In-Reply-To: from "Barry Masterson" at Oct 7, 95 01:46:15 pm Content-Type: text Content-Length: 2945 Sender: owner-questions@freebsd.org Precedence: bulk Barry Masterson stands accused of saying: > Now, in bsd's fdisk, I'm at a loss for what to do. Fdisk reports the > following: > > offset size end name PType Desc Subtype flags > 0 59 58 - 6 unused 0 > 59 164197 164255 wd0s1 2 fat 6 = > 164256 893024 1057279 - 6 unused 0 > > > I'm guessing that the dos drive is the second line. And that the remainder > of the drive (formerly linux) is the third line. Yup. The scrap at the beginning is the space between the MBR and the first partition. It _is_ possible to put a partition in there, and occasionally its useful. Myself, I think that showing it here is a bad idea. > The nameing conventions in linux are fairly easy; hda1 - hda4 are primary > partitions, hda5 - logical partitions. I'm only using a single drive, > and I have no desire to overwrite the dos partition. My questions are: > > What is the naming sequence for a single IDE drive? /dev/wd0s1-4 are the four "primary partitions", known as _slices_. /dev/wd0sXa-g are the eight possible BSD partitions within a given slice. > When in fdisk, should I start on the third line? (offset 164256)? Yup. You should make a single slice covering the entire remaining space. > If I choose the "entire disk" option, will only the space starting at > offset 164256 be affected, and treated as a single partition; dos=80meg, > bsd=the rest of the drive? No, the "entire disk" option takes _the_entire_disk_, as its name suggests 8) > One other question, whats the best partitioning layout for freebsd? > In linux, I had the following: > > dos /dev/hda1 dos 80meg That would be /dev/wd0s1 > linux /dev/hda2 / 16meg > /dev/hda3 swap 16meg > /dev/hda4 extended > /dev/hda5 /usr 180meg > /dev/hda6 /usr/local 120meg > /dev/hda7 /var 32meg > /dev/hda8 /home 70meg > > The freebsd faq's, the work_in_progress Manual, etc, don't really > seem to describe a straight forward approach to partitioning. Mostly because FreeBSD uses a more conventional approach to partitioning 8) Based on your requirements above, I'd suggest : /dev/wd0s2a / 30M /dev/wd0s2b swap 32M (16M of swap is not really enough) /dev/wd0s2e /usr 100M (more if you want to put /usr/src in here) And so forth. I'd be tempted to put /var, /usr/local and /home on a single partition (say /local0) and symlink to it. This will save you lots of grief that you'd have otherwise if you outgrew a partition. > Barry Masterson Hope that's helpful. -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] My car has "demand start" -Terry Lambert UNIX: live FreeBSD or die! [[