When connecting a Samsun YP-M1 media player, the max_sector setting for USB is set to 240.
With this setting, attempting to put large files on the device hangs everything, as explained in the following thread: http://forums.cnet.com/5208-13973_102-0.html?threadID=366598.
Following the advices of this thread, I put the max_sector setting to 64 and everything went well.
Following the advices for bug #573219, I put the following line in /lib/udev/rules.d/40-usb-media-players.rules:
This did the trick and when I connect the device, max_sector is automatically set to the good value. In fact, it is set for both the device corresponding to the main memory of the player and also for the device corresponding to the SC card, which is exactly what I wanted.
Binary package hint: media-player-info
When connecting a Samsun YP-M1 media player, the max_sector setting for USB is set to 240. forums. cnet.com/ 5208-13973_ 102-0.html? threadID= 366598.
With this setting, attempting to put large files on the device hangs everything, as explained in the following thread: http://
Following the advices of this thread, I put the max_sector setting to 64 and everything went well.
Following the advices for bug #573219, I put the following line in /lib/udev/ rules.d/ 40-usb- media-players. rules:
ATTRS{idVendor} =="04e8" , ATTRS{idProduct }=="5123" , ENV{ID_ MEDIA_PLAYER} ="samsung- yepp_yp- m1", RUN+="/bin/sh -c '/bin/echo 64 > /sys/block/ %k/device/ max_sectors' "
This did the trick and when I connect the device, max_sector is automatically set to the good value. In fact, it is set for both the device corresponding to the main memory of the player and also for the device corresponding to the SC card, which is exactly what I wanted.