From owner-freebsd-scsi Fri Sep 17 9:35:23 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 F0DD014E07 for ; Fri, 17 Sep 1999 09:35:13 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id KAA57340; Fri, 17 Sep 1999 10:35:07 -0600 (MDT) (envelope-from ken) Message-Id: <199909171635.KAA57340@panzer.kdm.org> Subject: Re: Reformatting a 520-byte-per-sector drive In-Reply-To: <37E1B079.27022011@airnet.net> from Kris Kirby at "Sep 16, 1999 10:07:37 pm" To: kris@airnet.net (Kris Kirby) Date: Fri, 17 Sep 1999 10:35:07 -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: > > 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 > > This latest incantation produces: > #root:orgy: {7} fmt.sh > Sep 16 22:03:05 orgy /kernel: (pass0:aha0:0:6:0): CCB 0xc04992e0 - timed > out > Sep 16 22:03:05 orgy /kernel: aha0: ahadone - Attempt to free non-active > ACCB 0xbf89d000 > camcontrol: error sending command > CAM status is 0x14b > #root:orgy: {8} Sep 16 22:03:05 orgy /kernel: aha0: ahadone - Attempt to > free non-active ACCB 0xbf89d000 > Sep 16 22:03:08 orgy /kernel: (pass0:aha0:0:6:0): CCB 0xc04992e0 - timed > out > Sep 16 22:03:05 orgy /kernel: aha0: ahadone - Attempt to free non-active > ACCB 0xbf89d000 > Sep 16 22:03:08 orgy /kernel: (pass0:aha0:0:6:0): CCB 0xc04992e0 - timed > out > Sep 16 22:03:08 orgy /kernel: aha0: No longer in timeout Which command causes the errors? The mode select or the format? If it's the mode select, there's definitely something weird going on. If it's the format, you probably haven't set the timeout long enough. > Usually the machine panics here (I think only when the id is 0). I've > been disconnecting the drive to allow it to finish, without the machine. > I'm using a AHA-1542B: > aha0: AHA-1540/1542 64 head BIOS FW Rev. 1.1 (ID=41) SCSI Host Adapter, > SCSI ID > 7, 16 CCBs It would be helpful if you could send a stack trace from the panic. > I've changed the drive's id to 6. And it _still_ thinks it has 520 byte > sectors. :-/. Well, I've tried all that I can think of. I'm about to > return the drives to the owner and let him deal with it. Hmm. Well, if the format has been able to go all the way through after you changed the sector size, and it still thinks it has 520 byte sectors, yeah, you may be out of luck. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message