From owner-freebsd-usb@freebsd.org Thu Oct 29 09:29:37 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08B4FA1E891 for ; Thu, 29 Oct 2015 09:29:37 +0000 (UTC) (envelope-from 214748mv@gmail.com) Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C8A0F15B9 for ; Thu, 29 Oct 2015 09:29:36 +0000 (UTC) (envelope-from 214748mv@gmail.com) Received: by igdg1 with SMTP id g1so127150363igd.1 for ; Thu, 29 Oct 2015 02:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=m2EH9Hkc15sc8X1js1MlXeafph+hehloTAZjElw7Sxg=; b=gRVX8bo2JCGhxagWvSob0dpmtixIXCQY/kG6wlzS/OQZoxfZdvsxyA3ftDzteAvMa2 S9FqrRgsMloPCEHdVdb/P5G7UhGQhR5yUWHRMg1rE/n1SRteh2nXZ+8+fyp26mF1ubEa 61UekhztbGOxpuaUW4AZQqUENCc2H/1HFh94n9i1G79/qoEFUM7g3G9yIeoBG/TAXHhy 5WFW6IIxp2ySYxG3vtH42FWg8/YSFSGiNa+KaVWQXeCuJNFRWjQhih0pqjVlfRqY238O s7rvIymJ2R4vnsoNJL/wtoe6EKJWHZJzTVwKdyawxD6gXkWceEFC84hcYmyiJo/twvzv PdyA== MIME-Version: 1.0 X-Received: by 10.50.171.194 with SMTP id aw2mr8593668igc.83.1446110976205; Thu, 29 Oct 2015 02:29:36 -0700 (PDT) Received: by 10.79.0.105 with HTTP; Thu, 29 Oct 2015 02:29:36 -0700 (PDT) In-Reply-To: <562FA2E8.1020003@selasky.org> References: <562FA2E8.1020003@selasky.org> Date: Thu, 29 Oct 2015 10:29:36 +0100 Message-ID: Subject: Re: Non working USB stick in FreeBSD. From: "Ranjan1018 ." <214748mv@gmail.com> To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2015 09:29:37 -0000 2015-10-27 17:14 GMT+01:00 Hans Petter Selasky : > On 10/27/15 17:05, Ranjan1018 . wrote: > >> I have a 64GB USB stick that works correctly in Windows and Linux but not >> in FreeBSD. The problem is during the write. >> >> In FreeBSD I have tested the stick with the command: >> >> # dd if=/dev/zero of=/dev/daX bs=1m >> >> and, after some time, I received these errors in i386 and amd64: >> >> > Hi, > Hi Hans, thank you for your answer. > > Are you sure the disk is of the size advertised? > In Linux I obtain: $ uname -a Linux phenom2 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux $ sudo dd if=/dev/zero of=/dev/sdf obs=1M seek=8100 dd: writing to `/dev/sdf': No space left on device 114485248+0 records in 55900+0 records out 58615398400 bytes (59 GB) copied, 20869.4 s, 2.8 MB/s > How many 512-byte blocks are successfully written? > > In FreeBSD : # uname -a FreeBSD microserver 10.2-STABLE FreeBSD 10.2-STABLE #4 r289314M: Wed Oct 14 15:38:08 CEST 2015 root@microserver:/usr/obj/usr/src/sys/GENERIC amd64 # dd if=/dev/zero of=/dev/da0 bs=1m dd: /dev/da0: Input/output error 8140+0 records in 8139+0 records out 8534360064 bytes transferred in 3013.528065 secs (2832016 bytes/sec) # uname -a FreeBSD qbic 10.1-STABLE FreeBSD 10.1-STABLE #0: Sat May 9 07:53:21 CEST 2015 root@ativ:/usr/obj/i386.i386/root/TEMP/i386_SRC/src/sys/KSTACK_PAGES_4 i386 [root@qbic ~]# dd if=/dev/zero of=/dev/da2 bs=1m dd: /dev/da2: Input/output error 8140+0 records in 8139+0 records out 8534360064 bytes transferred in 3011.855356 secs (2833589 bytes/sec) # uname -a FreeBSD ativ 11.0-CURRENT FreeBSD 11.0-CURRENT #10 r289378M: Thu Oct 15 21:57:57 CEST 2015 root@ativ:/usr/obj/usr/src/sys/GENERIC amd64 [root@ativ ~]# dd if=/dev/zero of=/dev/da1 bs=1m dd: /dev/da1: Input/output error 8140+0 records in 8139+0 records out 8534360064 bytes transferred in 3041.663436 secs (2805820 bytes/sec) [root@ativ ~/bin]# dd if=/dev/zero of=/dev/da1 bs=1m seek=12140 dd: /dev/da1: Input/output error 69+0 records in 68+0 records out 71303168 bytes transferred in 35.119861 secs (2030280 bytes/sec) [root@ativ ~/bin]# dd if=/dev/zero of=/dev/da1 bs=1m seek=12200 dd: /dev/da1: Input/output error 9+0 records in 8+0 records out 8388608 bytes transferred in 13.562622 secs (618509 bytes/sec) Regards, Maurizio