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 03-03-2011, 01:31 AM
Hal Vaughan
 
Default please help me write a udev rule

On Mar 2, 2011, at 9:08 PM, Yuwen Dai wrote:

> Dear all,
>
> I always run a command like this when I plug a USB disk:
>
> echo 1024 > /sys/block/sdb/device/max_sectors
>
> however, the disk is not always `sdb'. Can I write a udev rule according to the UUID of the disk?

Do you mean a specific USB drive you have, or any time a USB drive is plugged in?



Hal

--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 2941A649-EB2D-4E7F-986F-E856C2D80347@halblog.com">http://lists.debian.org/2941A649-EB2D-4E7F-986F-E856C2D80347@halblog.com
 
Old 03-03-2011, 05:58 AM
Yuwen Dai
 
Default please help me write a udev rule

On Thu, Mar 3, 2011 at 10:31 AM, Hal Vaughan <hal@halblog.com> wrote:



On Mar 2, 2011, at 9:08 PM, Yuwen Dai wrote:



> Dear all,

>

> I always run a command like this when I plug a USB disk:

>

> echo 1024 > */sys/block/sdb/device/max_sectors

>

> however, the disk is not always `sdb'. *Can I write a udev rule according to the UUID of the disk?



Do you mean a specific USB drive you have, or any time a USB drive is plugged in?

A specific USB disk on which read speed is very low.* Thanks.

Best regards,
Yuwen
*







Hal



--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: http://lists.debian.org/2941A649-EB2D-4E7F-986F-E856C2D80347@halblog.com
 

Thread Tools




All times are GMT. The time now is 10:40 PM.

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