Re: please help me write a udev rule

2011-03-02 Thread Yuwen Dai
On Thu, Mar 3, 2011 at 10:31 AM, Hal Vaughan 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

Re: please help me write a udev rule

2011-03-02 Thread Hal Vaughan
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 spec

please help me write a udev rule

2011-03-02 Thread Yuwen Dai
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