Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2008 17:30:16 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: Copying to usb flash drive corrupts files
Message-ID:  <200802181730.17473.hselasky@c2i.net>
In-Reply-To: <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com>
References:  <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802181730.17473.hselasky>