Copying to usb flash drive corrupts files
Łukasz Sromek
lukasz.sromek at gmail.com
Tue Feb 19 15:12:13 PST 2008
Okay, some more tests & results.
I did some extensive copying, reading, writing and rebooting under
windows - everything worked perfectly.
I booted freebsd and tried to read some files copied previously under
Windows - and I got errors. Moreover, copying the same file multiple
times to hard drive yields error in different bytes:
lukasz ~% mount /mnt/usb
lukasz ~% cp /mnt/usb/Sting\ -\ 1987\ -\ Nothing\ Like\ The\ Sun/07\
-\ We´Ll\ Be\ Together.mp3 ~/07\ -\ We´Ll\ Be\ Together.mp3-5a
lukasz ~% cp /mnt/usb/Sting\ -\ 1987\ -\ Nothing\ Like\ The\ Sun/07\
-\ We´Ll\ Be\ Together.mp3 ~/07\ -\ We´Ll\ Be\ Together.mp3-5b
lukasz ~% umount /mnt/usb
lukasz ~% diff ~/07\ -\ We´Ll\ Be\ Together.mp3-5a ~/07\ -\ We´Ll\
Be\ Together.mp3-5b
Files /home/lukasz/07 - We´Ll Be Together.mp3-5a and /home/lukasz/07
- We´Ll Be Together.mp3-5b differ
Then checked that file under windows - no errors at all!
So I thought, maybe just reading is broken somehow. I've booted
freebsd again, mounted usb stick and copied some files. But when I
tried to read them under windows I got errors.
I also tested three other usb flash sticks and they worked great, BUT
they all were high speed EHCI devices. My problematic usb stick is
detected at OHCI root hub.
More information about the freebsd-usb
mailing list