Comment 74 for bug 61235

Revision history for this message
stefan (stefan-essl) wrote :

Hi,
  I've experienced the same problems with my brand new ;) Entryx MP4-Player.
It didn't work as it should. Data was not written...

So I googled around and I've found some information about firmware upgrade in german:
   http://www.discountfan.de/forumneu/read.php?8,161599,162341

BUT: I've not tried it yet.

Instead here is my solution based on the information I've got here:

me@home:/etc/udev/rules.d# cat 50-entryx.rules
SUBSYSTEMS=="scsi", ATTRS{vendor}=="entryx", RUN+="/bin/sh -c '/bin/echo 128 > /sys/block/%k/device/max_sectors'"

It took me quite some time to figure this out....
My questions have been:
Where and with what name should I write the rule...?
What vendor id, number shall I use...?

But finally with the help of the posting from Daniel Holbert (many thanks to you!) I've found the correct information:

me@home:/# udevinfo -q all -n /dev/sdc
P: /block/sdc
N: sdc
S: disk/by-id/usb-entryx_MP4_Player
S: disk/by-path/pci-0000:00:1d.7-usb-0:2:1.0-scsi-0:0:0:0
E: ID_VENDOR=entryx
E: ID_MODEL=MP4_Player
E: ID_REVISION=1.00
E: ID_SERIAL=entryx_MP4_Player
E: ID_TYPE=disk
E: ID_BUS=usb
E: ID_PATH=pci-0000:00:1d.7-usb-0:2:1.0-scsi-0:0:0:0

I tried to match with the id number and the info from command lsusb (which yields "Domain Technologies, Inc." as vendor) and also tried to set the ATTR{max_sector}=128 which was just ignored...(I controlled it with:
me@home:/# cat /sys/block/sdc/device/max_sectors
240
...was always the result...so i used the "echo 128..." variant which works fine!)

So I hope, that I could help somebody as you guys helped me! Thanx a lot!

with best regards
stefan