Public bug reported:

Something is strange in Ubuntu - I am using actually Gutsy.

What should work is this in /etc/udev/rules.d/13-DBbackup.rules:

KERNEL=="sd?1",SUBSYSTEM=="block",ATTR{size}=="16121824",NAME="usbDBbackup",SYMLINK="usbDBbackup",RUN+="/usr/local/bin/usbBackup"

Goal is to use this udev.rule to give an usbstick a special name, mountpoint 
and run a script to backup a SQLiteDB automagic ;-)
So far, so bad:
First Ubuntu mounts the stick to /dev/stick - it just ignores my rules.

So I removed the automount at the Gnome-Desktop via 
System/System-/Removable-Devices (or something similar, I run Ubuntu with a 
German localization)
When I insert the stick now, the rule is still ignored, no name is given, no 
symlink is set nor the script is run.

Actually SYSFS rules seem to be dead at all, so I used the things given by 
udevinfo for the device after plugging, dmesg shows me:
[35317.105398] sd 24:0:0:0: [sdb] Attached SCSI removable disk
okay, so I ask the ape:
udevinfo --attribute-walk --name=/dev/sdb1

 looking at device '/block/sdb/sdb1':
    KERNEL=="sdb1"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{stat}=="      24      192        0        0"
    ATTR{size}=="16121824"
    ATTR{start}=="32"
    ATTR{dev}=="8:17"

  looking at parent device '/block/sdb':
    KERNELS=="sdb"
    SUBSYSTEMS=="block"
    DRIVERS==""
    ATTRS{capability}=="13"
    ATTRS{stat}=="      34       23      456      312        0        0        
0        0        0      308      312"
    ATTRS{size}=="16121856"
    ATTRS{removable}=="1"
    ATTRS{range}=="16"
    ATTRS{dev}=="8:16"

Great, Where does the SYSFS has gone to? Nevermind, the device and it's parent 
should be sufficent to create matching rules.
What's wrong with my rule?
Any help highly appreciated, I'm absolutely stuck, sitting 18 hours in front of 
my computer trying...

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
my udev rules do not work at all
https://bugs.launchpad.net/bugs/178065
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to