: Setting /sys/block/sdb/device/max_sectors permanently to 128 for specific device
I got a Samsung YP-R2 portable
...
Only problem is the device keeps being reset at any copy/move/delete
operation.
Googling provided a solution which seems to work [1][2] which consists
in setting max_sectors to 128 istead of the default 240.
I can do that as root manually but I'd like to have it done
automatically when the device is mounted.
For reference I solved this in the following way.
Create a file (as superuser):
/etc/udev/rules.d/50-samsung-yp-r2.rules
And writing the following rule:
SUBSYSTEMS=="scsi", ATTRS{vendor}=="Samsung", ATTRS{model}=="YP-R2*",
ATTR{max_sectors}="128"
Important: It has to be a unique line.
Lorenzo.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 50523B31.3000101@gmail.com">http://lists.debian.org/50523B31.3000101@gmail.com
|