lkml.org 
[lkml]   [2004]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subject[USB-STORAGE] Repeatable lost files problem
Hello,

I have a weird repeateable problem using a mp3 player (Medion PRO2 256 MB)
seen under linux as a usb mass storage, through usb-storage module.

Device: MP3 Player and USB storage device (256MB)

vendor ID 0x66f (Sigmatel Inc)
chipset ID : 0x8000

It is reported to work correctly with usb-storage on
http://www.qbik.ch/usb/devices/index.php

relevant modules: usb-storage, usb-ohci
Debian Woody (stable) with default kernel 2.4.18bf
hotplug or usbmgr (same problem with both)

This is how to reproduce the trouble:
1) plug in the device
2) mount -t auto /dev/sda /mnt/usbdrive
3) cp ./filecopiedfromlinux.foo /mnt/usbdrive
4) ls /mnt/usbdrive :
filecopiedfromwindows.foo
filecopiedfromlinux.foo
5) umount /mnt/usbdrive
6) unplug physically the device, i.e. disconnect it from usb port
7) from the Player LCD display i can actually see both files, and I can
even listen to them, if they are MP3 audio files. So the files ARE in the
usb drive! I do swear it :)

But if now the weirdness comes up: if I do as follows:

8) plug in the device again
9) mount again as in step 2)
10) ls /mnt/usbdrive :
filecopiedfromwindows.foo

The file copied from Linux has been deleted! What's weird, IMHO, is that
ONLY the file(s) copied from Linux are lost, regardless of file content and
size. File(s) copied by means of windows are not "volatile" , i.e. they
persist between the sessions! Astonishing, isn't it?

Some additional info:
a) If I skip step 6), thus I don't disconnect physically the device, then
the problem disappears.
b) If I perform steps the corresponding of steps 8, 9, 10 using windows,
the filecopiedfromlinux are lost as well.
I think there's something wrong with the chipset, even if its reported as
working.
c) I can read and copy and use all files in the usb drive, without any
problems. If don't remove the usb player, I don't experience any
corruption.
d) My Linux Box is rather old (AMD K6-II 400 MHz, 512 MB Ram), but it works
well and is stable.
e) Sometimes it's possible to recover files using some undelete utility.

I can post dmesg output if this can help, or give you any other information
you may need to focus the problem.

Sorry for the very long message, but I wanted to be as more precise as i
can.
Thank you for the time you all spend in developing Linux kernel, I think
that our poor world is a bit better also because of you.

--
Call me Ishmael

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.368 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site