From owner-freebsd-scsi Sun Apr 15 12:40:51 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from mail8.nc.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id 6FD7A37B424 for ; Sun, 15 Apr 2001 12:40:47 -0700 (PDT) (envelope-from thomas@stromberg.org) Received: from localhost ([66.26.231.27]) by mail8.nc.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Sun, 15 Apr 2001 15:37:33 -0400 Date: Sun, 15 Apr 2001 15:41:18 -0400 From: Thomas Stromberg Content-Type: text/plain; format=flowed; charset=us-ascii Subject: Changing b/s via camcontrol (was invalid sector size 520) Cc: Wilko Bulte , freebsd-scsi@freebsd.org To: Tom Samplonius X-Mailer: Apple Mail (2.387) In-Reply-To: Mime-Version: 1.0 (Apple Message framework v387) Content-Transfer-Encoding: 7bit Message-ID: <0c9113337190f41FE8@mail8.nc.rr.com> Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > If you read the manpage for "camcontrol", the section on the format > option specifically mentions changing the sector size. If looks like > you > should change the sector size in the modepage, then issue the format > command. Thanks for the heads up on camcontrol. It looks exactly like what I need. I went through /usr/share/misc/scsi_modes to see what modepage needs to be edited for bytes/sector. It looked like 0x05 is what I needed. So, I tried: # camcontrol modepage da0 -m 5 -e camcontrol: error sending mode sense command I then check the list of valid mode pages camcontrol finds: # camcontrol modepage da0 -l 0x01 Read-Write Error Recovery Page 0x02 Disconnect-Reconnect Page 0x03 Format Device Page 0x04 Rigid Disk Drive Geometry Page 0x07 Verify Error Recovery Page 0x08 Caching Page 0x0a Control Mode Page 0x0c Notch and Partition Page 0x00 Vendor-Specific 0x00 Vendor-Specific 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. I just tried this with another Seagate drive on a production server of ours and camcontrol returned "no editable entries". Am I in the right direction? Thanks for your help btw. Once this gets settled, I'll be sure to add it to the bsdwiki for the next person. Unfortunatly, my Sun U10 is scsi-less. I've got an HP9000 and an Indigo^2 with SCSI, but no OS (two of these drives, which also have this problem, are so I can get them up and running again). SGI's fx.ARCS doesn't seem to be too friendly to the sector size either. / Thomas Stromberg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message