LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-26-2008, 06:45 AM   #1
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Rep: Reputation: 15
USB Mass storage MP3 player has songs cut in half using Konqueror to transfer


I noticed this morning that after transfering songs to my player that the last 10 or so songs on plays about half way before skipping to the next songs. I mounted the usb drive using the CLI and tranfered with the standard cp command. I used konqueror to check the size of the directory on the player so I didn't go over (its only a 1 GB). I closed konq and went back to CLI and tried umount. It kept saying the the device was busy. I did umount -l and it umount immediately, but the last 10ish songs are chopped off. Normally if I just use the CLI to mount transfer and umount it never says that the device is busy and all the songs are fine. Whats konqueror doing to make this kind of thing happen?
 
Old 02-26-2008, 07:00 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Hmmm... why do you think konqueror has anything to do with this?
Anyway, it looks like the last few files were not completely transferred when you forced the umount. When a device says it's busy, sometimes it is. When you force a disconnection, you can expect data corruption.
 
Old 02-26-2008, 07:27 AM   #3
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Original Poster
Rep: Reputation: 15
Quote:
why do you think konqueror has anything to do with this?
I used konqueror to transfer files to my gf's player without the CLI. I mounted, transfered then umounted all from within konqueror and the same thing happened only alot more files were corrupt. Using konq to umount the device never complained. The option said "Safely remove". Not sure if konqueror is the culprit, but I will try again with CLI only to see if there is any difference. Also what is the command to get the size of all the files and sub-directories within a directory?
 
Old 02-26-2008, 10:43 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
I used konqueror to transfer files to my gf's player without the CLI.
OK, but before you said:
Quote:
I mounted the usb drive using the CLI and tranfered with the standard cp command.
... and that you only used konqueror
Quote:
to check the size of the directory on the player
.

Quote:
what is the command to get the size of all the files and sub-directories within a directory?
df
 
Old 02-26-2008, 11:09 AM   #5
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Original Poster
Rep: Reputation: 15
Oops... I was rushing.

Quote:
I used konqueror to transfer files to my gf's player without the CLI.
This was a month ago.

Quote:
I mounted the usb drive using the CLI and tranfered with the standard cp command.
This was last night.

I'll try again tonight with CLI only and see what happens.

Thanks for the help.
 
Old 02-27-2008, 05:29 PM   #6
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
i have had the same problem with my mp3 player. what worked for me was to format the player (fat32). another thing i would like to point out is when you unmount your drive, you must wait until the light on it stops blinking, even if your icon looks as if it were unmounted. in my case the icon must not only look is if it is unmounted but disappears when transfer is complete. sometimes (when copying large lots) the copying progress bar has gone from the screen but the usb device' light is still blinking, indicating it is still doing something.

regards
ron
 
Old 02-27-2008, 06:04 PM   #7
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
I agree with what wabbalee said. You must wait until the light completely turns off on your player. When konq sais that the copy procedure is complete (copy indication window disappears), its very common that the procedure is not complete in reality. It can be because of data caching. The copy window disappears because all data has been cached, but in the same time cached data is not completely written to the device. And this is not shown anywhere.
So again: always wait until the light turns off on your player.
 
Old 02-27-2008, 07:27 PM   #8
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Original Poster
Rep: Reputation: 15
Ah I see. Thanks for the advice. Now that I think back it does look like the transfer takes only a few seconds for 1 GB worth of data. Even for USB 2.0 thats way too fast. So the transfer window is only reporting the write to the cache.

Thanks everyone
Köszönöm pusrob
 
Old 02-28-2008, 01:53 PM   #9
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
Quote:
Originally Posted by MonctonJohn View Post
So the transfer window is only reporting the write to the cache.
Well, yes. This is my theory about the problem. For non-USB devices I think the copy indicator shows the right procedure percentages.
Quote:
Originally Posted by MonctonJohn View Post
Thanks everyone
Köszönöm pusrob
You're welcome!
Did you learn hungarian?
 
Old 02-28-2008, 03:19 PM   #10
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Original Poster
Rep: Reputation: 15
My parents were originally from Hungary so that makes me Hungarian but I only have Canadian citezenship.
 
Old 02-28-2008, 04:51 PM   #11
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 507

Rep: Reputation: 36
I see. So you speak hungarian and english fluently. Do you come to Hungary sometimes?
 
Old 02-29-2008, 06:29 AM   #12
MonctonJohn
Member
 
Registered: Aug 2007
Location: Canada
Distribution: Mint
Posts: 112

Original Poster
Rep: Reputation: 15
The last time I was there was in 1995. I would love to go again. I may do that some day
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MP3 player (USB mass storage) works under 2.6, but not 2.4 kernel hollywoodb Linux - Hardware 4 01-09-2007 07:55 AM
weird usb mass storage (mp3 player) onionlee Linux - Hardware 1 06-07-2006 09:56 PM
Transfer and mass storage usb driver spec6635 Slackware 4 01-05-2005 05:59 AM
usb mp3 player (mass storeage) keeps changing address qwijibow Linux - General 3 12-25-2004 06:57 PM
MP3 player (USB mass storage) not mountable anymore, no block-oriented device the who Slackware 8 09-07-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration