From owner-freebsd-stable@freebsd.org Wed Feb 1 12:02:31 2017 Return-Path: Delivered-To: freebsd-stable@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 7CF19CCBDD0 for ; Wed, 1 Feb 2017 12:02:31 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 43633C4C for ; Wed, 1 Feb 2017 12:02:30 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cYtcJ-0007AP-AF; Wed, 01 Feb 2017 13:02:27 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-stable@freebsd.org, "Jakub Lach" Subject: Re: FreeBSD 11.0-STABLE #0 r310265 amd64 seems to be cpi-ing garbage to mounted FAT32 fs after 10-20 GB. References: <1483038391207-6154963.post@n6.nabble.com> Date: Wed, 01 Feb 2017 13:02:26 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <1483038391207-6154963.post@n6.nabble.com> User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.9 X-Spam-Status: No, score=0.9 required=5.0 tests=ALL_TRUSTED, BAYES_50, URI_HEX autolearn=disabled version=3.4.0 X-Scan-Signature: 2c269fdec788119c0964d98755c55204 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 12:02:31 -0000 On Thu, 29 Dec 2016 20:06:31 +0100, Jakub Lach wrote: > Hello, > > I've recently tried to make a switch to a bigger memory card in some > device; what I've discovered, is that FreeBSD is cp-ing garbage to a > mounted FAT32 fs after first 10-20 GB (depending on luck). > > What I mean by garbage are non removable 'files' with random names > which cannot be escaped. The fastest way to get rid of them is newfs. > > I've initially thought the problem were faulty memory card(s) but > I was able to test them (mounted as FAT32 still) with sysutils/f3. > They are fine, the utility writes(!) and reads them correctly. > > However, as soon as cp (-a) gets involved, the garbage appears, > sometimes with CAM errors and reboots. > > Additionally, I saw exactly the same errors with FAT32 on HDD > mounted via USB, so the cards are not a problem. > > What I can do? > > 1. Reading is not at all affected, I can backup (cp -a) mounted FAT32 > cards to UFS2 (local disk) without problems. > 2. I can mount FAT32 and test the cards with sysutils/f3. The medium > (card) is tested via the same USB dual card reader as below. > > What I can't do reliably, as garbage appears after first 10-20 GB? > > 1. I can't cp (-a) from UFS2 to mounted FAT32 partition. Smaller writes > are a matter of luck. > 2. I can't cp (-a) from FAT32 (mounted fs on memory card A in dual card > reader) > to another FAT32 (mounted fs on memory card B in a dual card reader). > Same > problem as above. > > Any ideas? I see nobody replied. I don't have an answer, but this might help. You can try the freebsd-fs mailinglist. It is about filesystems. You can also provide more information about your system. What version of FreeBSD are you running? 'uname -a' and the content of /var/run/dmesg.boot as a starter. You can file a problem report (PR) at https://bugs.freebsd.org/ with a reproducable test case. Does the problem also occur if you use rsync to copy the files? Regards, Ronald. > > > > -- > View this message in context: > http://freebsd.1045724.x6.nabble.com/FreeBSD-11-0-STABLE-0-r310265-amd64-seems-to-be-cpi-ing-garbage-to-mounted-FAT32-fs-after-10-20-GB-tp6154963.html > Sent from the freebsd-stable mailing list archive at Nabble.com. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"