From owner-freebsd-scsi Sun Apr 15 16:49:49 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 93A4237B424 for ; Sun, 15 Apr 2001 16:49:45 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id D2D156ACB7; Mon, 16 Apr 2001 09:19:43 +0930 (CST) Date: Mon, 16 Apr 2001 09:19:43 +0930 From: Greg Lehey To: Thomas Stromberg Cc: freebsd-scsi@freebsd.org Subject: Re: da0: invalid sector size 520 Message-ID: <20010416091943.A9649@wantadilla.lemis.com> References: <01c345844160f41FE6@Mail6.nc.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01c345844160f41FE6@Mail6.nc.rr.com>; from thomas@stromberg.org on Sun, Apr 15, 2001 at 12:45:32PM -0400 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sunday, 15 April 2001 at 12:45:32 -0400, Thomas Stromberg wrote: > I'm trying to add the following Seagate Barracuda to my FreeBSD box: > > da0: Fixed Direct Access SCSI-2 device > da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled > da0: 4087MB (8242659 520 byte sectors: 255H 63S/T 513C) > > notice the 520 byte sectors? This occurs whenever I try to do any > operations (sysinstall, dd, disklabel) with da0: > > da0: invalid sector size 520 > > The machine is 5.0-CURRENT as of Wednesday, but I dont think that will > matter much. Is there something I'm missing? Please CC any replies to > me, I'm not on this particular list. Try this: ======================================================================== Yup, there's some other way to change it. Set the current values, then immediately issue a format command: # camcontrol cmd da1 -v -c "15 10 0 0 v:i1 0" 12 -o 12 "0 0 0 8 0 0:i3 0 v:i3" 512 # camcontrol cmd -n da -u 1 -v -t 7200 -c "4 0 0 0 0 0" # camcontrol modepage da1 -m 3 Tracks per Zone: 19 Alternate Sectors per Zone: 12 Alternate Tracks per Zone: 0 Alternate Tracks per Logical Unit: 38 Sectors per Track: 84 Data Bytes per Physical Sector: 512 Interleave: 1 Track Skew Factor: 13 Cylinder Skew Factor: 22 SSEC: 0 HSEC: 1 RMB: 0 SURF: 0 ======================================================================== Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message