From owner-freebsd-scsi Wed Sep 15 3:20: 9 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id AFEBA1508A for ; Wed, 15 Sep 1999 03:19:52 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id TAA40452; Wed, 15 Sep 1999 19:49:42 +0930 (CST) Date: Wed, 15 Sep 1999 19:49:41 +0930 From: Greg Lehey To: "Kenneth D. Merry" Cc: Kris Kirby , scsi@FreeBSD.ORG Subject: Re: Reformatting a 520-byte-per-sector drive Message-ID: <19990915194941.G30655@freebie.lemis.com> References: <37DF2E67.B9F54D28@airnet.net> <199909150535.XAA40299@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199909150535.XAA40299@panzer.kdm.org>; from Kenneth D. Merry on Tue, Sep 14, 1999 at 11:35:28PM -0600 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 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 14 September 1999 at 23:35:28 -0600, Kenneth D. Merry wrote: > Kris Kirby wrote... >> Kenneth D. Merry wrote: >>> Kris Kirby wrote... >>>> #root:orgy: {15} camcontrol cmd da0 -v -c "15 10 0 0 c 0" -o 0xc "b 0 0 >>>> 8 0 v:i3 0 v:i3" 1962030 512 >>>> camcontrol: error sending command >>>> (pass0:aha0:0:0:0): MODE SELECT(06). CDB: 15 10 0 0 c 0 >>>> (pass0:aha0:0:0:0): ILLEGAL REQUEST asc:26,0 >>>> (pass0:aha0:0:0:0): Invalid field in parameter list sks:80,0 >>> >>> Well, I neglected the fact that the length parameter in the mode page >>> header is reserved for mode select. The above error is pointing to the >>> first byte in the parameter list. So, try this instead: >>> >>> camcontrol cmd da0 -v -c "15 10 0 0 c 0" -o 0xc "0 0 0 8 0 v:i3 0 v:i3" 1962030 512 >> >> >>> Good deal. Let me know whether this works. >> >> As of now, it is running this command. Until the machine hangs... (I >> have a bad widdle 1542CF. But three good 1542Bs. Well, the CF is the >> only one with a BIOS more intelligent than mud. :-) > > I'm not sure I understand. Is the drive doing anything? Does the > machine/card normally hang? > > I would expect the blocksize change to go pretty quickly, unless the drive > automatically does a format or something similar when you change the > blocksize. (With other drives, you change the blocksize and then format.) The block size change requires a format. It changes the number of sectors, for example. > Can you tell if the drive is doing anything? The 1542B doesn't illuminate the LED when formatting. The CF could be the same. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message