* udev - namedev configuration.
@ 2003-12-15 4:51 reg
2003-12-15 11:54 ` Kay Sievers
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reg @ 2003-12-15 4:51 UTC (permalink / raw)
To: linux-hotplug
Ive probably missed something with the rapid evolution of udev, but
Im having a problem with the udev-008 that I just installed.
I have the configuration line:
# USB Disk.
LABEL, BUS="usb", vendor="IC25N020", NAME="usb_disk"
in namedev.config. The disk in question has 4 partitions on it.
I used to see usb_disk or usb_disk1, but now Im only seeing
sda
sda1
sda2
sda3
sda4
So its recognizing the disk and its partitions, but is not using the name
on the LABEL card.
What am I doing wrong?
I would expect
usb_disk
usb_disk1
...
usb_disk4
---
Reg.Clemens
reg@dwf.com
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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] 5+ messages in thread
* Re: udev - namedev configuration.
2003-12-15 4:51 udev - namedev configuration reg
@ 2003-12-15 11:54 ` Kay Sievers
2003-12-15 22:00 ` Greg KH
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2003-12-15 11:54 UTC (permalink / raw)
To: linux-hotplug
On Sun, Dec 14, 2003 at 09:51:55PM -0700, reg@dwf.com wrote:
> Ive probably missed something with the rapid evolution of udev, but
> Im having a problem with the udev-008 that I just installed.
>
> I have the configuration line:
>
> # USB Disk.
> LABEL, BUS="usb", vendor="IC25N020", NAME="usb_disk"
Is there a file named "vendor" for your disc in /sys?
If yes, what is in there?
You are missing the number replacement, otherwise only your disk
will be named and not the partitions:
NAME="usb_disk%n"
> in namedev.config. The disk in question has 4 partitions on it.
There is no namedev.config in 008, it was renamed to
udev.config in 005 and later to udev.rules.
> I used to see usb_disk or usb_disk1, but now Im only seeing
>
> sda
> sda1
> sda2
> sda3
> sda4
Thats the default, no rule is matching.
Please make sure, as mentioned above if the kernel is exporting the file
"vendor" what you are trying to match against.
Please try:
REPLACE, KERNEL="sda*", NAME="usb_disk%n"
This works only for the first scsi-device, but we can see if udev is working.
> What am I doing wrong?
You can try "make DEBUG=true" an look at udev's debug in your syslog,
while connecting the disc.
thanks,
Kay
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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] 5+ messages in thread
* Re: udev - namedev configuration.
2003-12-15 4:51 udev - namedev configuration reg
2003-12-15 11:54 ` Kay Sievers
@ 2003-12-15 22:00 ` Greg KH
2003-12-16 0:53 ` reg
2003-12-16 8:01 ` Greg KH
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2003-12-15 22:00 UTC (permalink / raw)
To: linux-hotplug
On Sun, Dec 14, 2003 at 09:51:55PM -0700, reg@dwf.com wrote:
> Ive probably missed something with the rapid evolution of udev, but
> Im having a problem with the udev-008 that I just installed.
>
> I have the configuration line:
>
> # USB Disk.
> LABEL, BUS="usb", vendor="IC25N020", NAME="usb_disk"
>
> in namedev.config. The disk in question has 4 partitions on it.
Odds are you need to make 2 changes:
- your device really is not on the "usb" bus, it's on the scsi
bus. So you need to change the BUS="usb" to BUS="scsi". We
now actually check that value.
- you need to change the NAME rule to put the device partition
number in the name. This is done with the "%n" modifier.
So the rule should probably be:
LABEL, BUS="scsi", vendor="IC25N020", NAME="usb_disk%n"
Let us know if that works or not.
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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] 5+ messages in thread
* Re: udev - namedev configuration.
2003-12-15 4:51 udev - namedev configuration reg
2003-12-15 11:54 ` Kay Sievers
2003-12-15 22:00 ` Greg KH
@ 2003-12-16 0:53 ` reg
2003-12-16 8:01 ` Greg KH
3 siblings, 0 replies; 5+ messages in thread
From: reg @ 2003-12-16 0:53 UTC (permalink / raw)
To: linux-hotplug
> On Sun, Dec 14, 2003 at 09:51:55PM -0700, reg@dwf.com wrote:
> > Ive probably missed something with the rapid evolution of udev, but
> > Im having a problem with the udev-008 that I just installed.
> >
> > I have the configuration line:
> >
> > # USB Disk.
> > LABEL, BUS="usb", vendor="IC25N020", NAME="usb_disk"
> >
> > in namedev.config. The disk in question has 4 partitions on it.
>
> Odds are you need to make 2 changes:
> - your device really is not on the "usb" bus, it's on the scsi
> bus. So you need to change the BUS="usb" to BUS="scsi". We
> now actually check that value.
> - you need to change the NAME rule to put the device partition
> number in the name. This is done with the "%n" modifier.
>
> So the rule should probably be:
> LABEL, BUS="scsi", vendor="IC25N020", NAME="usb_disk%n"
>
> Let us know if that works or not.
>
Thanks, the "scsi" did it (I had alredy added the %n).
But tell me, I understand the hardware SCSI emulation that is going on here),
but how do you determine that this is a SCSI device, when there are
pointers up and over into PCI from both /sysfs/bus/usb/drivers and
/sysfs/bus/scsi/drivers for the same device?
--
Reg.Clemens
reg@dwf.com
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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] 5+ messages in thread
* Re: udev - namedev configuration.
2003-12-15 4:51 udev - namedev configuration reg
` (2 preceding siblings ...)
2003-12-16 0:53 ` reg
@ 2003-12-16 8:01 ` Greg KH
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2003-12-16 8:01 UTC (permalink / raw)
To: linux-hotplug
On Mon, Dec 15, 2003 at 05:53:54PM -0700, reg@dwf.com wrote:
>
> But tell me, I understand the hardware SCSI emulation that is going on here),
> but how do you determine that this is a SCSI device, when there are
> pointers up and over into PCI from both /sysfs/bus/usb/drivers and
> /sysfs/bus/scsi/drivers for the same device?
What does the device link from the block device point to? A scsi
device, right? That's what we are caring about, not the individual
devices along the usb to scsi device chain.
thanks,
greg k-h
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2003-12-16 8:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-15 4:51 udev - namedev configuration reg
2003-12-15 11:54 ` Kay Sievers
2003-12-15 22:00 ` Greg KH
2003-12-16 0:53 ` reg
2003-12-16 8:01 ` Greg KH
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).