usb/143634: Jetflash USB flash stick fails to mount

George Potapov nephrite at inbox.ru
Sun Feb 7 09:40:07 UTC 2010


>Number:         143634
>Category:       usb
>Synopsis:       Jetflash USB flash stick fails to mount
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 07 09:40:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     George Potapov
>Release:        8.0-RELEASE-p2 amd64
>Organization:
>Environment:
FreeBSD makoto.crystaltokyo.ru 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #12: Sat Jan 23 19:58:26 MSK 2010     root at makoto.crystaltokyo.ru:/usr/obj/usr/src/sys/MAKOTO  amd64
>Description:
Certain types of USB flash drives fail to mount.

First, I plug my USB flash in. It detects correctly and there appears a device entry in /dev:

Output from dmesg:
== cut ==
ugen1.2: <JetFlash> at usbus1
umass0: <JetFlash Mass Storage Device, class 0/0, rev 2.00/1.00, addr 2> on usbus1
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:2:0:-1: Attached to scbus2
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <JetFlash TS4GJFV85 8.07> Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: 3900MB (7987200 512 byte sectors: 255H 63S/T 497C)
GEOM: da0: partition 1 does not start on a track boundary.
GEOM: da0: partition 1 does not end on a track boundary.
== cut ==

[2010-02-05 22:31:10] nephrite:/usr/home/nephrite$ ls /dev/da*
/dev/da0	/dev/da0s1

Then I try to mount it:

[2010-02-05 22:32:46] nephrite:/usr/home/nephrite$ sudo mount_msdosfs /dev/da0s1 /media/flash/

After that it just hangs and never finishes. The only way to quit is to unplug the stick. The system doesn't hang or crash, just the mount command doesn't work. The strange thing here is that I also have an USB card reader for SD cards which works just fine. Also the same stick worked all right on my older FreeBSD 7.2 RELEASE-p4 amd64 on the same machine.

It is a popular USB stick and I think there may be a lot of users affected by this problem.
>How-To-Repeat:
Try to mount an USB flash stick of a certain type. Currently this problem occurs with Jetflash sticks.
>Fix:
A workaround: set hw.usb.ehci.no_hs to 1

$ sudo sysctl hw.usb.ehci.no_hs=1
Password:
hw.usb.ehci.no_hs: 0 -> 1

After that the drive mounts and works however slow.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list