[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Udev rule for external hard-drive



On Tue, 10 Aug 2010 09:48:35 -0700, Brian Troutwine wrote:

> On Tue, Aug 10, 2010 at 1:27 AM, Camaleón wrote:

(...)

>> Put the full output of the command:
>>
>> ***
>> udevinfo -a -p /sys/block/sdb/sdb1/
>> ***
>>
>> And upload the result to pastebin (or any other online service) to
>> avoid flood the list with tons of data :-)
>>
>> http://www.pastebin.com
> 
> Clearly that would have been a capital idea. Here you are:
> http://paste.lisp.org/display/113377

Good :-)
 
(...)

>> So, SUBSYSTEMS=="scsi" and ATTRS{serial}
>> =="57442D575839314133303236343538" have to be in the same "parent
>> device" block.
> 
> I _believe_ that it is, but I am new to reading udevinfo output.

Mmm, by reading the bunch of data you've sent, I don't think so. Look:

ATTRS{serial}=="57442D575839314133303236343538"

Is on the same "parent device" that:

SUBSYSTEMS=="usb"

But no "scsi". Try by correcting that and test again. It should be 
something like:

***
SUBSYSTEM=="block", SUBSYSTEMS=="usb", ATTRS{serial}=="57442D575839314133303236343538", SYMLINK+="external%n"
***

Greetings,

-- 
Camaleón


Reply to: