Re: udev rule for usb drive

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

 



On Thu, May 28, 2009 at 13:25, Mike Mildner <mike.mildner@xxxxxxxxxx> wrote:

> thats the device and i try some houres around this rule:
>
> SUBSYSTEMS=="usb", KERNEL=="sd??", ATTRS{serial}=="SAMSUNG HDS0MUJ1NQA49906      ", SYMLINK+="usbplatte%n"
>
> what is the trick? after every change on this rule i used 'udevcontrol reload_rules' but /dev dosen't show the device 'usbplatte'?

--reload-rules does nothing on any usual system, it just reparses the
rules, which is not needed, because udevd detects changes itself.

You have to re-connect the device to get the rules applied.

Also replace the KERNEL=="sd??", which will never match on the disk
itself, only on partition 1-9 with "sd*", or just use
SUBSYSTEM=="block".

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux