Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2008 10:02:02 +0100
From:      "=?ISO-8859-2?Q?=A3ukasz_Sromek?=" <lukasz.sromek@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   Copying to usb flash drive corrupts files
Message-ID:  <32f529bc0802180102m6fa12e32x1903e3a8b98a70b3@mail.gmail.com>

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



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