From owner-freebsd-scsi Mon Apr 16 1:50:25 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id 241B937B43F for ; Mon, 16 Apr 2001 01:50:21 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id KAA08565 for freebsd-scsi@freebsd.org; Mon, 16 Apr 2001 10:50:20 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.3/8.11.3) id f3G8kjU13869; Mon, 16 Apr 2001 10:46:45 +0200 (MET DST) (envelope-from j) Date: Mon, 16 Apr 2001 10:46:45 +0200 (MET DST) Message-Id: <200104160846.f3G8kjU13869@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 0.9.8 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <0c9113337190f41FE8@mail8.nc.rr.com> From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: Changing b/s via camcontrol (was invalid sector size 520) X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thomas Stromberg wrote: > I noticed that codepage 0x03 contains sector/bytes data (and no others): > > root@subedei (/home/helix)# camcontrol modepage da0 -m3 > Tracks per Zone: 21 > Alternate Sectors per Zone: 9 > Alternate Tracks per Zone: 0 > Alternate Tracks per Logical Unit: 21 > Sectors per Track: 106 > Data Bytes per Physical Sector: 520 > ... > > So I try to use -e to edit it, but I only see Tracks per Zone, Alternate > Sectors per Zone, and Alternate Tracks per Logical Unit in my editor. That means you cannot edit that value on this mode page. Use the cook recipe Greg Lehey posted. Unfortunately, the vendors never agreed about the procedure to reformat with another sector size (if possible at all, not all support it). Some use modepage 3, some use the blocksize value in the modepage header. Your drive is most likely of this type, and Greg's posting contains the solution. I'm not sure whether it would be possible to replace the second camcontrol in Greg's posting by a simple "camcontrol format da0" instead, or whether camcontrol format does some modepage fiddling of its own. It's vital for the success that both SCSI commands, the one setting the blocksize and the FORMAT UNIT command, are issued without intervening commands. > Unfortunatly, my Sun U10 is > scsi-less. Any 53c875-based card should work in it. I've seen cheap Tekram DC390 controllers work in it. Note that it (IMHO) doesn't work with any other Symbios Logic chip, only the '875. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message