Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 1999 23:35:28 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        kris@airnet.net (Kris Kirby)
Cc:        scsi@freebsd.org
Subject:   Re: Reformatting a 520-byte-per-sector drive
Message-ID:  <199909150535.XAA40299@panzer.kdm.org>
In-Reply-To: <37DF2E67.B9F54D28@airnet.net> from Kris Kirby at "Sep 15, 1999 00:28:07 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909150535.XAA40299>