From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 22:31:36 2008 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 C3F60106564A for ; Mon, 14 Apr 2008 22:31:36 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from ipad.com.br (recife.ipad.com.br [200.249.204.129]) by mx1.freebsd.org (Postfix) with SMTP id DE5D58FC14 for ; Mon, 14 Apr 2008 22:31:35 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: (qmail 99771 invoked by uid 1008); 14 Apr 2008 22:31:32 -0000 Received: from unknown (HELO lobo) (mlobo@digiart.art.br@189.70.4.112) by ipad.com.br with SMTP; 14 Apr 2008 22:31:32 -0000 From: Mario Lobo Organization: DigiArt Systems To: freebsd-questions@freebsd.org Date: Mon, 14 Apr 2008 19:38:30 -0300 User-Agent: KMail/1.9.7 References: <6.0.0.22.2.20080414163403.02478050@mail.computinginnovations.com> In-Reply-To: <6.0.0.22.2.20080414163403.02478050@mail.computinginnovations.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804141938.30815.mlobo@digiart.art.br> Subject: Re: HDD partitioning question... 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: Mon, 14 Apr 2008 22:31:36 -0000 On Monday 14 April 2008 18:36:30 Derek Ragona wrote: > At 03:27 PM 4/14/2008, Dharma Wolford wrote: > >Hi folks, > > > >(I'm a relative newcomer to all this... thanks for your patience & help.) > > > >I've installed FreeBSD 6.2 on a system that will be primarily used as an > > FTP server. It has 2 drives - one for the OS and the other for the FTP > > storage. My question is about the storage drive in this case. > > > >You can see how I have things partitioned right now: > >################################# > >[root@mybox /var/log]# mount > >/dev/da0s1a on / (ufs, local) > >devfs on /dev (devfs, local) > >/dev/da0s1d on /tmp (ufs, local, soft-updates) > >/dev/da0s1f on /usr (ufs, local, soft-updates) > >/dev/da0s1e on /var (ufs, local, soft-updates) > >/dev/da1 on /usr/home (ufs, local, soft-updates) > >[root@mybox /var/log]# > >################################# > > > >I started by trying to use fdisk to partition the storage drive (/dev/da1) > >but was getting errors which I don't exactly recall - something about a > >problem with the 'block device'. > >Anyway, then I wound up using the command "newfs -O 2 /dev/da1" which > >seemed to work and I was then able to mount and use the drive. > > > >My question is: is there anything wrong with having "/dev/da1" mounted > > an in-use? Should I have created a partition like "/dev/da1s1a" or > > something? I seem to remember somebody once chiding me for having > > formatted or mounted the 'block device' itself instead of a partition... > > is this making any sense to anyone? Clearly I need to know more about > > *NIX file systems (slices, partitions, block devices) and best practices > > or some such - I am working on it but obviously have a ways to go! > > > >Thanks very much! > > > >dharma > > Sounds like the drive geometry was off or you may have a drive with > issues. You should have been able to create a partition with a single > slice on it. I would check the drive with diagnostics from the > manufacturer. Those utilities will also allow you to know the correct > geometry. > > -Derek If you issue the command: fdisk -I /dev/da1 -I Initialize sector 0 slice table for one FreeBSD slice covering the entire disk. and then: ls /dev/da1* you'll get: /dev/da1 /dev/da1s1 which I believe is what you want. then you can: newfs -O 2 (-U) /dev/da1s1 then you can: mount /dev/da1s1 /whatever -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE)