PDA

View Full Version : USB MP3 Player Device Error


huangja
2007-05-21, 08:52 AM CDT
I recently bought an MP3 player in China, and I can add files simply by dragging and dropping files into it like a USB flash drive, however, this only works when i try it in windows, when i attempt to add the files in linux, it doesnt work.

Instead, when i copy and paste, It sometimes outputs "Error 'I/O Error' cannot copy ......" and it unmounts itself.

When it automounts it goes under the name Rockchip USB, if that helps.

Any ideas?

Firewing1
2007-05-27, 10:34 PM CDT
After this happens, open up a terminal and type:
dmesg
Are there any errors shown?
Firewing1

MonkeyMan
2007-05-28, 01:56 AM CDT
I recently bought an MP3 player in China, and I can add files simply by dragging and dropping files into it like a USB flash drive, however, this only works when i try it in windows, when i attempt to add the files in linux, it doesnt work.

Instead, when i copy and paste, It sometimes outputs "Error 'I/O Error' cannot copy ......" and it unmounts itself.

When it automounts it goes under the name Rockchip USB, if that helps.

Any ideas?

Dude! I got the exact same problem! I of course posted this a couple of weeks ago, but now I won't have to repost! Sweet! :cool:

Eager to hear a solution.

huangja
2007-05-28, 06:02 AM CDT
I figured out the solution, kinda. It seems as though i need to set /sys/block/sda/device/max_sectors to 128. The dfault value for it is currently 240. Im not exactly sure what it does, but it seems to allow the device to work.

However, I have to echo 128 to max_sectors every single time I plug in the device, which is kinda annoying. If anyone knows how to set the default value for max_sectors, that would be great.

bruno.taglienti
2007-09-28, 05:32 AM CDT
Use the following udev rule:

ACTION=="add",SYSFS{model}=="USB MP3",RUN+="/root/udev/set128_MP3"

where /root/udev/set128_MP3 is something like that:

#!/bin/sh
DEV=$(echo $DEVPATH | awk -F/ '{print $3}')
echo 128 >/sys/block/${DEV}/device/max_sectors

MonkeyMan
2007-10-22, 02:15 AM CDT
Use the following udev rule:

where /root/udev/set128_MP3 is something like that:

How do I use the udev rule???

bruno.taglienti
2007-10-22, 02:29 AM CDT
Loook at:

http://www.reactivated.net/writing_udev_rules.html

Otherwise, if you are running Fedora7, install kernel-2.6.23.1-4.fc7.i686.rpm , e.g. from http://mirror.switch.ch/ftp/mirror/fedora/linux/updates/testing/7/i386.
No further udev actions are required

MonkeyMan
2007-10-22, 10:25 AM CDT
Nice! thnx bro!