FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-13-2012, 07:59 PM
Lorenzo Sutton
 
Default : 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
 

Thread Tools




All times are GMT. The time now is 03:39 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org