From owner-freebsd-usb@FreeBSD.ORG Wed Nov 18 07:46:29 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28C1B1065670; Wed, 18 Nov 2009 07:46:29 +0000 (UTC) (envelope-from gjin@ubicom.com) Received: from server70.appriver.com (server70.appriver.com [69.20.119.203]) by mx1.freebsd.org (Postfix) with ESMTP id AB3438FC19; Wed, 18 Nov 2009 07:46:28 +0000 (UTC) X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Policy: GLOBAL - ubicom.com X-Primary: gjin@ubicom.com X-Note: This Email was scanned by AppRiver SecureTide X-Virus-Scan: V- X-Note: TCH-CT/SI:0-315/SG:5 11/18/2009 2:46:04 AM X-GBUdb-Analysis: 0, 216.112.109.98, Ugly c=0.730377 p=-0.916458 Source White X-Signature-Violations: 0-0-0-12577-c X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES X-Note-Sending-IP: 216.112.109.98 X-Note-Reverse-DNS: 216.112.109.98.ptr.us.xo.net X-Note-WHTLIST: gjin@ubicom.com X-Note: User Rule Hits: X-Note: Global Rule Hits: 115 116 117 118 122 123 220 X-Note: Mail Class: VALID X-Note: Headers Injected Received: from [216.112.109.98] (HELO stork.scenix.com) by server70.appriver.com (CommuniGate Pro SMTP 5.3c2) with ESMTP id 107486304; Wed, 18 Nov 2009 02:46:28 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 17 Nov 2009 23:33:07 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 8.0-RC3 USB lock up on mounting two partitions from one USB drive Thread-Index: AcpoHXlt4yGeiBLfQTudmr8mdClCPgAAwBna References: From: "Guojun Jin" To: "Guojun Jin" , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org, freebsd-usb@freebsd.org Subject: RE: 8.0-RC3 USB lock up on mounting two partitions from one USB drive 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: Wed, 18 Nov 2009 07:46:29 -0000 Did newfs on those partition and made things worsen -- restore = completely fails: (I had experienced another similar problem on an IDE, which works well = for 6.4 and 7.2, but 8.0.) This dirve works fine under FreeBSD 6.4. Is something new in 8.0 making disk partition schema changed? g_vfs_done():da0s3d[READ(offset=3D98304, length=3D16384)]error =3D 6 g_vfs_done():da0s3d[WRITE(offset=3D192806912, length=3D16384)]error =3D = 6 fopen: Device not configured cannot create save file ./restoresymtable for symbol table abort? [yn] (da0:umass-sim0:0:0:0): Synchronize cache failed, status = =3D=3D 0xa, scs i status =3D=3D 0x0 (da0:umass-sim0:0:0:0): removing device entry ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks =3D 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 114473MB (234441648 512 byte sectors: 255H 63S/T 14593C) Device da0s3d went missing before all of the data could be written to = it; expect data loss. 99 23:19 sysinstall 100 23:20 newfs /dev/da0s3d 101 23:20 newfs /dev/da0s3e 102 23:21 mount /dev/da0s3d /mnt 103 23:21 cd /mnt 104 23:21 dump -0f - /home | restore -rf - 105 23:27 history 15 -----Original Message----- From: Guojun Jin Sent: Tue 11/17/2009 11:05 PM To: freebsd-stable@freebsd.org Cc: questions@freebsd.org; freebsd-usb@freebsd.org Subject: 8.0-RC3 USB lock up on mounting two partitions from one USB = drive =20 When mounting two partitions from a USB dirve, it can cause the drive = access lock up for a long time. Details: Terminal 1 -- term1# mount /dev/da0s3d /mnt term1# cd /mnt ; rm -fr * when rm starts, go to terminal 2 and do: term2# mount /dev/da0s3e /dist ### this will hanging for a long time and = USB hard drive activity light is off. After more than 1-2 minutes, mount returns, and the drive activity light = is blinking, thus removing is going on. term2# ls /dist ### this will cause dUSB dirve hanging again -- no = avtivity. Similarly, ls will finish in a couple of miniutes or longer, the rm = command continues; but for a while, the drive activity will stop again. Reboot machine, repeat the above steps, and result will be the same. = Reboot machine again, and just mount one partition, then doing "rm -rf *" without involve the second partition, = rm will finish quickly. Has anyone obseved this behave on 8.0-RC? -Jin