From owner-freebsd-usb@FreeBSD.ORG Mon Feb 18 16:29:19 2008 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 CF12116A420 for ; Mon, 18 Feb 2008 16:29:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 67EF813C448 for ; Mon, 18 Feb 2008 16:29:19 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [62.113.133.70] (account mc467741@c2i.net [62.113.133.70] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.1.13) with ESMTPA id 817268216; Mon, 18 Feb 2008 17:29:17 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 18 Feb 2008 17:30:16 +0100 User-Agent: KMail/1.9.7 References: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> In-Reply-To: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200802181730.17473.hselasky@c2i.net> Cc: Subject: Re: Copying to usb flash drive corrupts files 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: Mon, 18 Feb 2008 16:29:19 -0000 On Monday 18 February 2008, =C5=81ukasz Sromek wrote: > Hello. > > I asked this question on bsdforums.org, but I got no answer. I guess > this list is a better place to post problems like this. > > When I copy mp3s from hard drive to usb stick they become corrupted. > > lukasz ~% mount /mnt/usb > lukasz ~% cp file.mp3 /mnt/usb > lukasz ~% diff file.mp3 /mnt/usb/file.mp3 > lukasz ~% umount /mnt/usb > lukasz ~% mount /mnt/usb > lukasz ~% diff file.mp3 /mnt/usb/file.mp3 > Files file.mp3 and /mnt/usb/file.mp3 differ > > If I set sync option in fstab: > > /dev/da0 /mnt/usb msdosfs rw,noauto,sync 0 0 > > Then files are copied correctly, but very slowly, when buffer size is > low. Midnight Commander uses 8k buffers, so I get about 20kB/s which > is unacceptable. > > I'm using FreeBSD 7.0-RC2. > > Could you help me with this issue? Maybe your memory stick is corrupted ? What is the brand ? =2D-HPS