Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2000 17:56:35 -0500
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Matt Gostick <matt@crazylogic.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: format scsi hd
Message-ID:  <20000130175635.D26703@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.BSF.4.10.10001301700170.91055-100000@thunk.crazylogic.net>; from matt@crazylogic.net on Sun, Jan 30, 2000 at 05:08:37PM -0500
References:  <Pine.BSF.4.10.10001301700170.91055-100000@thunk.crazylogic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <IBM MXT-540SL     !N IA6I> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000130175635.D26703>