From owner-freebsd-questions Sun Jan 30 14:52:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id E821B14C2A for ; Sun, 30 Jan 2000 14:52:12 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id RAA27977; Sun, 30 Jan 2000 17:56:35 -0500 (EST) (envelope-from cjc) Date: Sun, 30 Jan 2000 17:56:35 -0500 From: "Crist J. Clark" To: Matt Gostick Cc: questions@FreeBSD.ORG Subject: Re: format scsi hd Message-ID: <20000130175635.D26703@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from matt@crazylogic.net on Sun, Jan 30, 2000 at 05:08:37PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jan 30, 2000 at 05:08:37PM -0500, Matt Gostick wrote: > > I just got a scsi drive... a small little 520MB Maxtor. How do I go > about formatting and mounting this drive? Do I have to put > something in /etc/fstab? > > this is what comes from dmesg | grep "relevant stuff" : > > Waiting 15 seconds for SCSI devices to settle > changing root device to wda0 at aic0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 5.000MB/s transfers (5.000MHz, offset 8), Tagged Queueing Enabled > da0: 520MB (1065912 512 byte sectors: 64H 32S/T 520C) > d0s2a Has this disk been used before? Do you want MS-DOS-style slices on it? Do you want to partiton it at all? Assuming it will be a dangerously dedicated disk with one partition and the disk has been used before, this should be the minimum to put a filesystem on it, # dd if=/dev/zero of=/dev/rda0 count=32 # disklabel -w -r da0 auto # disklabel -e -r da0 At this point, you get an interactive session with your favorite editor. At the bottom you should have something like, 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 1065912 0 unused 0 0 Add a line like, h: 1065912 0 4.2BSD 1024 8192 16 And exit the editor normally. Now, # newfs /dev/rda0h To have this filesystem mounted automatically at startup, something like the following to /etc/fstab, /dev/da0h /mountpoint ufs rw 0 3 To mount it right now, # mount /dev/da0h /mountpoint -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message