Subject: pkg/36363: Can't mount Flash disk device - system block
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: César Catrián Carreño <ccatrian@eml.cc>
List: pkgsrc-bugs
Date: 05/21/2007 03:00:01
>Number:         36363
>Category:       pkg
>Synopsis:       Can't mount Flash disk device - system block
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 21 03:00:00 +0000 2007
>Originator:     César Catrián Carreño
>Release:        NetBSD 4.99.19 i386
>Organization:
>Environment:


System: NetBSD 4.99.19 (Basado en GENERIC: 1.781) #0: Sat May  5 09:25:35 CLT 2007
	cetrox@core.cjc.cl:/home/cetrox/src/netbsd-current/src/sys/arch/i386/compile/SAT



>Description:


Trying to mount this flash disk device:

May 20 22:33:07 core /netbsd: umass0 at uhub2 port 8 configuration 1 interface 0
May 20 22:33:07 core /netbsd:
May 20 22:33:07 core /netbsd: umass0: vendor 0x10d6 USB 2.0(HS) Flash Disk, rev 2.00/1.00, addr 2
May 20 22:33:07 core /netbsd: umass0: using ATAPI over Bulk-Only
May 20 22:33:07 core /netbsd: atapibus1 at umass0: 2 targets
May 20 22:33:07 core /netbsd: sd0 at atapibus1 drive 0: <USB 2.0, (HS) Flash Disk, 1.00> disk removable
May 20 22:33:07 core /netbsd: sd0: fabricating a geometry
May 20 22:33:07 core /netbsd: sd0: 962 MB, 962 cyl, 64 head, 32 sec, 512 bytes/sect x 1971889 sectors

This error appears after $ mount -t msdos /dev/sd0e /mountpoint :

May 20 22:33:25 core /netbsd: umass0: Invalid CSW: tag 101 should be 102

The mount command doesn't return and other processes start to block.

If lucky enough, after shutdown by root:

May 20 22:42:16 core /netbsd: umass0: BBB reset failed, TIMEOUT
May 20 22:42:16 core /netbsd: umass0: at uhub2 port 8 (addr 2) disconnected

and the system can't umount the rest of the filesystems. A hard reset is needed.


>How-To-Repeat:





>Fix: