Re: Setting /sys/block/sdb/device/max_sectors permanently to 128 for specific device
On Tue, 11 Sep 2012 23:15:51 +0200, Lorenzo Sutton wrote:
(...)
> 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. My understanding is that a
> udev rule has to be created, I would appreciate some help on:
The second link you sent provides some hints for the udev rule (see
comment #12 and/or #74), you may only have to accomodate the rule for
your Debian version.
> - Where to put the rule
Udev rules go under "/etc/udev/rules.d/".
> - What to put as the vendor (link [2] mentions vendor) and how to
> discover it so that the rule only applies to that very device.
(...)
You can use something like "udevadm info --query=all --path=/sys/block/
sdb | grep -i vendor" to find out.
More info about udev:
http://wiki.debian.org/udev
Greetings,
--
Camaleón
Reply to: