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:
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!
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: www.discountfan .de/forumneu/ read.php? 8,161599, 162341
http://
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 =="entryx" , RUN+="/bin/sh -c '/bin/echo 128 > /sys/block/ %k/device/ max_sectors' "
SUBSYSTEMS=="scsi", ATTRS{vendor}
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 id/usb- entryx_ MP4_Player path/pci- 0000:00: 1d.7-usb- 0:2:1.0- scsi-0: 0:0:0 entryx_ MP4_Player pci-0000: 00:1d.7- usb-0:2: 1.0-scsi- 0:0:0:0
P: /block/sdc
N: sdc
S: disk/by-
S: disk/by-
E: ID_VENDOR=entryx
E: ID_MODEL=MP4_Player
E: ID_REVISION=1.00
E: ID_SERIAL=
E: ID_TYPE=disk
E: ID_BUS=usb
E: ID_PATH=
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: sdc/device/ max_sectors
me@home:/# cat /sys/block/
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