From nobody@FreeBSD.org  Sun Mar 10 10:01:18 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 9D99137B404
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 10 Mar 2002 10:01:17 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2AI1Hm19716;
	Sun, 10 Mar 2002 10:01:17 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203101801.g2AI1Hm19716@freefall.freebsd.org>
Date: Sun, 10 Mar 2002 10:01:17 -0800 (PST)
From: Tim Epkes <tim@epkes.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: USB 2.0 attached device cannot be fdisk'd or dd'd.  Get "WRITE(06). CDB: a 0 0 0 8 0/ILLEGAL REQUEST asc: 21,0/Logical block address out of range" errors.
X-Send-Pr-Version: www-1.0

>Number:         35742
>Category:       i386
>Synopsis:       USB 2.0 attached device cannot be fdisk'd or dd'd.  Get "WRITE(06). CDB: a 0 0 0 8 0/ILLEGAL REQUEST asc: 21,0/Logical block address out of range" errors.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 10 10:10:01 PST 2002
>Closed-Date:    Sat Aug 30 18:46:40 PDT 2003
>Last-Modified:  Sat Aug 30 18:46:40 PDT 2003
>Originator:     Tim Epkes
>Release:        4.5
>Organization:
>Environment:
FreeBSD Gambit.epkes.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT 2002     murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386

>Description:
Trying to install a BusLink 40G external USB 2.0 drive.  It is recognized as device /dev/da01.  When fdisking from /stand/sysinstall and writing the partition (also results from dmesg show) the following:(da0:umass-sim0:0:0:0): WRITE(06). CDB: a 0 0 0 2 0
(da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:21,0
(da0:umass-sim0:0:0:0): Logical block address out of range


>How-To-Repeat:
rebooting and typing dmesg |more
>Fix:
     
>Release-Note:
>Audit-Trail:

From: Josef Karthauser <joe@tao.org.uk>
To: Tim Epkes <tim@epkes.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: i386/35742: USB 2.0 attached device cannot be fdisk'd or dd'd.  Get "WRITE(06). CDB: a 0 0 0 8 0/ILLEGAL REQUEST asc: 21,0/Logical block address out of range" errors.
Date: Sun, 10 Mar 2002 22:57:20 +0000

 --RASg3xLB4tUQ4RcS
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Sun, Mar 10, 2002 at 10:01:17AM -0800, Tim Epkes wrote:
 > >Description:
 > Trying to install a BusLink 40G external USB 2.0 drive.  It is recognized as device /dev/da01.  When fdisking from /stand/sysinstall and writing the partition (also results from dmesg show) the following:(da0:umass-sim0:0:0:0): WRITE(06). CDB: a 0 0 0 2 0
 > (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:21,0
 > (da0:umass-sim0:0:0:0): Logical block address out of range
 
 Can you try the patch on my web site?
 
     http://www.josef-k.net/misc/RELENG_4-USB-20020301.patch.gz
 
 Joe
 
 --RASg3xLB4tUQ4RcS
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iEYEARECAAYFAjyL5NAACgkQXVIcjOaxUBZvYwCeOaoNAlltjS6sZk82qRr7VQCA
 5EIAoKUP22tToAW0306z3NNVjAl8xFKU
 =KQOm
 -----END PGP SIGNATURE-----
 
 --RASg3xLB4tUQ4RcS--

From: "Bryan K. Ogawa" <bko@unobvious.com>
To: freebsd-gnats-submit@FreeBSD.org, tim@epkes.net
Cc:  
Subject: Re: i386/35742: USB 2.0 attached device cannot be fdisk'd or dd'd.
  Get "WRITE(06). CDB: a 0 0 0 8 0/ILLEGAL REQUEST asc: 21,0/Logical block
 address out of range" errors.
Date: Tue, 02 Jul 2002 11:26:41 -0700

 Tim,
 
 another possible fix is in
 
 	http://www.unobvious.com/bsd/usb-harddrives.txt
 
 you may need to upgrade to -STABLE for this to work -- i haven't tried 
 it, i'm only mirroring it.
 

From: "Bryan K. Ogawa" <bko@unobvious.com>
To: freebsd-gnats-submit@FreeBSD.org, tim@epkes.net
Cc:  
Subject: Re: i386/35742: USB 2.0 attached device cannot be fdisk'd or dd'd.
  Get "WRITE(06). CDB: a 0 0 0 8 0/ILLEGAL REQUEST asc: 21,0/Logical block
 address out of range" errors.
Date: Tue, 02 Jul 2002 11:08:17 -0700

 did the patch work for you, by any chance?
 
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:29:51 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35742 
State-Changed-From-To: open->feedback 
State-Changed-By: njl 
State-Changed-When: Thu Aug 21 20:52:32 PDT 2003 
State-Changed-Why:  
This should have been fixed in -stable and -current a few weeks ago. 
Please upgrade to one of those and try again.  If the problem still 
continues, let me know.  I will close this in one week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35742 
Responsible-Changed-From-To: joe->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Thu Aug 21 20:53:22 PDT 2003 
Responsible-Changed-Why:  
I believe I fixed this with the PIM_NO_6_BYTE patch so I'll watch this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35742 
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Sat Aug 30 18:46:05 PDT 2003 
State-Changed-Why:  
As promised, I'm closing this bug report.  I believe it has been fixed but 
no input from submitter.  Please submit a new PR if you continue to have 
problems. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35742 
>Unformatted:
