Skip to contentSkip to conversation

why don't my rule work anymore

DISCUSSION Martin Lorenz 2 participants 4 messages Aug 15, 2005

lore
Share & tools
lore
#0 lore raw

since my last upgrade to udev 0.066-1 (debian unstable) the rule I used for almost a year now dosen't work anymore.

SYSFS{serial}="XXXXXXX", NAME="cruzer%n"

used to create /dev/cruzer and /dev/cruzer1
for my usb thumb drive

now I only get /dev/cruzer with this rule
when I deactivate it completely I get /dev/uba and /dev /uba1 with the rule also /dev/uba1 is omitted.

dmesg says so:
usb 3-3: new high speed USB device using ehci_hcd and address 21 ub(3.21): GetMaxLUN returned 0, using 1 LUNs
uba: uba1
usb 3-3: USB disconnect, address 21

udevmonitor
udevmonitor prints received from the kernel [UEVENT] and after the udev processing, the event which udev [UDEV] has generated

UEVENT[1124105242] add@/devices/pci0000:00/0000:00:13.2/usb3/3-3 UEVENT[1124105242] add@/devices/pci0000:00/0000:00:13.2/usb3/3-3/3-3:1.0 UEVENT[1124105242] add@/block/uba
UEVENT[1124105242] add@/block/uba/uba1

$ ll /dev/cr*
brw-rw----  1 root floppy 180, 0 2005-08-15 13:27 /dev/cruzer
$ ll /dev/ub*
ls: /dev/ub*: Datei oder Verzeichnis nicht gefunden
$ uname -a
Linux shire 2.6.12.2 #1 Mon Jul 11 10:29:52 CEST 2005 i686 GNU/Linux

/var/log/syslog excerpt:

Aug 15 13:39:10 shire kernel: usb 3-3: new high speed USB device using
ehci_hcd and address 23
Aug 15 13:39:10 shire kernel: ub(3.23): GetMaxLUN returned 0, using 1
LUNs
Aug 15 13:39:10 shire kernel:  uba: uba1
Aug 15 13:39:11 shire usb.agent[12469]:      ub: already loaded
Aug 15 13:39:11 shire kernel: SCSI subsystem initialized
Aug 15 13:39:11 shire kernel: Initializing USB Mass Storage driver...
Aug 15 13:39:11 shire kernel: usbcore: registered new driver usb-storage
Aug 15 13:39:11 shire kernel: USB Mass Storage support registered.
Aug 15 13:39:11 shire usb.agent[12469]:      usb-storage: loaded
successfully
Aug 15 13:39:12 shire udev[12537]: udev_rules.c: line too long, conf
line skipped /etc/udev/udev.conf, line 1
Aug 15 13:39:12 shire udev[12537]: udev_rules.c: line too long, conf

line skipped /etc/udev/udev.conf, line 3

on another computer it works like a charm with
dmesg

[4300518.646000] usb 3-2: new high speed USB device using ehci_hcd and
address 2
[4300518.879000] scsi0 : SCSI emulation for USB Mass Storage devices
[4300518.944000] usb-storage: device found at 2
[4300518.945000] usb-storage: waiting for device to settle before

scanning

ii udev 0.064-1 /dev/ management daemon

Linux mellon 2.6.12.2 #3 Mon Aug 15 11:26:18 CEST 2005 i686 GNU/Linux

Signature · 25 lines
Dipl.-Ing. Martin Lorenz

            They that can give up essential liberty 
	    to obtain a little temporary safety 
	    deserve neither liberty nor safety.
                                   Benjamin Franklin

Microsoft, I think, is fundamentally an evil company. 
 - JAMES H. CLARK 

my gpg-key ID: F1AAD37D
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xF1AAD37D

ICQ UIN: 33588107


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

arrrgh!

got it!

RTFM to me!

Quoted 4 lines · Dipl.-Ing. Martin Lorenz

since my last upgrade to udev 0.066-1 (debian unstable) the rule I used for almost a year now dosen't work anymore.

SYSFS{serial}="XXXXXXX", NAME="cruzer%n"

must be SYSFS{serial}="XXXXXXX", NAME="cruzer%n" now
- ---------------------^^

right?

sorry
tnx
mlo
- --
Dipl.-Ing. Martin Lorenz

They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.
Benjamin Franklin

Microsoft, I think, is fundamentally an evil company.
- JAMES H. CLARK

my gpg-key ID: F1AAD37D
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xF1AAD37D

ICQ UIN: 33588107
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDAIIcR1ITOvGq030RApPLAJ4gDNUqydxqw6CaLKbrSdwPUOQoqACeODTb MOl1/FhU1M361Xvr+Hvt7Nk=zxRO
-----END PGP SIGNATURE-----

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Martin Lorenz
Quoted 10 lines · Martin Lorenz

arrrgh!

got it!

RTFM to me!

Quoted 3 lines · Dipl.-Ing. Martin Lorenz

since my last upgrade to udev 0.066-1 (debian unstable) the rule I used for almost a year now dosen't work anymore.

Quoted 6 lines
Quoted 1 line

SYSFS{serial}="XXXXXXX", NAME="cruzer%n"

must be SYSFS{serial}="XXXXXXX", NAME="cruzer%n" now ---------------------^^

right?

That should better be '='. But the syntax is not enforced for the SYSFS key and '=' should also work.

Care to try:
udevtest /block/uba block
udevtest /block/uba/uba1 block

and see what it prints.

Kay

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
In reply to Martin Lorenz
Quoted 13 lines · Kay Sievers
Quoted 12 lines · Martin Lorenz

arrrgh!

got it!

RTFM to me!

Quoted 4 lines · Dipl.-Ing. Martin Lorenz

since my last upgrade to udev 0.066-1 (debian unstable) the rule I used for almost a year now dosen't work anymore.

SYSFS{serial}="XXXXXXX", NAME="cruzer%n"

Quoted 7 lines
Quoted 4 lines

must be SYSFS{serial}="XXXXXXX", NAME="cruzer%n" now ---------------------^^

right?

That should better be '='. But the syntax is not enforced for the SYSFS key and '=' should also work.

but it did the trick
definitely works again now that I replaced the '=' with '='

Quoted 3 lines

Care to try:
udevtest /block/uba block

# udevtest /block/uba block
udevtest.c: looking at device '/block/uba' from subsystem 'block'
udevtest.c: opened class_dev->name='uba'
udev_rules.c: rule applied, 'uba' becomes 'cruzer'
udev_add.c: creating device node '/dev/cruzer', major = '180', minor = '0', mode = '0660', uid = '0', gid = '25'
Quoted 1 line

udevtest /block/uba/uba1 block

# udevtest /block/uba/uba1 block
udevtest.c: looking at device '/block/uba/uba1' from subsystem 'block'
udevtest.c: opened class_dev->name='uba1'
udev_rules.c: rule applied, 'uba1' becomes 'cruzer1'
udev_rules.c: IMPORT executes '/sbin/vol_id --export /dev/.tmp-180-1'
udev_rules.c: rule applied, added symlink 'disk/by-uuid/1BC4-2D63'
udev_rules.c: add symlink 'disk/by-uuid/1BC4-2D63'
udev_rules.c: rule applied, added symlink 'disk/by-label/USB_DISK'
udev_rules.c: add symlink 'disk/by-label/USB_DISK'
udev_add.c: creating device node '/dev/cruzer1', major = '180', minor = '1', mode = '0660', uid = '0', gid = '25'

and the same with the '=' rule:
...weeeeeelll
I am positively sure that changing the rules from '=' to '=' was the only thing I did, but now it works again also with '=' in place instead of '='

I have no idea what else could have happened.
just a few more hours of uptime
nothing else installed, nothing deinstalled nothing configured only some work done...

those are the things I hate most. having a problem sloved and not knowing how...

thnx for you help
greets
mlo

Signature · 25 lines
Dipl.-Ing. Martin Lorenz

            They that can give up essential liberty 
	    to obtain a little temporary safety 
	    deserve neither liberty nor safety.
                                   Benjamin Franklin

Microsoft, I think, is fundamentally an evil company. 
 - JAMES H. CLARK 

my gpg-key ID: F1AAD37D
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xF1AAD37D

ICQ UIN: 33588107


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel