Skip to contentSkip to conversation

Elitegroup K7S5A + usb_storage problem

DISCUSSION [email protected] 4 participants 4 messages Aug 7, 2005

lore
Share & tools
lore
#0 lore raw

Hi Alan,

no. the stick doesn't have a write protection switch.
Once when i tried to copy a file to the mp3 player i got a new file there on remount, but it consisted of incorrect data. (so writing seemed to be possible and just went wrong) (in that case the fat seemed to be damaged after i had tried this, so that windows wasn't able to read it correctly any more.
(formatting from the mp3 players menu helped)

greetings
Martin

PS: just as an info - i sent a usbmon trace to Pete Zaitcev today, should I send it to you too?

Alan Stern <[email protected]> schrieb am 07.08.05 17:14:52:

Quoted 8 lines · Martin Maurer

Hi Pete,

when using ub with your patch i get a lot further:
the device is detected and uba+uba1 entries appear.
I can mount the device correctly.
Copying the files down and comparing them with the originals gives correct results.

Quoted 6 lines

but:
when i delete the files which are on the stick and do an umount/mount cycle, the files are there again.
Copying files to the stick gives wrong results too.
Once the created file vanished after the remount,
and once it was there with a different name/size/date and garbage as content.

It sounds as though the device isn't actually carrying out the write operations. Is it write-protected?

Alan Stern

#1 lore raw
Quoted 8 lines · On Sun, 7 Aug 2005 [email protected] wrote:

Hi Alan,

no. the stick doesn't have a write protection switch.
Once when i tried to copy a file to the mp3 player i got a new file there on remount, but it consisted of incorrect data. (so writing seemed to be possible and just went wrong) (in that case the fat seemed to be damaged after i had tried this, so that windows wasn't able to read it correctly any more.
(formatting from the mp3 players menu helped)

Well, perhaps the device isn't consistently writing data to the correct locations.

Quoted 4 lines

greetings
Martin

PS: just as an info - i sent a usbmon trace to Pete Zaitcev today, should I send it to you too?

Pete is quite as competent at solving this kind of problem as I am. And he knows the ub driver much better, so I'm happy to bow out and let him worry about it! :-)

Just out of curiosity, if you plug the player into a Windows system without installing any special drivers first, will Windows be able to read and write files okay? If it can, a USB packet trace may give Pete a clue as to where to look.

Alan Stern

#2 lore raw
Quoted 20 lines · Alan Stern
Quoted 9 lines · On Sun, 7 Aug 2005 [email protected] wrote:

Hi Alan,

no. the stick doesn't have a write protection switch.
Once when i tried to copy a file to the mp3 player i got a new file there on remount, but it consisted of incorrect data. (so writing seemed to be possible and just went wrong) (in that case the fat seemed to be damaged after i had tried this, so that windows wasn't able to read it correctly any more.
(formatting from the mp3 players menu helped)

Well, perhaps the device isn't consistently writing data to the correct locations.

Quoted 5 lines

greetings
Martin

PS: just as an info - i sent a usbmon trace to Pete Zaitcev today, should I send it to you too?

Quoted 8 lines

Pete is quite as competent at solving this kind of problem as I am. And he knows the ub driver much better, so I'm happy to bow out and let him worry about it! :-)

Just out of curiosity, if you plug the player into a Windows system without installing any special drivers first, will Windows be able to read and write files okay? If it can, a USB packet trace may give Pete a clue as to where to look.

as far as i recall i didnt install any special drivers for my win 2k and win xp systems. (i got this mp3 player quite a while now...)
How would I do such an packet trace ?

Quoted 8 lines

Alan Stern

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

#3 lore raw
Quoted 8 lines · Martin Maurer
Quoted 4 lines

Just out of curiosity, if you plug the player into a Windows system without installing any special drivers first, will Windows be able to read and write files okay? If it can, a USB packet trace may give Pete a clue as to where to look.

as far as i recall i didnt install any special drivers for my win 2k and win xp systems. (i got this mp3 player quite a while now...)
How would I do such an packet trace ?

I have never run Snoopy on Windows myself and I did not want to subject you to it. Let's try my delay patch first. If that fails, I guess we have to get instructions from someone who knows how to run Snoopy. Maybe Windows issues some cache synchronization command when it commits FAT. Then the packet trace should show it.

-- Pete