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

[no subject]



On Tue, 2005-02-01 at 20:48 -0500, Sean Kilpatrick wrote:
> I typed udev at the command line and got nada -- not even
> the usual "No such command"
> Tried hotplug and got this:
> Usage: /etc/hotplug.d/default/default.hotplug AgentName [AgentArguments]
> AgentName values on this system:  dasd firmware ieee1394 input net pci scsi 
> tape usb
> 
> 
> This is even less illuminating than the man page.
> Obviously the solution to this _very_ common problem is still
> non-trivial.

	I just went through much of this with my Lego USB Tower IR transceiver.
The basic idea is: you plug in the drive, and the necessary commands
execute to create a file with a very long name in /sys.  Then, two more
files come into play.  They are /etc/udev/permissions.d/*
and /etc/udev/rules.d/*.  The permissions.d entry (which can live in any
one of several files in that directory) looks like:

sd*:root:disk:0660

the first arg (separated by colons) is a shell-glob that matches the
name of the device.  The next two are the owner user and group, and the
third is the octal permissions (rw-rw---- in this case).

	A simple rules.d entry looks like this:

KERNEL="legousbtower*", NAME="usb/%k"

shamelessly stolen off the 'net.  There are so many variables (the
KERNEL and NAME strings above, for instance) that I can't possibly
include them all in this missive.  At any rate, the rules file should
point you toward finding how to name your backup USB drive to a constant
entry in /dev.

	Hope this helps!

	See <a  rel="nofollow" href="http://www.linuxjournal.com/article/7316";>http://www.linuxjournal.com/article/7316</a> for a better explanation
than the above.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00106" href="msg00106.html">[ale] Re; simple question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00024" href="msg00024.html">[ale] Re; simple question</a></strong>
<ul><li><em>From:</em> drifter at oppositelock.org (Sean Kilpatrick)</li></ul></li>
<li><strong><a name="00034" href="msg00034.html">[ale] Re; simple question</a></strong>
<ul><li><em>From:</em> barry at alltc.com (Barry Hawkins)</li></ul></li>
<li><strong><a name="00040" href="msg00040.html">[ale] Re; simple question</a></strong>
<ul><li><em>From:</em> drifter at oppositelock.org (Sean Kilpatrick)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00088.html">[ale] ifup problems, possible IPv6</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00090.html">[ale] simple question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00040.html">[ale] Re; simple question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00106.html">[ale] Re; simple question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00089"><strong>Date</strong></a></li>
<li><a href="threads.html#00089"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>