[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED]: Re: 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.




Reply to: