From owner-freebsd-scsi Tue Sep 14 22:35:33 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 75A161548A for ; Tue, 14 Sep 1999 22:35:31 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id XAA40299; Tue, 14 Sep 1999 23:35:29 -0600 (MDT) (envelope-from ken) Message-Id: <199909150535.XAA40299@panzer.kdm.org> Subject: Re: Reformatting a 520-byte-per-sector drive In-Reply-To: <37DF2E67.B9F54D28@airnet.net> from Kris Kirby at "Sep 15, 1999 00:28:07 am" To: kris@airnet.net (Kris Kirby) Date: Tue, 14 Sep 1999 23:35:28 -0600 (MDT) Cc: scsi@freebsd.org From: "Kenneth D. Merry" X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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.) Can you tell if the drive is doing anything? The other problem you may have with this is that if the drive does format itself when you change the blocksize, the timeout for the mode select is likely too short. In fact, the default timeout for generic SCSI commands like the one you issued is 5 seconds, which is way too short for a format. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message