Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   please help me write a udev rule (http://www.linux-archive.org/debian-user/496478-please-help-me-write-udev-rule.html)

Yuwen Dai 03-03-2011 01:08 AM

please help me write a udev rule
 
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?


Best regards,
Yuwen


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.