* %e switch doesn't work for udev
@ 2005-01-04 7:08 Philippe ROUQUIER
2005-01-04 15:44 ` Kay Sievers
2005-01-04 20:18 ` Kay Sievers
0 siblings, 2 replies; 3+ messages in thread
From: Philippe ROUQUIER @ 2005-01-04 7:08 UTC (permalink / raw)
To: linux-hotplug
Hi,
(I've not suscribed to the list so if you've got an answer please reply
directly to me).
I've read in the udev FAQ that this is the right place for talking and
asking about udev problems, if not please tell me the right place to
send my question.
here is the thing, in my /etc/udev/rules.d, I've set up something like
BUS="ide", KERNEL="hd[b-z]", SYSFS{removable}="1", NAME="%k",
SYMLINK="cdroms/cdrom%e" as it is advised in some docs. Now the problem
is it doesn't work: for example hdb (a cdrom) creates
a /dev/cdroms/cdrom symlink pointing to hdb and hdc (another cdrom
reader) also creates the same symlink later which is pointing to hdc
this time. The only way I've found to distinguish between the two cdroms
is with the %b switch but I really want to use the %e. I use udev
version 0.50 and I've got the newest hotplug package.
any idea what is going wrong?
Thanks in advance
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: %e switch doesn't work for udev
2005-01-04 7:08 %e switch doesn't work for udev Philippe ROUQUIER
@ 2005-01-04 15:44 ` Kay Sievers
2005-01-04 20:18 ` Kay Sievers
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2005-01-04 15:44 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2005-01-04 at 08:08 +0100, Philippe ROUQUIER wrote:
> Hi,
> (I've not suscribed to the list so if you've got an answer please reply
> directly to me).
> I've read in the udev FAQ that this is the right place for talking and
> asking about udev problems, if not please tell me the right place to
> send my question.
You are at the right place.
> here is the thing, in my /etc/udev/rules.d, I've set up something like
> BUS="ide", KERNEL="hd[b-z]", SYSFS{removable}="1", NAME="%k",
> SYMLINK="cdroms/cdrom%e" as it is advised in some docs. Now the problem
> is it doesn't work: for example hdb (a cdrom) creates
> a /dev/cdroms/cdrom symlink pointing to hdb and hdc (another cdrom
> reader) also creates the same symlink later which is pointing to hdc
> this time. The only way I've found to distinguish between the two cdroms
> is with the %b switch but I really want to use the %e. I use udev
> version 0.50 and I've got the newest hotplug package.
> any idea what is going wrong?
What does:
udevinfo -q all -p /block/hdb
udevinfo -q all -p /block/hdc
print?
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: %e switch doesn't work for udev
2005-01-04 7:08 %e switch doesn't work for udev Philippe ROUQUIER
2005-01-04 15:44 ` Kay Sievers
@ 2005-01-04 20:18 ` Kay Sievers
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2005-01-04 20:18 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2005-01-04 at 20:49 +0100, Philippe wrote:
> Le mardi 04 janvier 2005 à 16:44 +0100, Kay Sievers a écrit :
> > On Tue, 2005-01-04 at 08:08 +0100, Philippe ROUQUIER wrote:
> > > Hi,
> > > (I've not suscribed to the list so if you've got an answer please reply
> > > directly to me).
> > > I've read in the udev FAQ that this is the right place for talking and
> > > asking about udev problems, if not please tell me the right place to
> > > send my question.
> >
> > You are at the right place.
> >
> > > here is the thing, in my /etc/udev/rules.d, I've set up something like
> > > BUS="ide", KERNEL="hd[b-z]", SYSFS{removable}="1", NAME="%k",
> > > SYMLINK="cdroms/cdrom%e" as it is advised in some docs. Now the problem
> > > is it doesn't work: for example hdb (a cdrom) creates
> > > a /dev/cdroms/cdrom symlink pointing to hdb and hdc (another cdrom
> > > reader) also creates the same symlink later which is pointing to hdc
> > > this time. The only way I've found to distinguish between the two cdroms
> > > is with the %b switch but I really want to use the %e. I use udev
> > > version 0.50 and I've got the newest hotplug package.
> > > any idea what is going wrong?
> >
> > What does:
> > udevinfo -q all -p /block/hdb
> > udevinfo -q all -p /block/hdc
> >
> > print?
> I tried what you asked. and I always got the same message 'device not
> found in the database' I tried to modify the above lines and nothing
> came out of it always the same problem.
That's what I expected.
> by the way after -p what are we supposed to give the sysfs path
> ( /sys/block/hdc/dev) or just what you wrote which would correspond to a
> device in the database located in /dev/udev.db/ on my computer, that
> wasn't clear for what I got from my search on internet).
"man udevinfo" should print it.
The -p is the kernels sysfs path to the device udev created the node
for. udevinfo looks in its database for the name of the node.
How does ls -l /dev/udev.db look like? Is it a file or a directory?
We've changed from a single file to a directory recently and if your
initscript doesn't remove the old database before it runs udevstart and
you don't use tmpfs for /dev the old file may prevent the creation of
the directory.
Just remove /dev/udev.db completely and run /sbin/udevstart to create a
new one then udevinfo should print something.
Kay
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-04 20:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 7:08 %e switch doesn't work for udev Philippe ROUQUIER
2005-01-04 15:44 ` Kay Sievers
2005-01-04 20:18 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).