From owner-freebsd-usb@FreeBSD.ORG Sun Feb 7 09:40:07 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F1DA1065670 for ; Sun, 7 Feb 2010 09:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 04D5A8FC19 for ; Sun, 7 Feb 2010 09:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o179e6nE062354 for ; Sun, 7 Feb 2010 09:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o179e6RV062349; Sun, 7 Feb 2010 09:40:06 GMT (envelope-from gnats) Resent-Date: Sun, 7 Feb 2010 09:40:06 GMT Resent-Message-Id: <201002070940.o179e6RV062349@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, George Potapov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A17B106568F for ; Sun, 7 Feb 2010 09:39:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D70D58FC0C for ; Sun, 7 Feb 2010 09:39:49 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o179dnPd062219 for ; Sun, 7 Feb 2010 09:39:49 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o179dnkv062218; Sun, 7 Feb 2010 09:39:49 GMT (envelope-from nobody) Message-Id: <201002070939.o179dnkv062218@www.freebsd.org> Date: Sun, 7 Feb 2010 09:39:49 GMT From: George Potapov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/143634: Jetflash USB flash stick fails to mount X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 09:40:07 -0000 >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@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: at usbus1 umass0: 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: 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: