From owner-freebsd-current@FreeBSD.ORG Sun Sep 7 20:59:09 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9462016A4BF for ; Sun, 7 Sep 2003 20:59:09 -0700 (PDT) Received: from mail.libertysurf.net (mail.libertysurf.net [213.36.80.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68B8144013 for ; Sun, 7 Sep 2003 20:59:08 -0700 (PDT) (envelope-from raoul.megelas@libertysurf.fr) Received: from videotron.ca (81.166.35.160) by mail.libertysurf.net (6.5.034) id 3F557CC800290D34 for freebsd-current@freebsd.org; Mon, 8 Sep 2003 05:59:07 +0200 Received: from raoul.megelas by port.private.music with local (Exim 4.20) id 19wDBC-0000Bx-7P for freebsd-current@freebsd.org; Mon, 08 Sep 2003 05:59:06 +0200 Date: Mon, 8 Sep 2003 05:59:06 +0200 From: "raoul.megelas" To: freebsd-current@freebsd.org Message-ID: <20030908035906.GA728@libertysurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: usb flashkey error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 03:59:09 -0000 Hello all, in a precedent message, i reported an error using a flashkey. I must add the following: as one can see in the dmesg below, the controller is NOT the ohci but uhci. The error occurs on writing not reading I tested the file written to the flashkey, without fsync and after unmount applied; The file looks garbage. In this case, as suggested by John-Mark Gurney, the fsync made the trick. Best regards. uhci0: port 0xbce0-0xbcff irq 11 at device 31.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhub1: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2 uhub1: 4 ports with 4 removable, self powered umass0: GENERIC USB Mass Storage, rev 1.10/1.00, addr 3 GEOM: create disk da2 dp=0xc2714c50 da2 at umass-sim0 bus 0 target 0 lun 0 da2: Removable Direct Access SCSI-2 device da2: 1.000MB/s transfers da2: 1000MB (2048000 512 byte sectors: 64H 32S/T 1000C)