Replace chmod 666 /dev/dri/card0 with udev rule [Solved]

Hello everyone ! , im configuring my xorg.conf to use 3d, i have a S3 Unichrome Pro (K8M800) chip , and i have it working right now , but in the manual that i read to do this theres a hack that i want to do the right way:
Link
a. First, the permission issue.  This is a dirty hack, but I have not taken any time to learn the innards of udev.  As root, type "chmod 666 /dev/dri/card0".  This will enable a regular user to use dri.  I know I should fix it via udev's config, and I intend on figuring that out in the near future and posting an update to this HOWTO.  For now, I put this command after "modprobe via" in my /etc/rc.d/rc.local file.
So i was wondering if maybe someone can help me to do the udev trick, as i have in my rc.local the line but if this can be done via udev i want to do it that way.
I was reading the udev article at the wiki but with all that KERNEL %k %n and that stuff i have no idea how to do it, if u think that its better for me to learn this the hard way maybe some usefull link will be good
Thank you.

Starting with /dev/hdd, there is already a rule for this in the default ruleset:
BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}=="1", SYSFS{media}=="cdrom*", NAME="%k", GROUP="optical"
This creates /dev/hdd as follows:
brw-rw---- 1 root optical 22, 64 2006-08-10 19:11 /dev/hdd
so all you need to do is add yourself to the optical group. I don't use gnomebaker myself, but the underlying setup is the same for all burning apps.
I was going to post a similar answer for your dri problem as well, because we do have this rule by default:
KERNEL=="card[0-9]*", NAME="dri/%k", GROUP="video"
which should create /dev/dri/cardN with root:video ownership, but I can't verify that - for some reason, my laptop has
crw-rw---- 1 root root 226, 0 2006-09-08 09:11 /dev/dri/card0
instead i.e. GROUP="video" is not applied. If yours shows up as root:video, however, just add yourself to the video group as well.

Similar Messages

  • [SOLVED] automatic usb-backup with udev-rules + script

    I would like to have my usb-harddrive automatically start a backup as soon as it is plugged in.  And finally a bell is supposed to ring.
    I've created an udev-rule and a backup-script as shown below.
    However, instead of creating /dev/backup-drive first something strange is happening:
    The bell rings 3 times, followed by the backup, followed by a 4th ring.
    What's going on?
    Here's may udev-rule:
    ## /etc/udev/rules.d/95-backup.rules
    SUBSYSTEMS=="usb", ATTRS {serial}=="100", SYMLINK=="backup-drive", RUN+="/usr/local/bin/backup-thumb.sh"
    fstab:
    /dev/backup-drive    /media/backup   ext3     rw,user    0 0
    and my script:
    #!/bin/bash
    sleep 10
    rsync -vrtolgh --exclude '/.VirtualBox/' --delete /home/myhome /media/backup-drive
    aplay /usr/share/sounds/phone.wav
    Last edited by mehldutt (2007-07-03 20:28:27)

    The syntax of your udev rule is all wrong - for example after SYMLINK you should use "+=" or ":=". "==" is for comparing to some value.
    I think in rsync command line you want -H not -h (help) option. Also -v (verbose) is useless since you'll never see the output.
    Another thing which will prevent running rsync properly is /media/backup-drive while you use /media/backup in fstab.
    I suggest that you first try running rsync command from the command line "manually" and try if it works at all. After you'll make it work try the below suggestions.
    Another problem: what makes the backup drive mounted under /media/backup directory when you plug it into usb slot ? Are you doing it somehow "manually" in the 10 second period after plugging ? Do you use automounter of some kind ?
    If you intend to use ext3 as the backup drive filesystem you should also add sync command after rsync to make sure no data stays in RAM cache.
    I think you need to read udev manpage first.
    I can also advice you to read my udev rules for automounting usb devices (it's for any type of filesystem and any number of partitions):
    KERNEL=="sd[b-z]", NAME:="%k", SYMLINK+="usbhd-%k", GROUP:="users", OPTIONS="last_rule"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", SYMLINK+="usbhd-%k", GROUP:="users", NAME:="%k"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/mkdir -p /media/usbhd-%k"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/ln -s /media/usbhd-%k /mnt/usbhd-%k"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", PROGRAM=="/lib/udev/vol_id -t %N", RESULT=="vfat", RUN+="/bin/mount -t vfat -o rw,noauto,flush,dirsync,noexec,nodev,noatime,dmask=000,fmask=111 /dev/%k /media/
    usbhd-%k", OPTIONS="last_rule"
    ACTION=="add", KERNEL=="sd[b-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,async,dirsync,noexec,nodev,noatime /dev/%k /media/usbhd-%k", OPTIONS="last_rule"
    ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/rm -f /mnt/usbhd-%k"
    ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/umount -l /media/usbhd-%k"
    ACTION=="remove", KERNEL=="sd[b-z][0-9]", RUN+="/bin/rmdir /media/usbhd-%k", OPTIONS="last_rule"
    I think it could be simplified and modified for your backup device like this:
    SUBSYSTEMS=="usb", ATTRS(idVendor)=="XXXX", ATTRS(idProduct)=="YYYY", KERNEL=="sd[a-z]", NAME:="%k", SYMLINK:="backupdevice", OPTIONS="last_rule"
    SUBSYSTEMS=="usb", ATTRS(idVendor)=="XXXX", ATTRS(idProduct)=="YYYY", ACTION=="add", KERNEL=="sd[a-z]1", SYMLINK:="backuppartition", GROUP:="users", NAME:="%k"
    SUBSYSTEMS=="usb", ATTRS(idVendor)=="XXXX", ATTRS(idProduct)=="YYYY", ACTION=="add", KERNEL=="sd[a-z]1", RUN+="/bin/mount -t auto -o rw,noauto,async,dirsync,noexec,nodev,noatime /dev/%k /media/backup-drive"
    SUBSYSTEMS=="usb", ATTRS(idVendor)=="XXXX", ATTRS(idProduct)=="YYYY", ACTION=="add", KERNEL=="sd[a-z]1", RUN+="/usr/local/bin/backup-thumb.sh", OPTIONS="last_rule"
    SUBSYSTEMS=="usb", ATTRS(idVendor)=="XXXX", ATTRS(idProduct)=="YYYY", ACTION=="remove", KERNEL=="sd[a-z]1", RUN+="/bin/umount -l /media/backup-drive", OPTIONS="last_rule"
    assuming that you have a single partition backup drive formatted as ext3 (or at least it's the first partition).
    Also another assumption is that idVendor and idProduct are unique to your backup drive. If not you should add some extra ATTRS parameters that will ensure this combination is unique.
    The directory /media/backup-drive must already exist (remove your fstab line - it's not needed in this case because mount command is run directly from the udev rule).
    Replace all XXXX and YYYY with the values from lsusb for your backup device - plug it in, run lsusb and copy values which look like XXXX:YYYY near to the name of your backup device.
    Anyway, you can play with different options and try to modify it yourself. The automounting rules work for me very well for some time (including flush option). The backup rules you need to test yourself :-)
    Last edited by lanrat (2007-05-05 17:20:51)

  • [Solved] Auto-open a file manager after mounting with udev rules

    Hellooooo,
    I followed the udev Wiki for auto mounting USBs and it now works great.
    The only problem is: how can I automatically open a file manager of the mounted directory? I tried putting this at the end of the "ACTION=="add"," section in "/etc/udev/rules.d/11-media-by-label-auto-mount.rules" but for some reason nothing happens:
    , RUN+="/usr/bin/dolphin /media/%E{dir_name}"
    Even if I just try to open dolphin with the "ACTION=="add"," section nothing happens either way.
    So what am I doing wrong?
    Last edited by algorythm (2011-05-05 12:35:56)

    In that case, the best choice in my opinion is to use Automounting UDisks Wrappers :
    devmon is a script developed by IgnorantGuru. He left Arch Linux, but the package in AUR is still there and is the last version. For a future new release, it should be available at his blog site. The script is distro independent.
    My udisksvm script, in its default state, doesn't launch a file manager after automounting, but it is not a big thing to let the automounting be done and then manually open a file manager (a new entry in the traydevice right-click menu can also be added for that).
    If you can do without automounting, there is also the bashmount script from jnguyen.
    All these scripts don't require writing any udev rules, they use udisks instead.
    I hope you could find something you like and which will suit your wishes.

  • Problem with udev rule to disable touchpad when USB mouse connects

    Hi, I've been running Arch on this laptop, but I can't get this udev rule to work properly.
    What I want to happen is: when I plug in my usb mouse, the laptop touchpad is disabled, and the left and right buttons are reversed (I'm left handed)
    After following several tutorials, both from the arch wiki and other sites, I've come up with this udev rule:
    ACTION=="add", SUBSYSTEM=="input", RUN+="/usr/local/bin/USBMouse.sh"
    ACTION=="remove", SUBSYSTEM=="input", RUN+="/usr/local/bin/USBMouse.sh"
    And here's the script it links to (USBMouse.sh):
    #!/bin/bash
    export DISPLAY=:0.0
    synclient TouchPadOff=$(/usr/bin/lsusb | grep "Microsoft Corp.\
    Nano Transceiver v1.0 for Bluetooth" | wc -l)
    if [[ $(/usr/bin/lsusb | grep "Microsoft Corp.\
    Nano Transceiver v1.0 for Bluetooth" | wc -l) == 1 ]]
    then
    xmodmap -e 'pointer = 3 2 1'
    fi
    if [[ $(/usr/bin/lsusb | grep "Microsoft Corp.\
    Nano Transceiver v1.0 for Bluetooth" | wc -l) == 0 ]]
    then
    xmodmap -e 'pointer = 1 2 3'
    fi
    Running the script from a terminal returns no errors and works as expected. The problem is when I plug/unplug the mouse from the usb port, nothing happens.
    I appreciate any insight you might have about how to fix this, and thank you in advance

    This has already been done. And another relevant thread.

  • Writing udev rules [SOLVED]

    Hi guys.
    I'm on a mission to run win7 on QEMU, and I also want to be able to use my USB-ports. Now, archwiki tells me to do this:
    $ qemu-system-i386 -usbdevice host:vendor_id:product_id disk_image
    You can find vendor_id and product_id of your device with lsusb command.
    Note: If you encounter permission errors when running QEMU, see Udev#Writing udev rules for information on how to set permissions of the device.
    I then made a file called 10-adm.rules both in, /etc/udev/rules.d and /usr/lib/udev/rules.d
    In it I wrote:
    KERNEL=="sdc[0-9]*",  GROUP="storage"
    My user with wich i lauch QEMU is in the group storage, and my usb always turns out as sdc*.
    But it still gives me the permission erros.
    Last edited by kimbo (2014-11-28 14:06:24)

    now I renamed the files to 99 instead of 10, and I even overkilled it with the GROUP:= instead of GROUP=
    tried:
    udevadm control --reload-rules
    udevadm trigger
    But it still doesnt work
    lsusb gives me:
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 004: ID 18a5:0302 Verbatim, Ltd Flash Drive
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 04f2:b23b Chicony Electronics Co., Ltd
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 002: ID 04ca:3002 Lite-On Technology Corp.
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    And my qemu-launch-commad it:
    qemu-system-x86_64 -m 1G -enable-kvm -cpu host -usbdevice host:18a5:0302 win7
    oh, I dont really undestand what you by ' the group that /dev/sdc* ends up having'
    Last edited by kimbo (2014-11-13 23:04:47)

  • How to swap eth0 - eth1 with testingudev rules[SOLVED

    Hi,
    I want to use the udev in testing because my ML-1710P works just out of the box. Of course there is one problem ... I have two network cards and they are recognized by kernel as eth0 the one that uses 8139too (a Realtek I belive) and as eth1 the one that uses tulip. I need to swap their names because I use the tulip one for internet (my ISP uses MAC address for validation)
    Previously I had in /etc/modprobe.conf
    alias eth0 tulip
    alias eth1 8139too
    I already tried
    KERNEL="eth*", SYSFS{address}="xx-xx-xx-xx-xx-xx", NAME="eth1"
    KERNEL="eth*", SYSFS{address}="xx-xx-xx-xx-xx-xx", NAME="eth0"
    in a file /etc/udev/rules.d/00_my.rules with correct MAC address (and lines order swapped also), but it won't work.
    Any ideea how to do this?
    PS: I have MOD_AUTOLOAD="yes" in /etc/rc.conf

    I would add the modules to the modules section in rc.conf, in the order you need them to be loaded. It does not change the autoload function, but this modules are loaded just before autoloader starts. So here is a good point to touch the system. In the end, it does what your old modprobe.conf entries did.
    The first one will allways be eth0 etc.

  • /dev/dri Missing

    I have a MacbookPro 5,5 (nVidia 9400M) and am trying to use the nouveau driver.  I have installed both packages (nouveau-dri and the xf86 one), but the X server cannot start becasue there is no /dev/dri.  I have tried using a stock kernel and a custom kernel.
    dmesg yeilds no output about nouveau, dri, or drm.
    The modules load fine.
    Here is my Xorg log:
    [ 47.073]
    X.Org X Server 1.11.4
    Release Date: 2012-01-27
    [ 47.073] X Protocol Version 11, Revision 0
    [ 47.073] Build Operating System: Linux 3.2.2-1-ARCH x86_64
    [ 47.073] Current Operating System: Linux aj-Arch64 3.2.4-1-ARCH #1 SMP PREEMPT Sat Feb 4 10:53:01 CET 2012 x86_64
    [ 47.073] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/sda4
    [ 47.074] Build Date: 29 January 2012 03:38:00PM
    [ 47.074]
    [ 47.074] Current version of pixman: 0.24.2
    [ 47.075] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 47.076] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 47.079] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb 10 17:52:20 2012
    [ 47.081] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 47.082] (==) No Layout section. Using the first Screen section.
    [ 47.082] (==) No screen section available. Using defaults.
    [ 47.082] (**) |-->Screen "Default Screen Section" (0)
    [ 47.082] (**) | |-->Monitor "<default monitor>"
    [ 47.082] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 47.082] (==) Automatically adding devices
    [ 47.082] (==) Automatically enabling devices
    [ 47.082] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
    [ 47.082] Entry deleted from font path.
    [ 47.082] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 47.082] Entry deleted from font path.
    [ 47.082] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 47.082] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 47.082] Entry deleted from font path.
    [ 47.082] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 47.082] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/
    [ 47.082] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 47.082] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 47.082] (II) Loader magic: 0x7ccae0
    [ 47.082] (II) Module ABI versions:
    [ 47.082] X.Org ANSI C Emulation: 0.4
    [ 47.082] X.Org Video Driver: 11.0
    [ 47.082] X.Org XInput driver : 13.0
    [ 47.082] X.Org Server Extension : 6.0
    [ 47.083] (--) PCI:*(0:2:0:0) 10de:0863:106b:00b9 rev 177, Mem @ 0x92000000/16777216, 0x80000000/268435456, 0x90000000/33554432, I/O @ 0x00001000/128, BIOS @ 0x????????/131072
    [ 47.083] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
    [ 47.083] (II) LoadModule: "extmod"
    [ 47.083] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    [ 47.084] (II) Module extmod: vendor="X.Org Foundation"
    [ 47.084] compiled for 1.11.4, module version = 1.0.0
    [ 47.084] Module class: X.Org Server Extension
    [ 47.084] ABI class: X.Org Server Extension, version 6.0
    [ 47.084] (II) Loading extension MIT-SCREEN-SAVER
    [ 47.084] (II) Loading extension XFree86-VidModeExtension
    [ 47.084] (II) Loading extension XFree86-DGA
    [ 47.084] (II) Loading extension DPMS
    [ 47.084] (II) Loading extension XVideo
    [ 47.084] (II) Loading extension XVideo-MotionCompensation
    [ 47.084] (II) Loading extension X-Resource
    [ 47.084] (II) LoadModule: "dbe"
    [ 47.084] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    [ 47.084] (II) Module dbe: vendor="X.Org Foundation"
    [ 47.084] compiled for 1.11.4, module version = 1.0.0
    [ 47.084] Module class: X.Org Server Extension
    [ 47.084] ABI class: X.Org Server Extension, version 6.0
    [ 47.084] (II) Loading extension DOUBLE-BUFFER
    [ 47.084] (II) LoadModule: "glx"
    [ 47.084] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 47.097] (II) Module glx: vendor="NVIDIA Corporation"
    [ 47.097] compiled for 4.0.2, module version = 1.0.0
    [ 47.097] Module class: X.Org Server Extension
    [ 47.097] (II) NVIDIA GLX Module 290.10 Wed Nov 16 18:01:24 PST 2011
    [ 47.097] (II) Loading extension GLX
    [ 47.097] (II) LoadModule: "record"
    [ 47.097] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    [ 47.098] (II) Module record: vendor="X.Org Foundation"
    [ 47.098] compiled for 1.11.4, module version = 1.13.0
    [ 47.098] Module class: X.Org Server Extension
    [ 47.098] ABI class: X.Org Server Extension, version 6.0
    [ 47.098] (II) Loading extension RECORD
    [ 47.098] (II) LoadModule: "dri"
    [ 47.098] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    [ 47.098] (II) Module dri: vendor="X.Org Foundation"
    [ 47.098] compiled for 1.11.4, module version = 1.0.0
    [ 47.098] ABI class: X.Org Server Extension, version 6.0
    [ 47.098] (II) Loading extension XFree86-DRI
    [ 47.098] (II) LoadModule: "dri2"
    [ 47.098] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 47.098] (II) Module dri2: vendor="X.Org Foundation"
    [ 47.098] compiled for 1.11.4, module version = 1.2.0
    [ 47.098] ABI class: X.Org Server Extension, version 6.0
    [ 47.098] (II) Loading extension DRI2
    [ 47.098] (==) Matched nouveau as autoconfigured driver 0
    [ 47.098] (==) Matched nv as autoconfigured driver 1
    [ 47.098] (==) Matched nvidia as autoconfigured driver 2
    [ 47.098] (==) Matched vesa as autoconfigured driver 3
    [ 47.098] (==) Matched fbdev as autoconfigured driver 4
    [ 47.098] (==) Assigned the driver to the xf86ConfigLayout
    [ 47.098] (II) LoadModule: "nouveau"
    [ 47.098] (II) Loading /usr/lib/xorg/modules/drivers/nouveau_drv.so
    [ 47.098] (II) Module nouveau: vendor="X.Org Foundation"
    [ 47.098] compiled for 1.11.3, module version = 0.0.16
    [ 47.098] Module class: X.Org Video Driver
    [ 47.098] ABI class: X.Org Video Driver, version 11.0
    [ 47.098] (II) LoadModule: "nv"
    [ 47.099] (WW) Warning, couldn't open module nv
    [ 47.099] (II) UnloadModule: "nv"
    [ 47.099] (II) Unloading nv
    [ 47.099] (EE) Failed to load module "nv" (module does not exist, 0)
    [ 47.100] (II) LoadModule: "nvidia"
    [ 47.100] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 47.100] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 47.100] compiled for 4.0.2, module version = 1.0.0
    [ 47.100] Module class: X.Org Video Driver
    [ 47.100] (II) LoadModule: "vesa"
    [ 47.101] (WW) Warning, couldn't open module vesa
    [ 47.101] (II) UnloadModule: "vesa"
    [ 47.101] (II) Unloading vesa
    [ 47.101] (EE) Failed to load module "vesa" (module does not exist, 0)
    [ 47.102] (II) LoadModule: "fbdev"
    [ 47.102] (WW) Warning, couldn't open module fbdev
    [ 47.102] (II) UnloadModule: "fbdev"
    [ 47.102] (II) Unloading fbdev
    [ 47.102] (EE) Failed to load module "fbdev" (module does not exist, 0)
    [ 47.103] (II) NOUVEAU driver
    [ 47.103] (II) NOUVEAU driver for NVIDIA chipset families :
    [ 47.103] RIVA TNT (NV04)
    [ 47.103] RIVA TNT2 (NV05)
    [ 47.103] GeForce 256 (NV10)
    [ 47.103] GeForce 2 (NV11, NV15)
    [ 47.103] GeForce 4MX (NV17, NV18)
    [ 47.103] GeForce 3 (NV20)
    [ 47.103] GeForce 4Ti (NV25, NV28)
    [ 47.103] GeForce FX (NV3x)
    [ 47.103] GeForce 6 (NV4x)
    [ 47.103] GeForce 7 (G7x)
    [ 47.103] GeForce 8 (G8x)
    [ 47.103] GeForce GTX 200 (NVA0)
    [ 47.103] GeForce GTX 400 (NVC0)
    [ 47.103] (II) NVIDIA dlloader X Driver 290.10 Wed Nov 16 17:41:10 PST 2011
    [ 47.103] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
    [ 47.103] (--) using VT number 7
    [ 47.107] drmOpenDevice: node name is /dev/dri/card0
    [ 47.113] drmOpenByBusid: Searching for BusID pci:0000:02:00.0
    [ 47.114] drmOpenDevice: node name is /dev/dri/card0
    [ 47.118] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.118] drmOpenDevice: node name is /dev/dri/card1
    [ 47.123] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.123] drmOpenDevice: node name is /dev/dri/card2
    [ 47.127] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.127] drmOpenDevice: node name is /dev/dri/card3
    [ 47.132] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.132] drmOpenDevice: node name is /dev/dri/card4
    [ 47.137] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.137] drmOpenDevice: node name is /dev/dri/card5
    [ 47.141] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.141] drmOpenDevice: node name is /dev/dri/card6
    [ 47.146] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.146] drmOpenDevice: node name is /dev/dri/card7
    [ 47.150] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.150] drmOpenDevice: node name is /dev/dri/card8
    [ 47.155] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.155] drmOpenDevice: node name is /dev/dri/card9
    [ 47.160] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.160] drmOpenDevice: node name is /dev/dri/card10
    [ 47.164] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.164] drmOpenDevice: node name is /dev/dri/card11
    [ 47.169] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.169] drmOpenDevice: node name is /dev/dri/card12
    [ 47.173] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.173] drmOpenDevice: node name is /dev/dri/card13
    [ 47.178] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.178] drmOpenDevice: node name is /dev/dri/card14
    [ 47.183] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.183] drmOpenDevice: node name is /dev/dri/card15
    [ 47.187] drmOpenByBusid: drmOpenMinor returns -1
    [ 47.187] drmOpenDevice: node name is /dev/dri/card0
    [ 47.194] drmOpenDevice: node name is /dev/dri/card0
    [ 47.199] drmOpenDevice: node name is /dev/dri/card1
    [ 47.203] drmOpenDevice: node name is /dev/dri/card2
    [ 47.208] drmOpenDevice: node name is /dev/dri/card3
    [ 47.213] drmOpenDevice: node name is /dev/dri/card4
    [ 47.218] drmOpenDevice: node name is /dev/dri/card5
    [ 47.223] drmOpenDevice: node name is /dev/dri/card6
    [ 47.228] drmOpenDevice: node name is /dev/dri/card7
    [ 47.233] drmOpenDevice: node name is /dev/dri/card8
    [ 47.238] drmOpenDevice: node name is /dev/dri/card9
    [ 47.243] drmOpenDevice: node name is /dev/dri/card10
    [ 47.248] drmOpenDevice: node name is /dev/dri/card11
    [ 47.252] drmOpenDevice: node name is /dev/dri/card12
    [ 47.257] drmOpenDevice: node name is /dev/dri/card13
    [ 47.262] drmOpenDevice: node name is /dev/dri/card14
    [ 47.267] drmOpenDevice: node name is /dev/dri/card15
    [ 47.272] (EE) [drm] failed to open device
    [ 47.272] (II) Loading sub module "fb"
    [ 47.272] (II) LoadModule: "fb"
    [ 47.272] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 47.272] (II) Module fb: vendor="X.Org Foundation"
    [ 47.272] compiled for 1.11.4, module version = 1.0.0
    [ 47.272] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 47.272] (II) Loading sub module "wfb"
    [ 47.272] (II) LoadModule: "wfb"
    [ 47.272] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 47.273] (II) Module wfb: vendor="X.Org Foundation"
    [ 47.273] compiled for 1.11.4, module version = 1.0.0
    [ 47.273] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 47.273] (II) Loading sub module "ramdac"
    [ 47.273] (II) LoadModule: "ramdac"
    [ 47.273] (II) Module "ramdac" already built-in
    [ 47.273] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 47.273] (II) Loading /usr/lib/xorg/modules/libwfb.so
    [ 47.273] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 47.273] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 47.273] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    [ 47.273] (==) NVIDIA(0): RGB weight 888
    [ 47.273] (==) NVIDIA(0): Default visual is TrueColor
    [ 47.273] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    [ 47.273] (**) NVIDIA(0): Enabling 2D acceleration
    [ 47.825] (II) NVIDIA(GPU-0): Display (Apple Color LCD (DFP-0)) does not support NVIDIA 3D
    [ 47.825] (II) NVIDIA(GPU-0): Vision stereo.
    [ 47.828] (II) NVIDIA(0): NVIDIA GPU GeForce 9400M (C79) at PCI:2:0:0 (GPU-0)
    [ 47.828] (--) NVIDIA(0): Memory: 524288 kBytes
    [ 47.828] (--) NVIDIA(0): VideoBIOS: 62.79.67.00.00
    [ 47.828] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
    [ 47.828] (--) NVIDIA(0): Connected display device(s) on GeForce 9400M at PCI:2:0:0
    [ 47.828] (--) NVIDIA(0): Apple Color LCD (DFP-0)
    [ 47.828] (--) NVIDIA(0): Apple Color LCD (DFP-0): 165.0 MHz maximum pixel clock
    [ 47.828] (--) NVIDIA(0): Apple Color LCD (DFP-0): Internal Single Link LVDS
    [ 47.830] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID has been
    [ 47.830] (**) NVIDIA(0): enabled on all display devices.
    [ 47.852] (II) NVIDIA(0): Assigned Display Device: DFP-0
    [ 47.852] (==) NVIDIA(0):
    [ 47.852] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
    [ 47.852] (==) NVIDIA(0): will be used as the requested mode.
    [ 47.852] (==) NVIDIA(0):
    [ 47.852] (II) NVIDIA(0): Validated modes:
    [ 47.852] (II) NVIDIA(0): "nvidia-auto-select"
    [ 47.852] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 800
    [ 47.856] (--) NVIDIA(0): DPI set to (112, 106); computed from "UseEdidDpi" X config
    [ 47.856] (--) NVIDIA(0): option
    [ 47.856] (--) Depth 24 pixmap format is 32 bpp
    [ 47.856] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.
    [ 47.862] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
    [ 47.862] (II) NVIDIA(0): may not be running or the "AcpidSocketPath" X
    [ 47.862] (II) NVIDIA(0): configuration option may not be set correctly. When the
    [ 47.862] (II) NVIDIA(0): ACPI event daemon is available, the NVIDIA X driver will
    [ 47.862] (II) NVIDIA(0): try to use it to receive ACPI event notifications. For
    [ 47.862] (II) NVIDIA(0): details, please see the "ConnectToAcpid" and
    [ 47.862] (II) NVIDIA(0): "AcpidSocketPath" X configuration options in Appendix B: X
    [ 47.862] (II) NVIDIA(0): Config Options in the README.
    [ 47.865] (II) NVIDIA(0): Setting mode "nvidia-auto-select"
    [ 48.159] (II) Loading extension NV-GLX
    [ 48.177] (==) NVIDIA(0): Disabling shared memory pixmaps
    [ 48.177] (==) NVIDIA(0): Backing store disabled
    [ 48.177] (==) NVIDIA(0): Silken mouse enabled
    [ 48.178] (==) NVIDIA(0): DPMS enabled
    [ 48.178] (II) Loading extension NV-CONTROL
    [ 48.178] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "CRT", but no
    [ 48.178] (WW) NVIDIA(0): such display device could be found, or all display devices
    [ 48.178] (WW) NVIDIA(0): by that name are currently unavailable.
    [ 48.178] (WW) NVIDIA(0): Option "TwinViewXineramaInfoOrder" requested "TV", but no such
    [ 48.178] (WW) NVIDIA(0): display device could be found, or all display devices by
    [ 48.178] (WW) NVIDIA(0): that name are currently unavailable.
    [ 48.178] (II) Loading extension XINERAMA
    [ 48.178] (II) Loading sub module "dri2"
    [ 48.178] (II) LoadModule: "dri2"
    [ 48.179] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    [ 48.179] (II) Module dri2: vendor="X.Org Foundation"
    [ 48.179] compiled for 1.11.4, module version = 1.2.0
    [ 48.179] ABI class: X.Org Server Extension, version 6.0
    [ 48.179] (II) NVIDIA(0): [DRI2] Setup complete
    [ 48.179] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
    [ 48.179] (==) RandR enabled
    [ 48.179] (II) Initializing built-in extension Generic Event Extension
    [ 48.179] (II) Initializing built-in extension SHAPE
    [ 48.179] (II) Initializing built-in extension MIT-SHM
    [ 48.179] (II) Initializing built-in extension XInputExtension
    [ 48.179] (II) Initializing built-in extension XTEST
    [ 48.179] (II) Initializing built-in extension BIG-REQUESTS
    [ 48.179] (II) Initializing built-in extension SYNC
    [ 48.179] (II) Initializing built-in extension XKEYBOARD
    [ 48.179] (II) Initializing built-in extension XC-MISC
    [ 48.179] (II) Initializing built-in extension SECURITY
    [ 48.179] (II) Initializing built-in extension XINERAMA
    [ 48.179] (II) Initializing built-in extension XFIXES
    [ 48.179] (II) Initializing built-in extension RENDER
    [ 48.179] (II) Initializing built-in extension RANDR
    [ 48.179] (II) Initializing built-in extension COMPOSITE
    [ 48.179] (II) Initializing built-in extension DAMAGE
    [ 48.180] (II) Initializing extension GLX
    [ 48.222] (II) config/udev: Adding input device Power Button (/dev/input/event4)
    [ 48.222] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 48.222] (II) LoadModule: "evdev"
    [ 48.223] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.223] (II) Module evdev: vendor="X.Org Foundation"
    [ 48.223] compiled for 1.10.99.902, module version = 2.6.0
    [ 48.223] Module class: X.Org XInput Driver
    [ 48.223] ABI class: X.Org XInput driver, version 13.0
    [ 48.223] (II) Using input driver 'evdev' for 'Power Button'
    [ 48.223] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.223] (**) Power Button: always reports core events
    [ 48.223] (**) Power Button: Device: "/dev/input/event4"
    [ 48.223] (--) Power Button: Found keys
    [ 48.223] (II) Power Button: Configuring as keyboard
    [ 48.223] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input4/event4"
    [ 48.223] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
    [ 48.223] (**) Option "xkb_rules" "evdev"
    [ 48.223] (**) Option "xkb_model" "evdev"
    [ 48.223] (**) Option "xkb_layout" "us"
    [ 48.245] (II) config/udev: Adding input device Power Button (/dev/input/event2)
    [ 48.245] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 48.245] (II) Using input driver 'evdev' for 'Power Button'
    [ 48.245] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.245] (**) Power Button: always reports core events
    [ 48.245] (**) Power Button: Device: "/dev/input/event2"
    [ 48.245] (--) Power Button: Found keys
    [ 48.245] (II) Power Button: Configuring as keyboard
    [ 48.245] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2/event2"
    [ 48.246] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 7)
    [ 48.246] (**) Option "xkb_rules" "evdev"
    [ 48.246] (**) Option "xkb_model" "evdev"
    [ 48.246] (**) Option "xkb_layout" "us"
    [ 48.246] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
    [ 48.246] (II) No input driver specified, ignoring this device.
    [ 48.246] (II) This device may have been added with another device file.
    [ 48.246] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
    [ 48.246] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 48.246] (II) Using input driver 'evdev' for 'Sleep Button'
    [ 48.246] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.246] (**) Sleep Button: always reports core events
    [ 48.246] (**) Sleep Button: Device: "/dev/input/event3"
    [ 48.246] (--) Sleep Button: Found keys
    [ 48.246] (II) Sleep Button: Configuring as keyboard
    [ 48.246] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3/event3"
    [ 48.246] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 8)
    [ 48.246] (**) Option "xkb_rules" "evdev"
    [ 48.246] (**) Option "xkb_model" "evdev"
    [ 48.246] (**) Option "xkb_layout" "us"
    [ 48.247] (II) config/udev: Adding input device Apple Inc. Apple Internal Keyboard / Trackpad (/dev/input/event9)
    [ 48.247] (**) Apple Inc. Apple Internal Keyboard / Trackpad: Applying InputClass "evdev keyboard catchall"
    [ 48.247] (II) Using input driver 'evdev' for 'Apple Inc. Apple Internal Keyboard / Trackpad'
    [ 48.247] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.247] (**) Apple Inc. Apple Internal Keyboard / Trackpad: always reports core events
    [ 48.247] (**) Apple Inc. Apple Internal Keyboard / Trackpad: Device: "/dev/input/event9"
    [ 48.247] (--) Apple Inc. Apple Internal Keyboard / Trackpad: Found keys
    [ 48.247] (II) Apple Inc. Apple Internal Keyboard / Trackpad: Configuring as keyboard
    [ 48.247] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.0/input/input9/event9"
    [ 48.247] (II) XINPUT: Adding extended input device "Apple Inc. Apple Internal Keyboard / Trackpad" (type: KEYBOARD, id 9)
    [ 48.247] (**) Option "xkb_rules" "evdev"
    [ 48.247] (**) Option "xkb_model" "evdev"
    [ 48.247] (**) Option "xkb_layout" "us"
    [ 48.247] (II) config/udev: Adding input device bcm5974 (/dev/input/event8)
    [ 48.247] (**) bcm5974: Applying InputClass "evdev touchpad catchall"
    [ 48.247] (**) bcm5974: Applying InputClass "touchpad catchall"
    [ 48.247] (II) LoadModule: "synaptics"
    [ 48.248] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 48.248] (II) Module synaptics: vendor="X.Org Foundation"
    [ 48.248] compiled for 1.11.0, module version = 1.5.0
    [ 48.248] Module class: X.Org XInput Driver
    [ 48.248] ABI class: X.Org XInput driver, version 13.0
    [ 48.248] (II) Using input driver 'synaptics' for 'bcm5974'
    [ 48.248] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 48.248] (**) bcm5974: always reports core events
    [ 48.248] (**) Option "Device" "/dev/input/event8"
    [ 48.463] (--) synaptics: bcm5974: x-axis range 0 - 1280
    [ 48.463] (--) synaptics: bcm5974: y-axis range 0 - 800
    [ 48.574] (--) synaptics: bcm5974: pressure range 0 - 256
    [ 48.574] (--) synaptics: bcm5974: finger width range 0 - 0
    [ 48.574] (--) synaptics: bcm5974: buttons: left double triple
    [ 48.574] (--) synaptics: bcm5974: Vendor 0x5ac Product 0x236
    [ 48.575] (**) Option "SHMConfig" "true"
    [ 48.575] (**) Option "TapButton1" "1"
    [ 48.575] (**) Option "TapButton2" "2"
    [ 48.575] (**) Option "TapButton3" "3"
    [ 48.660] (--) synaptics: bcm5974: touchpad found
    [ 48.660] (**) bcm5974: always reports core events
    [ 48.766] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.2/input/input8/event8"
    [ 48.766] (II) XINPUT: Adding extended input device "bcm5974" (type: TOUCHPAD, id 10)
    [ 48.766] (**) synaptics: bcm5974: (accel) MinSpeed is now constant deceleration 2.5
    [ 48.766] (**) synaptics: bcm5974: MaxSpeed is now 1.75
    [ 48.766] (**) synaptics: bcm5974: AccelFactor is now 0.133
    [ 48.767] (**) bcm5974: (accel) keeping acceleration scheme 1
    [ 48.767] (**) bcm5974: (accel) acceleration profile 1
    [ 48.767] (**) bcm5974: (accel) acceleration factor: 2.000
    [ 48.767] (**) bcm5974: (accel) acceleration threshold: 4
    [ 48.772] (--) synaptics: bcm5974: touchpad found
    [ 48.772] (II) config/udev: Adding input device bcm5974 (/dev/input/mouse1)
    [ 48.772] (II) No input driver specified, ignoring this device.
    [ 48.772] (II) This device may have been added with another device file.
    [ 48.772] (II) config/udev: Adding input device Built-in iSight (/dev/input/event6)
    [ 48.772] (**) Built-in iSight: Applying InputClass "evdev keyboard catchall"
    [ 48.772] (II) Using input driver 'evdev' for 'Built-in iSight'
    [ 48.772] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.772] (**) Built-in iSight: always reports core events
    [ 48.772] (**) Built-in iSight: Device: "/dev/input/event6"
    [ 48.772] (--) Built-in iSight: Found keys
    [ 48.772] (II) Built-in iSight: Configuring as keyboard
    [ 48.772] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:04.1/usb1/1-4/1-4:1.0/input/input6/event6"
    [ 48.772] (II) XINPUT: Adding extended input device "Built-in iSight" (type: KEYBOARD, id 11)
    [ 48.772] (**) Option "xkb_rules" "evdev"
    [ 48.772] (**) Option "xkb_model" "evdev"
    [ 48.772] (**) Option "xkb_layout" "us"
    [ 48.773] (II) config/udev: Adding input device Kensington USB Input Device (/dev/input/event7)
    [ 48.773] (**) Kensington USB Input Device: Applying InputClass "evdev pointer catchall"
    [ 48.773] (II) Using input driver 'evdev' for 'Kensington USB Input Device'
    [ 48.773] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 48.773] (**) Kensington USB Input Device: always reports core events
    [ 48.773] (**) Kensington USB Input Device: Device: "/dev/input/event7"
    [ 48.773] (--) Kensington USB Input Device: Found 9 mouse buttons
    [ 48.773] (--) Kensington USB Input Device: Found scroll wheel(s)
    [ 48.773] (--) Kensington USB Input Device: Found relative axes
    [ 48.773] (--) Kensington USB Input Device: Found x and y relative axes
    [ 48.773] (II) Kensington USB Input Device: Configuring as mouse
    [ 48.773] (II) Kensington USB Input Device: Adding scrollwheel support
    [ 48.773] (**) Kensington USB Input Device: YAxisMapping: buttons 4 and 5
    [ 48.773] (**) Kensington USB Input Device: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 48.773] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:06.0/usb4/4-2/4-2:1.0/input/input7/event7"
    [ 48.773] (II) XINPUT: Adding extended input device "Kensington USB Input Device" (type: MOUSE, id 12)
    [ 48.773] (II) Kensington USB Input Device: initialized for relative axes.
    [ 48.773] (**) Kensington USB Input Device: (accel) keeping acceleration scheme 1
    [ 48.773] (**) Kensington USB Input Device: (accel) acceleration profile 0
    [ 48.773] (**) Kensington USB Input Device: (accel) acceleration factor: 2.000
    [ 48.773] (**) Kensington USB Input Device: (accel) acceleration threshold: 4
    [ 48.773] (II) config/udev: Adding input device Kensington USB Input Device (/dev/input/mouse0)
    [ 48.773] (II) No input driver specified, ignoring this device.
    [ 48.773] (II) This device may have been added with another device file.
    [ 48.774] (II) config/udev: Adding input device applesmc (/dev/input/event5)
    [ 48.774] (II) No input driver specified, ignoring this device.
    [ 48.774] (II) This device may have been added with another device file.
    [ 48.774] (II) config/udev: Adding input device applesmc (/dev/input/js0)
    [ 48.774] (II) No input driver specified, ignoring this device.
    [ 48.774] (II) This device may have been added with another device file.
    [ 48.774] (II) config/udev: Adding input device PC Speaker (/dev/input/event0)
    [ 48.774] (II) No input driver specified, ignoring this device.
    [ 48.774] (II) This device may have been added with another device file.
    [ 48.830] (II) Power Button: Close
    [ 48.830] (II) UnloadModule: "evdev"
    [ 48.830] (II) Unloading evdev
    [ 48.870] (II) Power Button: Close
    [ 48.870] (II) UnloadModule: "evdev"
    [ 48.870] (II) Unloading evdev
    [ 48.976] (II) Sleep Button: Close
    [ 48.976] (II) UnloadModule: "evdev"
    [ 48.976] (II) Unloading evdev
    [ 49.083] (II) Apple Inc. Apple Internal Keyboard / Trackpad: Close
    [ 49.083] (II) UnloadModule: "evdev"
    [ 49.083] (II) Unloading evdev
    [ 49.296] (II) UnloadModule: "synaptics"
    [ 49.296] (II) Unloading synaptics
    [ 49.403] (II) Built-in iSight: Close
    [ 49.403] (II) UnloadModule: "evdev"
    [ 49.403] (II) Unloading evdev
    [ 49.510] (II) Kensington USB Input Device: Close
    [ 49.510] (II) UnloadModule: "evdev"
    [ 49.510] (II) Unloading evdev
    [ 50.608] Server terminated successfully (0). Closing log file.
    As you can see, it cannot open the device node in /dev/dri.  In fact, the directory is completely missing.
    Here is dmesg | tail
    [ 5.570284] USB Video Class driver (1.1.1)
    [ 5.614103] usb 4-1.3: USB disconnect, device number 5
    [ 6.525856] scsi 6:0:0:0: Direct-Access APPLE SD Card Reader 1.00 PQ: 0 ANSI: 0
    [ 6.528578] sd 6:0:0:0: [sdb] Attached SCSI removable disk
    [ 6.804399] EXT3-fs (sda4): using internal journal
    [ 10.178974] NET: Registered protocol family 10
    [ 10.524427] forcedeth 0000:00:0a.0: irq 44 for MSI/MSI-X
    [ 10.524623] forcedeth 0000:00:0a.0: eth0: no link during initialization
    [ 10.526192] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 29.095138] wmi: Mapper loaded
    Here is dmesg | grep drm
    [ 0.850282] [drm] Initialized drm 1.1.0 20060810
    [ 0.850403] [drm] radeon defaulting to kernel modesetting.
    [ 0.850429] [drm] radeon kernel modesetting enabled.
    dmesg | grep dri doesn't yield anything relevant.
    Here is lsmod
    Module Size Used by
    nouveau 742264 0
    mxm_wmi 1425 1 nouveau
    wmi 8475 1 mxm_wmi
    ipv6 288223 16
    snd_hda_codec_cirrus 16855 1
    uvcvideo 64311 0
    videodev 82037 1 uvcvideo
    usb_storage 44455 0
    uas 8120 0
    v4l2_compat_ioctl32 8316 1 videodev
    media 10565 2 videodev,uvcvideo
    snd_hda_intel 23375 0
    bcm5974 8549 0
    btusb 11385 0
    bluetooth 151903 1 btusb
    snd_hda_codec 89160 2 snd_hda_codec_cirrus,snd_hda_intel
    rfkill 15434 1 bluetooth
    snd_hwdep 6389 1 snd_hda_codec
    snd_pcm 74748 2 snd_hda_codec,snd_hda_intel
    crc16 1359 1 bluetooth
    snd_page_alloc 7121 2 snd_pcm,snd_hda_intel
    snd_timer 19544 1 snd_pcm
    snd 59150 6 snd_hda_codec_cirrus,snd_timer,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel
    firewire_ohci 31637 0
    joydev 9863 0
    forcedeth 52756 0
    firewire_core 50648 1 firewire_ohci
    soundcore 6210 1 snd
    battery 6421 0
    evdev 9498 0
    applesmc 11709 0
    i2c_nforce2 5128 0
    button 4470 1 nouveau
    crc_itu_t 1363 1 firewire_core
    processor 25582 2
    pcspkr 1819 0
    input_polldev 2914 1 applesmc
    ac 2344 0
    shpchp 26249 0
    apple_bl 2978 0
    pci_hotplug 25454 1 shpchp
    coretemp 5590 0
    hid_apple 5450 0
    usbhid 35320 0
    hid 83523 2 usbhid,hid_apple
    ext3 192073 1
    mbcache 5881 1 ext3
    jbd 63371 1 ext3
    sd_mod 28275 2
    sr_mod 14887 0
    cdrom 36681 1 sr_mod
    ohci_hcd 21599 0
    ahci 20037 1
    libahci 19495 1 ahci
    ehci_hcd 40666 0
    libata 166590 2 libahci,ahci
    scsi_mod 133411 5 libata,sr_mod,sd_mod,uas,usb_storage
    usbcore 146049 9 ehci_hcd,ohci_hcd,usbhid,uas,bcm5974,usb_storage,btusb,uvcvideo
    usb_common 954 1 usbcore
    hfsplus 78289 0
    Last edited by Relish (2012-02-11 02:28:27)

    moetunes wrote:
    That X log says you are using the nvidia driver
    [ 47.273] (II) NVIDIA(0): Creating default Display subsection in Screen section
    Right, so I booted from another kernel that doesn't have an nvidia driver compiled for it, and same error (without anything that says NVIDIA) of course.
    David Batson wrote:Have you installed mesa?
    Yes
    Last edited by Relish (2012-02-11 22:14:59)

  • Solved: Udev rules not working

    I have file called "/etc/udev/rules.d/99-monitor-hotplug.rules" with this rule:
    ACTION=="change", SUBSYSTEM=="drm", RUN+="/root/scripts/hotPlugMonitor.sh"
    But hotPlugMonitor.sh-script is not ran even thought it has permission to be ran and
    udevadm monitor --property
    gives:
    KERNEL[69983.904205] change /devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 (drm)
    ACTION=change
    DEVNAME=/dev/dri/card0
    DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
    DEVTYPE=drm_minor
    HOTPLUG=1
    MAJOR=226
    MINOR=0
    SEQNUM=1885
    SUBSYSTEM=drm
    UDEV [69983.905420] change /devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0 (drm)
    ACTION=change
    DEVNAME=/dev/dri/card0
    DEVPATH=/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card0
    DEVTYPE=drm_minor
    HOTPLUG=1
    ID_FOR_SEAT=drm-pci-0000_01_00_0
    ID_PATH=pci-0000:01:00.0
    ID_PATH_TAG=pci-0000_01_00_0
    MAJOR=226
    MINOR=0
    SEQNUM=1885
    SUBSYSTEM=drm
    TAGS=:seat:uaccess:
    USEC_INITIALIZED=6
    when I detach my monitor.
    Last edited by oilgame (2013-08-31 09:10:08)

    You got the command slightly wrong. See the right command:
    udevadm control --reload
    From:
    $ udevadm control --help | grep reload
    --reload reload rules and databases

  • Udev rules and group / permission errors [solved] [outdated]

    Latest udev is a miracle to me. It ignores every group ore permission settings. Anyone else having same experiences?
    Last edited by Moo-Crumpus (2008-09-29 05:17:40)

    Let's assume that you have two files with udev rules. The basic udev.rules and 00.udev.rules (with custom rules).
    Udev first reads all rules from 00 file and then rules from the basic file.
    This means that if you have a custom rule for a given device you should copy all rules that apply to it from the basic file to the 00 file (not only lines with GROUP). This is because with OPTIONS="last_rule" udev will stop processing rules for this device.
    All rules are read and then applied in the order from the top to bottom except SUBSYTEM which is applied as the last rule (kind of held in a buffer). This is the reason why my cd burner /dev/hdc had permissions for disk group and not optical.
    This is my 00.udev.rules (it still needs some cosmetic changes but it works and of course I don't have all the devices):
    SUBSYSTEM="video4linux", GROUP="users"
    SUBSYSTEM="sound", GROUP="users"
    SUBSYSTEM="printer", GROUP="users"
    SUBSYSTEM="block", GROUP="disk"
    BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
    BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", SYMLINK="%c{1} %c{2}"
    BUS="ide", KERNEL="hdc", SYSFS{removable}="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", GROUP="users", SYMLINK="nagrywarka dvd cdrw", OPTIONS="last_rule"
    BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", NAME="%k", GROUP="users", OPTIONS="last_rule"
    BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-floppy.sh %k", RESULT="floppy", NAME{all_partitions}="%k", GROUP="users", OPTIONS="last_rule"
    BUS="scsi", KERNEL="sr[0-9]*", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
    BUS="scsi", KERNEL="scd[0-9]*", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"
    BUS="scsi", KERNEL="sr[0-9]*", SYSFS{type}="5", NAME="scd%n", GROUP="users", OPTIONS="last_rule"
    BUS="scsi", KERNEL="sg[0-9]*", SYSFS{type}="5", NAME="%k", GROUP="users", OPTIONS="last_rule"
    KERNEL="fd[0-9]*", NAME="fd%n", GROUP="users", SYMLINK="floppy/%n fd%nu1440 fd%nu720 fd%nh1200 fd%nu360", OPTIONS="last_rule"
    BUS="usb", SYSFS{serial}="CN16J1Q3HWSX", KERNEL="lp[0-9]*", NAME="usb/%k", GROUP="users", SYMLINK="drukarka_hp_845c drukarka", OPTIONS="last_rule"
    BUS="usb", KERNEL="sd*", PROGRAM="/etc/udev/usb-storage.sh %k", RESULT="1", NAME="%k", GROUP="users", OPTIONS="last_rule"
    KERNEL="rtc", NAME="misc/%k", SYMLINK="%k", GROUP="users", MODE="0664", OPTIONS="last_rule"
    KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k" GROUP="users", OPTIONS="last_rule"
    KERNEL="nvidia*", GROUP="users", OPTIONS="last_rule"
    KERNEL="fb[0-9]*", NAME="fb/%n", GROUP="users", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="card[0-9]*", NAME="dri/%k", GROUP="users", OPTIONS="last_rule"
    KERNEL="3dfx*", NAME="%k", GROUP="users", OPTIONS="last_rule"
    KERNEL="dvb*", PROGRAM="/etc/udev/dvb.sh %k", NAME="%c", GROUP="users", OPTIONS="last_rule"
    KERNEL="video[0-9]*", NAME="v4l/video%n", GROUP="users", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="radio[0-9]*", NAME="v4l/radio%n", GROUP="users", SYMLINK="radio%e", OPTIONS="last_rule"
    KERNEL="vbi[0-9]*", NAME="v4l/vbi%n", GROUP="users", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="vtx[0-9]*", NAME="v4l/vtx%n", GROUP="users", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="controlC[0-9]*", NAME="snd/%k", OPTIONS="last_rule"
    KERNEL="hw[CD0-9]*", NAME="snd/%k", OPTIONS="last_rule"
    KERNEL="pcm[CD0-9cp]*", NAME="snd/%k", OPTIONS="last_rule"
    KERNEL="midi[CD0-9]*", NAME="snd/%k", OPTIONS="last_rule"
    KERNEL="timer", NAME="snd/%k", OPTIONS="last_rule"
    KERNEL="seq", NAME="snd/%k", OPTIONS="last_rule"
    KERNEL="audio*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="dmmidi*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="admmidi*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="dsp*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="adsp*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="midi*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="amidi*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="mixer*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="sequencer*", NAME="sound/%k", SYMLINK="%k", OPTIONS="last_rule"
    KERNEL="pktcdvd", NAME="pktcdvd/control", GROUP="users", MODE="0660", OPTIONS="last_rule"
    KERNEL="pktcdvd[0-9]*", NAME="pktcdvd/pktcdvd%n", GROUP="users", MODE="0660", OPTIONS="last_rule"
    The problem with /dev/hdc was that first udev (version 057) was reading a rule from my 00 file (BUS="ide", KERNEL="hdc"...) with GROUP=users. Then it was reading SUBSYSTEM="block", GROUP="disk" rule from the basic file (but it wasn't executed at that time). And then it was reading BUS="ide", KERNEL="hd[a-z]", SYSFS{removable}="1"... with GROUP=optical. Then it was executing SUBSYTEM rule (hdc is a block device). That's why only disk group had an access to /dev/hdc (with OPTIONS="last_rule" in the basic file in the GROUP="optical" line it would ignore SUBSYSTEM rule).
    There are also other rules that you should add (IMO) to your custom rules if  you are changing something. In my case it's for example BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k"... which creates symlinks for cd drives. This rule must be above other rules (the number of the symlinks is now unlimited - previously it was 5 IIRC).
    So now the rules are mixed together in the lexical order (except SUBSYTEM rules which are executed at the end) unless OPTIONS="last_rule" is used or second (and other) rule has a NAME filed (only one rule for a given device can have NAME filed. Every other rule for the same device with NAME field is ignored IIRC). It also means you can now split rules for a device into several rules - only one of them can have NAME filed and the last should have OPTIONS="last_rule".
    Since in your case you have custom rules only for a well defined usb devices (not /dev/sd*) IMO it should work as you think (only add OPTIONS="last_rule").
    I hope it's now perfectly clear  8) 

  • [solved] /etc/udev/rules.d/10-network.rules ignored

    Hi.
    I have 4 nics (eth0, eth1, eth2, eth3) mapped to MAC addresses in  /etc/udev/rules.d/10-network.rules.
    Some months ago, I had to symlink /etc/udev/rules.d/80-net-name-slot.rules to /dev/null in order to use these static names.
    Now it doesn't work anymore (again and again and again) after a full update (kernel and I assume systemd).  The "nic-names" are completely wrong.  You call this "predictable". I call this "unpredictable". The only thing which is predictable is that after a kernel update, the network will stop working. It has been that way for months and months ... fortunately I don't update other machines anymore.
    Was this non sense really necessary?
    Anyway, if you could tell me what to do now to get my network rules applied again, I would really appreciate.
    Right now all ethX/MAC are wrong and none of them gets an IP (had to set an IP manually to post here).
    * I know what "predictable Network Interface Names" is about. I don't want this bullshit. It's much worse as it used to be. Keep it simple, folks!
    Last edited by Agnelo de la Crotche (2013-03-27 07:14:05)

    tomegun wrote:To narrow down the problem you are experiencing: What do you mean when you say that the names are "wrong"? Are they still eth0, eth1,... just in the wrong order, or are you actually seeing the "weird" new names given by udev?
    To answer this question more precisely.
    * with  /etc/udev/rules.d/80-net-name-slot.rules => /dev/nul and /etc/udev/rules.d/10-network.rules posted earlier  (in #4)
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:0a:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:06:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:24:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    5: eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
    link/ether 66:64:b3:6a:26:61 brd ff:ff:ff:ff:ff:ff
    The rules are ignored.
    * after deleting   /etc/udev/rules.d/80-net-name-slot.rules
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: enp6s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:0a:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    3: enp6s1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:06:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    4: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:24:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    5: enp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
    link/ether a2:ee:ec:d1:65:2d brd ff:ff:ff:ff:ff:ff
    The rules don't apply.
    * with  /etc/udev/rules.d/80-net-name-slot.rules => /dev/nul and after replacing eth0, eth1, eth2, eth3 with arbitrary names net0, net1, net2, net3 in  /etc/udev/rules.d/10-network.rules
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: net1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:24:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    3: net3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:0a:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    4: net2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:06:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    5: net0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000
    link/ether 00:1b:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
    6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT
    link/ether ea:63:09:b7:1b:1b brd ff:ff:ff:ff:ff:ff
    But the rules were applied in this case!
    It solved the problem described originally.  I think I was hit by the race condition after upgrating to kernel 3.8.4-1. This was actually my first 3.8 kernel.
    With kernel 3.7, the rules were working even if the devices were named eth0, eth1, etc.
    Those names don't work anymore, at least in my case.
    Further I  created this file for static ips:
    # cat /etc/systemd/system/network.service
    [Unit]
    Description=Wired Static IP Connectivity
    Wants=network.target
    Before=network.target
    BindsTo=sys-subsystem-net-devices-net0.device
    After=sys-subsystem-net-devices-net0.device
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/sbin/ip link set dev net0 up
    ExecStart=/sbin/ip addr add 192.168.101.9/24 dev net0
    ExecStart=/sbin/ip link set dev net1 up
    ExecStart=/sbin/ip addr add 192.168.102.9/24 dev net1
    ExecStart=/sbin/ip link set dev net2 up
    ExecStart=/sbin/ip addr add 192.168.104.9/24 dev net2
    ExecStart=/sbin/ip link set dev net3 up
    ExecStart=/sbin/ip addr add 192.168.105.9/24 dev net3
    ExecStart=/sbin/ip route add default via 192.168.101.1
    ExecStop=/sbin/ip addr flush dev net0
    ExecStop=/sbin/ip link set dev net0 down
    ExecStop=/sbin/ip addr flush dev net1
    ExecStop=/sbin/ip link set dev net1 down
    ExecStop=/sbin/ip addr flush dev net2
    ExecStop=/sbin/ip link set dev net2 down
    ExecStop=/sbin/ip addr flush dev net3
    ExecStop=/sbin/ip link set dev net3 down
    [Install]
    WantedBy=multi-user.target
    I disabled netcfg and enabled network.service.
    Problem is solved now.

  • [SOLVED] udev rule launch graphical app

    How can I make a udev rule launch a graphical application, like, for instance, feh?
    I've tried creating a rule detects when a specific mass storage device is connected and executes a script (/root/.scripts/feh-camera.sh). The script exports DISPLAY and XAUTHORITY and everything seems to work.
    However when I restarted a black screen appeared right after Loading Modules (that appears after Starting udev events). Removing the udev rule solved the problem, so I must be doing something wrong.
    What's the right way of doing this?
    Thanks in advance.
    Last edited by Vieira (2010-05-06 22:38:49)

    Device was not connected at boot but I'll try what you suggested anyway. Thanks for your help.
    EDIT:
    It's solved. It turns out the underlying problem was that exporting DISPLAY breaks the udev environment. For future reference solved it with:
    45-foobar.rules
    ATTRS{product}=="DSLR-A330", ATTR{removable}=="1", ENV{REMOVE_CMD}="/bin/umount /media/camera", RUN+="/bin/mount <bla bla>", RUN+="/bin/su vieira -c '/etc/udev/rules.d/45-foobar.sh'"
    and the script, where the problem was, must not export anything, just set inline, i.e.
    #!/bin/sh
    HOME=/home/vieira DISPLAY=:0 /usr/bin/feh -r /mnt/camera
    Last edited by Vieira (2010-05-06 22:35:39)

  • Replace devfsd with udev from "testing"? [Y/n]

    pacman -Syu keeps asking me this:
    :: Replace devfsd with udev from "testing"? [Y/n] n
    but im already using udev. why?

    um, again please? you mean i should just say yes? but why is pacman -Syu insisting on installing udev from testing (i have testing enabled but not prioritized in pacman.conf). this arch install of mine started from 0.72 (gimmick) so it is using udev (from current) by default.

  • Unable to retrieve device ID with udev daemon

    I've recently switched from Ubuntu to Arch (did not regret it yet ). Currently, I'm trying to set up a backup. I have not done anything like that before so I cannot tell if my problem is Arch-specific but I guess, it's not.
    Since I want to backup to an external HDD with no permanent connection to my laptop, I want a backup script to be triggered each time when the HDD is plugged in. So I created an udev rule in /etc/udev/rules.d/10-local.rules (had to created that file since this directory was empty):
    ACTION=="add", SYSFS{idVendor}=="04e8", SYSFS{idProduct}=="60a6", RUN+="/usr/local/bin/makebak.sh"
    What this rule should do: Execute the script makebak.sh each time I plug in the device with vendor ID 04e8 and product ID 60a6.
    What this rule does: Nothing.
    The output of lsusb for the device in question is
    Bus 002 Device 014: ID 04e8:60a6 Samsung Electronics Co., Ltd
    I tested some things:
    1. It works if I try ACTION=="add", RUN+="/usr/local/bin/makebak.sh", but then the script is executed something like 10 times for each device I plug in. This rule is just too generic. But it proves that udev seems unable to find the device ID.
    2. I've found the command udevadm test that shows me some info about my device. However, the output is different if I execute it as root. I noticed that as root there are no informations concerning the vendor and the product id, but as regular user I can see them listed. I don't really know what this tool does but could the reason why my udev rule doesn't work be connected with that observation?
    Here is the output of udevadm test /sys/block/sdb as regular user:
    run_command: calling: test
    adm_test: version 180
    This program is for debugging only, it does not run any program,
    specified by a RUN key. It may show incorrect results, because
    some values may be different, or not available at a simulation run.
    builtin_kmod_init: load module index
    add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
    parse_file: reading '/lib/udev/rules.d/10-dm.rules' as rules file
    parse_file: reading '/etc/udev/rules.d/10-local.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/11-dm-lvm.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/13-dm-disk.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/40-gphoto.rules' as rules file
    add_rule: IMPORT found builtin 'usb_id --export %p', replacing /lib/udev/rules.d/40-gphoto.rules:11
    parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/53-sane.rules' as rules file
    (... much more rules parsing ...)
    udev_rules_new: rules use 216120 bytes tokens (18010 * 12 bytes), 28505 bytes buffer
    udev_rules_new: temporary index used 52000 bytes (2600 * 20 bytes)
    udev_device_new_from_syspath: device 0x155b6d0 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    udev_device_new_from_syspath: device 0x156ade0 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    udev_device_read_db: device 0x156ade0 filled with db file data
    udev_rules_apply_to_event: RUN '/usr/local/bin/makebak.sh' /etc/udev/rules.d/10-local.rules:1
    udev_device_new_from_syspath: device 0x155d490 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0'
    udev_device_new_from_syspath: device 0x155dc90 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0'
    udev_device_new_from_syspath: device 0x155e480 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16'
    udev_device_new_from_syspath: device 0x155ec60 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0'
    udev_device_new_from_syspath: device 0x155f420 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1'
    udev_device_new_from_syspath: device 0x155fc00 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2'
    udev_device_new_from_syspath: device 0x15603d0 has devpath '/devices/pci0000:00/0000:00:1d.7'
    udev_device_new_from_syspath: device 0x1560b70 has devpath '/devices/pci0000:00'
    udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:67
    udev_rules_apply_to_event: IMPORT 'ata_id --export /dev/sdb' /lib/udev/rules.d/60-persistent-storage.rules:37
    udev_event_spawn: starting 'ata_id --export /dev/sdb'
    spawn_wait: 'ata_id --export /dev/sdb' [2250] exit with return code 1
    udev_rules_apply_to_event: IMPORT builtin 'usb_id' /lib/udev/rules.d/60-persistent-storage.rules:39
    builtin_usb_id: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0: if_class 8 protocol 6
    udev_builtin_add_property: ID_VENDOR=Samsung
    udev_builtin_add_property: ID_VENDOR_ENC=Samsung\x20
    udev_builtin_add_property: ID_VENDOR_ID=04e8
    udev_builtin_add_property: ID_MODEL=S2_Portable_3
    udev_builtin_add_property: ID_MODEL_ENC=S2\x20Portable\x203\x20\x20\x20
    udev_builtin_add_property: ID_MODEL_ID=60a6
    udev_builtin_add_property: ID_REVISION=2AM1
    udev_builtin_add_property: ID_SERIAL=Samsung_S2_Portable_3_000000000000011E0A60-0:0
    udev_builtin_add_property: ID_SERIAL_SHORT=000000000000011E0A60
    udev_builtin_add_property: ID_TYPE=disk
    udev_builtin_add_property: ID_INSTANCE=0:0
    udev_builtin_add_property: ID_BUS=usb
    udev_builtin_add_property: ID_USB_INTERFACES=:080650:
    udev_builtin_add_property: ID_USB_INTERFACE_NUM=00
    udev_builtin_add_property: ID_USB_DRIVER=usb-storage
    udev_rules_apply_to_event: LINK 'disk/by-id/usb-Samsung_S2_Portable_3_000000000000011E0A60-0:0' /lib/udev/rules.d/60-persistent-storage.rules:44
    udev_rules_apply_to_event: IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:61
    udev_builtin_add_property: ID_PATH=pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
    udev_builtin_add_property: ID_PATH_TAG=pci-0000_00_1d_7-usb-0_1_1_0-scsi-0_0_0_0
    udev_rules_apply_to_event: LINK 'disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:62
    udev_rules_apply_to_event: IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
    error: /dev/sdb: Permission denied
    udev_rules_apply_to_event: IMPORT 'udisks-part-id /dev/sdb' /lib/udev/rules.d/80-udisks.rules:88
    udev_event_spawn: starting 'udisks-part-id /dev/sdb'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x1cc2680 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb''
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'libudev: udev_device_read_db: device 0x1cc2680 filled with db file data'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'using device_file=/dev/sdb syspath=/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb, offset=0 ao=0 and number=0 for /dev/sdb'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'Error opening /dev/sdb: Permission denied'
    spawn_wait: 'udisks-part-id /dev/sdb' [2251] exit with return code 0
    udev_rules_apply_to_event: IMPORT 'udisks-probe-ata-smart /dev/sdb' /lib/udev/rules.d/80-udisks.rules:112
    udev_event_spawn: starting 'udisks-probe-ata-smart /dev/sdb'
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'Failed to open disk /dev/sdb: Permission denied'
    spawn_wait: 'udisks-probe-ata-smart /dev/sdb' [2252] exit with return code 1
    udev_node_update_old_links: update old name, '/dev/disk/by-id/ata-SAMSUNG_HM100UZ_C5071E86AA22JN' no longer belonging to '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    link_find_prioritized: found 'b8:16' claiming '/run/udev/links/disk\x2fby-id\x2fata-SAMSUNG_HM100UZ_C5071E86AA22JN'
    link_update: no reference left, remove '/dev/disk/by-id/ata-SAMSUNG_HM100UZ_C5071E86AA22JN'
    udev_node_update_old_links: update old name, '/dev/disk/by-id/wwn-0x50000f00aaeb0022' no longer belonging to '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    link_find_prioritized: found 'b8:16' claiming '/run/udev/links/disk\x2fby-id\x2fwwn-0x50000f00aaeb0022'
    link_update: no reference left, remove '/dev/disk/by-id/wwn-0x50000f00aaeb0022'
    udev_node_add: handling device node '/dev/sdb', devnum=b8:16, mode=0660, uid=0, gid=6
    node_fixup: preserve permissions /dev/sdb, 060660, uid=0, gid=6
    node_symlink: preserve already existing symlink '/dev/block/8:16' to '../sdb'
    link_update: creating link '/dev/disk/by-id/usb-Samsung_S2_Portable_3_000000000000011E0A60-0:0' to '/dev/sdb'
    node_symlink: creating symlink '/dev/disk/by-id/usb-Samsung_S2_Portable_3_000000000000011E0A60-0:0' to '../../sdb'
    node_symlink: atomically replace '/dev/disk/by-id/usb-Samsung_S2_Portable_3_000000000000011E0A60-0:0'
    node_symlink: symlink '../../sdb' '/dev/disk/by-id/usb-Samsung_S2_Portable_3_000000000000011E0A60-0:0.udev-tmp' failed: Permission denied
    link_find_prioritized: found 'b8:16' claiming '/run/udev/links/disk\x2fby-path\x2fpci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0'
    link_update: creating link '/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0' to '/dev/sdb'
    node_symlink: preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0' to '../../sdb'
    udev_device_update_db: unable to create temporary db file '/run/udev/data/b8:16.tmp': Permission denied
    ACTION=add
    DEVLINKS=/dev/disk/by-id/usb-Samsung_S2_Portable_3_000000000000011E0A60-0:0 /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
    DEVNAME=/dev/sdb
    DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb
    DEVTYPE=disk
    ID_BUS=usb
    ID_INSTANCE=0:0
    ID_MODEL=S2_Portable_3
    ID_MODEL_ENC=S2\x20Portable\x203\x20\x20\x20
    ID_MODEL_ID=60a6
    ID_PATH=pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
    ID_PATH_TAG=pci-0000_00_1d_7-usb-0_1_1_0-scsi-0_0_0_0
    ID_REVISION=2AM1
    ID_SERIAL=Samsung_S2_Portable_3_000000000000011E0A60-0:0
    ID_SERIAL_SHORT=000000000000011E0A60
    ID_TYPE=disk
    ID_USB_DRIVER=usb-storage
    ID_USB_INTERFACES=:080650:
    ID_USB_INTERFACE_NUM=00
    ID_VENDOR=Samsung
    ID_VENDOR_ENC=Samsung\x20
    ID_VENDOR_ID=04e8
    MAJOR=8
    MINOR=16
    SUBSYSTEM=block
    UDEV_LOG=6
    UDISKS_PRESENTATION_NOPOLICY=0
    USEC_INITIALIZED=2063008397
    run: '/usr/local/bin/makebak.sh'
    builtin_kmod_exit: unload module index
    And executed as root:
    run_command: calling: test
    adm_test: version 180
    This program is for debugging only, it does not run any program,
    specified by a RUN key. It may show incorrect results, because
    some values may be different, or not available at a simulation run.
    builtin_kmod_init: load module index
    add_matching_files: unable to open '/run/udev/rules.d': No such file or directory
    parse_file: reading '/lib/udev/rules.d/10-dm.rules' as rules file
    parse_file: reading '/etc/udev/rules.d/10-local.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/11-dm-lvm.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/13-dm-disk.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/40-gphoto.rules' as rules file
    add_rule: IMPORT found builtin 'usb_id --export %p', replacing /lib/udev/rules.d/40-gphoto.rules:11
    parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
    parse_file: reading '/lib/udev/rules.d/53-sane.rules' as rules file
    (... much more rules parsing ...)
    udev_rules_new: rules use 216120 bytes tokens (18010 * 12 bytes), 28505 bytes buffer
    udev_rules_new: temporary index used 52000 bytes (2600 * 20 bytes)
    udev_device_new_from_syspath: device 0x21816d0 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    udev_device_new_from_syspath: device 0x2190de0 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    udev_device_read_db: device 0x2190de0 filled with db file data
    udev_rules_apply_to_event: RUN '/usr/local/bin/makebak.sh' /etc/udev/rules.d/10-local.rules:1
    udev_device_new_from_syspath: device 0x2183490 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0'
    udev_device_new_from_syspath: device 0x2183c90 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0'
    udev_device_new_from_syspath: device 0x2184480 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16'
    udev_device_new_from_syspath: device 0x2184c60 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0'
    udev_device_new_from_syspath: device 0x2185420 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1'
    udev_device_new_from_syspath: device 0x2185c00 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2'
    udev_device_new_from_syspath: device 0x21863d0 has devpath '/devices/pci0000:00/0000:00:1d.7'
    udev_device_new_from_syspath: device 0x2186b70 has devpath '/devices/pci0000:00'
    udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:67
    udev_rules_apply_to_event: IMPORT 'ata_id --export /dev/sdb' /lib/udev/rules.d/60-persistent-storage.rules:37
    udev_event_spawn: starting 'ata_id --export /dev/sdb'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_TYPE=disk'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_BUS=ata'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_MODEL=SAMSUNG_HM100UZ'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_MODEL_ENC=SAMSUNG\x20HM100UZ\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_REVISION=2AM10010'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_SERIAL=SAMSUNG_HM100UZ_C5071E86AA22JN'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_SERIAL_SHORT=C5071E86AA22JN'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_WRITE_CACHE=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_WRITE_CACHE_ENABLED=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_HPA=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_HPA_ENABLED=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_PM=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_PM_ENABLED=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_SECURITY=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_SECURITY_ENABLED=0'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=232'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=232'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_SMART=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_SMART_ENABLED=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_AAM=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_AAM_ENABLED=0'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_AAM_VENDOR_RECOMMENDED_VALUE=254'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_AAM_CURRENT_VALUE=0'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_PUIS=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_PUIS_ENABLED=0'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_APM=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_FEATURE_SET_APM_ENABLED=0'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_DOWNLOAD_MICROCODE=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_SATA=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_SATA_SIGNAL_RATE_GEN2=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_SATA_SIGNAL_RATE_GEN1=1'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_ATA_ROTATION_RATE_RPM=5400'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_WWN=0x50000f00aaeb0022'
    spawn_read: 'ata_id --export /dev/sdb'(out) 'ID_WWN_WITH_EXTENSION=0x50000f00aaeb0022'
    spawn_wait: 'ata_id --export /dev/sdb' [2273] exit with return code 0
    udev_rules_apply_to_event: LINK 'disk/by-id/ata-SAMSUNG_HM100UZ_C5071E86AA22JN' /lib/udev/rules.d/60-persistent-storage.rules:44
    udev_rules_apply_to_event: PROGRAM 'scsi_id --whitelisted --replace-whitespace -p0x80 -d /dev/sdb' /lib/udev/rules.d/60-persistent-storage.rules:52
    udev_event_spawn: starting 'scsi_id --whitelisted --replace-whitespace -p0x80 -d /dev/sdb'
    spawn_wait: 'scsi_id --whitelisted --replace-whitespace -p0x80 -d /dev/sdb' [2274] exit with return code 1
    udev_rules_apply_to_event: IMPORT builtin 'path_id' /lib/udev/rules.d/60-persistent-storage.rules:61
    udev_builtin_add_property: ID_PATH=pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
    udev_builtin_add_property: ID_PATH_TAG=pci-0000_00_1d_7-usb-0_1_1_0-scsi-0_0_0_0
    udev_rules_apply_to_event: LINK 'disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:62
    udev_rules_apply_to_event: IMPORT builtin 'blkid' /lib/udev/rules.d/60-persistent-storage.rules:76
    builtin_blkid: probe /dev/sdb raid offset=0
    udev_builtin_add_property: ID_PART_TABLE_TYPE=dos
    udev_rules_apply_to_event: LINK 'disk/by-id/wwn-0x50000f00aaeb0022' /lib/udev/rules.d/60-persistent-storage.rules:86
    udev_rules_apply_to_event: IMPORT 'udisks-part-id /dev/sdb' /lib/udev/rules.d/80-udisks.rules:88
    udev_event_spawn: starting 'udisks-part-id /dev/sdb'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x1af8680 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb''
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'libudev: udev_device_read_db: device 0x1af8680 filled with db file data'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'using device_file=/dev/sdb syspath=/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb, offset=0 ao=0 and number=0 for /dev/sdb'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'Entering MS-DOS parser (offset=0, size=1000204886016)'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'MSDOS_MAGIC found'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'looking at part 0 (offset 1048576, size 524288000000, type 0x07)'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'new part entry'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'looking at part 1 (offset 524289048576, size 475915091968, type 0x83)'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'new part entry'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'looking at part 2 (offset 0, size 0, type 0x00)'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'new part entry'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'looking at part 3 (offset 0, size 0, type 0x00)'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'new part entry'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'Exiting MS-DOS parser'
    spawn_read: 'udisks-part-id /dev/sdb'(err) 'MSDOS partition table detected'
    spawn_read: 'udisks-part-id /dev/sdb'(out) 'UDISKS_PARTITION_TABLE=1'
    spawn_read: 'udisks-part-id /dev/sdb'(out) 'UDISKS_PARTITION_TABLE_SCHEME=mbr'
    spawn_read: 'udisks-part-id /dev/sdb'(out) 'UDISKS_PARTITION_TABLE_COUNT=2'
    spawn_wait: 'udisks-part-id /dev/sdb' [2276] exit with return code 0
    udev_rules_apply_to_event: IMPORT 'udisks-probe-ata-smart /dev/sdb' /lib/udev/rules.d/80-udisks.rules:115
    udev_event_spawn: starting 'udisks-probe-ata-smart /dev/sdb'
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x25b2c90 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb''
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_read_db: device 0x25b2c90 filled with db file data'
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x25b5230 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0''
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x25b5720 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0''
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x25b5d40 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16''
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x25b6350 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0''
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(err) 'libudev: udev_device_new_from_syspath: device 0x25b6940 has devpath '/devices/pci0000:00/0000:00:1d.7/usb2/2-1''
    spawn_read: 'udisks-probe-ata-smart /dev/sdb'(out) 'UDISKS_ATA_SMART_IS_AVAILABLE=1'
    spawn_wait: 'udisks-probe-ata-smart /dev/sdb' [2278] exit with return code 0
    udev_node_add: handling device node '/dev/sdb', devnum=b8:16, mode=0660, uid=0, gid=6
    node_fixup: preserve permissions /dev/sdb, 060660, uid=0, gid=6
    node_symlink: preserve already existing symlink '/dev/block/8:16' to '../sdb'
    link_find_prioritized: found 'b8:16' claiming '/run/udev/links/disk\x2fby-id\x2fata-SAMSUNG_HM100UZ_C5071E86AA22JN'
    link_update: creating link '/dev/disk/by-id/ata-SAMSUNG_HM100UZ_C5071E86AA22JN' to '/dev/sdb'
    node_symlink: preserve already existing symlink '/dev/disk/by-id/ata-SAMSUNG_HM100UZ_C5071E86AA22JN' to '../../sdb'
    link_find_prioritized: found 'b8:16' claiming '/run/udev/links/disk\x2fby-id\x2fwwn-0x50000f00aaeb0022'
    link_update: creating link '/dev/disk/by-id/wwn-0x50000f00aaeb0022' to '/dev/sdb'
    node_symlink: preserve already existing symlink '/dev/disk/by-id/wwn-0x50000f00aaeb0022' to '../../sdb'
    link_find_prioritized: found 'b8:16' claiming '/run/udev/links/disk\x2fby-path\x2fpci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0'
    link_update: creating link '/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0' to '/dev/sdb'
    node_symlink: preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0' to '../../sdb'
    udev_device_update_db: created db file '/run/udev/data/b8:16' for '/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb'
    ACTION=add
    DEVLINKS=/dev/disk/by-id/ata-SAMSUNG_HM100UZ_C5071E86AA22JN /dev/disk/by-id/wwn-0x50000f00aaeb0022 /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
    DEVNAME=/dev/sdb
    DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host16/target16:0:0/16:0:0:0/block/sdb
    DEVTYPE=disk
    ID_ATA=1
    ID_ATA_DOWNLOAD_MICROCODE=1
    ID_ATA_FEATURE_SET_AAM=1
    ID_ATA_FEATURE_SET_AAM_CURRENT_VALUE=0
    ID_ATA_FEATURE_SET_AAM_ENABLED=0
    ID_ATA_FEATURE_SET_AAM_VENDOR_RECOMMENDED_VALUE=254
    ID_ATA_FEATURE_SET_APM=1
    ID_ATA_FEATURE_SET_APM_ENABLED=0
    ID_ATA_FEATURE_SET_HPA=1
    ID_ATA_FEATURE_SET_HPA_ENABLED=1
    ID_ATA_FEATURE_SET_PM=1
    ID_ATA_FEATURE_SET_PM_ENABLED=1
    ID_ATA_FEATURE_SET_PUIS=1
    ID_ATA_FEATURE_SET_PUIS_ENABLED=0
    ID_ATA_FEATURE_SET_SECURITY=1
    ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
    ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=232
    ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=232
    ID_ATA_FEATURE_SET_SMART=1
    ID_ATA_FEATURE_SET_SMART_ENABLED=1
    ID_ATA_ROTATION_RATE_RPM=5400
    ID_ATA_SATA=1
    ID_ATA_SATA_SIGNAL_RATE_GEN1=1
    ID_ATA_SATA_SIGNAL_RATE_GEN2=1
    ID_ATA_WRITE_CACHE=1
    ID_ATA_WRITE_CACHE_ENABLED=1
    ID_BUS=ata
    ID_MODEL=SAMSUNG_HM100UZ
    ID_MODEL_ENC=SAMSUNG\x20HM100UZ\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
    ID_PART_TABLE_TYPE=dos
    ID_PATH=pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
    ID_PATH_TAG=pci-0000_00_1d_7-usb-0_1_1_0-scsi-0_0_0_0
    ID_REVISION=2AM10010
    ID_SERIAL=SAMSUNG_HM100UZ_C5071E86AA22JN
    ID_SERIAL_SHORT=C5071E86AA22JN
    ID_TYPE=disk
    ID_WWN=0x50000f00aaeb0022
    ID_WWN_WITH_EXTENSION=0x50000f00aaeb0022
    MAJOR=8
    MINOR=16
    SUBSYSTEM=block
    UDEV_LOG=6
    UDISKS_ATA_SMART_IS_AVAILABLE=1
    UDISKS_PARTITION_TABLE=1
    UDISKS_PARTITION_TABLE_COUNT=2
    UDISKS_PARTITION_TABLE_SCHEME=mbr
    UDISKS_PRESENTATION_NOPOLICY=0
    USEC_INITIALIZED=2063008397
    run: '/usr/local/bin/makebak.sh'
    builtin_kmod_exit: unload module index
    Does anyone know what the problem could be (and the solution)?
    Thanks in advance!

    Sure, a loop that waits up to a certain number of seconds for you to mount the device is far more preferrable. Something like...
    #!/bin/bash
    # max time to wait
    timeout=60
    # label of device to wait for
    devlabel=blackhole
    # where to look for it
    devmount=/mnt/backup
    dev_mounted() {
    mountpoint -q "$devmount" &&
    [[ $(findmnt -runo LABEL "$devmount") = "$devlabel" ]]
    if ! dev_mounted; then
    printf "==> Waiting %s seconds for %s to be mounted on %s" "$devlabel" "$devmount"
    until dev_mounted; do
    sleep 1
    if (( --timeout == 0 )); then
    print "==> ERROR: device didn't show up after %s seconds!\n" "$timeout"
    exit 1
    fi
    done
    fi
    # do backup stuff here...

  • Configuring udev rules for Oracle 10g R2 Rac on OEL 5.5 U4 with Qnap

    I'm trying to setup a 10g RAC Cluster following the guide by Jeff Hunter on http://www.idevelopment.info/
    I have to admit, im no Linux admin, and have searched round the net for help with the following Issue.
    I'm trying to set my iSCSI targets to have persistent mappings using udev rules
    This is what I have done so far
    [root@racnode1 Server]# iscsiadm -m discovery -t sendtargets -p nas-priv | grep 192.168.2.196
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d
    192.168.2.196:3260,1 iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d
    -- Manually Log into iSCSI Targets
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d -p 192.168.2.196 -l
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d -p 192.168.2.196 -l
    -- Make iSCSI Targets Automatically Login
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    iscsiadm -m node -T iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d -p 192.168.2.196 --op update -n node.startup -v automatic
    -- Create Persistent Local SCSI Device Names
    - Identify Mappings
    [root@racnode1 ~]# (cd /dev/disk/by-path; ls -l qnap | awk '{FS=" "; print $9 " " $10 " " $11}')
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d-lun-0 -> ../../sdg
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d-lun-0 -> ../../sdf
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d-lun-0 -> ../../sdi
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d-lun-0 -> ../../sdd
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d-lun-0 -> ../../sdj
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d-lun-0 -> ../../sdc
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d-lun-0 -> ../../sdb
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d-lun-0 -> ../../sde
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d-lun-0 -> ../../sdh
    - Create Rules File
    cat >> /etc/udev/rules.d/55-openiscsi.rules <<EOF
    # /etc/udev/rules.d/55-openiscsi.rules
    KERNEL=="sd*", BUS=="scsi", PROGRAM="/etc/udev/scripts/iscsidev.sh %b",SYMLINK+="iscsi/%c/part%n"
    EOF
    - Create Shell Script
    mkdir -p /etc/udev/scripts
    vi /etc/udev/scripts/iscsidev.sh
    #!/bin/sh
    # FILE: /etc/udev/scripts/iscsidev.sh
    BUS=${1}
    HOST=${BUS%%:*}
    [ -e /sys/class/iscsi_host ] || exit 1
    file="/sys/class/iscsi_host/host${HOST}/device/session*/iscsi_session*/targetname"
    target_name=$(cat ${file})
    # This is not an open-scsi drive
    if [ -z "${target_name}" ]; then
    exit 1
    fi
    # Check if QNAP drive
    check_qnap_target_name=${target_name%%:*}
    if [ $check_qnap_target_name = "iqn.2004-04.com.qnap" ]; then
    target_name=`echo "${target_name%.*}"`
    fi
    echo "${target_name##*.}"
    chmod 755 /etc/udev/scripts/iscsidev.sh
    service iscsi stop
    service iscsi start
    [root@racnode1 ~]# ls /dev/iscsi/*
    ls: /dev/iscsi/*: No such file or directory
    1.) For some reason I cannot get the mappings to work correctly, I have rebooted the server and tried a number of different changes in the rules script. But for the life of me I cannot get it work.
    I noticed when I rebooted the server that it failed to execute the iscsidev. When I manually run the shell script with a parameter it produces output
    Can anyone help me to get this up and running?
    2.) My QNAP Nas doesnt seem to publish iSCSI targets to only one NIC. I think this is down to the firmware/feature not being available. When I discover targets I get the following
    [root@racnode1 ~]# (cd /dev/disk/by-path; ls -l *qnap* | awk '{FS=" "; print $9 " " $10 " " $11}')
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d-lun-0 -> ../../sdh
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d-lun-0 -> ../../sdm
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d-lun-0 -> ../../sdn
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d-lun-0 -> ../../sde
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d-lun-0 -> ../../sdr
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d-lun-0 -> ../../sdd
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d-lun-0 -> ../../sdb
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d-lun-0 -> ../../sdk
    ip-192.168.1.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d-lun-0 -> ../../sdp
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs1.c59a2d-lun-0 -> ../../sdi
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbcrs2.c59a2d-lun-0 -> ../../sdg
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata1.c59a2d-lun-0 -> ../../sdo
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbdata2.c59a2d-lun-0 -> ../../sdj
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra1.c59a2d-lun-0 -> ../../sds
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbfra2.c59a2d-lun-0 -> ../../sdf
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote1.c59a2d-lun-0 -> ../../sdc
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote2.c59a2d-lun-0 -> ../../sdl
    ip-192.168.2.196:3260-iscsi-iqn.2004-04.com.qnap:ts-459:iscsi.racdbvote3.c59a2d-lun-0 -> ../../sdq
    It shows the same targets on both NIC's, I only need them on the private ip 192.168.2.196
    Edited by: user1728822 on 07-May-2011 15:53
    Edited by: user1728822 on 07-May-2011 16:08

    Hi,
    I'm facing the same issue.. If your issue is fixed..could you please let me know?
    I'm trying to configure 11g RAC with OPenfiler and got stuck here.
    Regards,
    Kumar

  • HT1349 My ipod was submerged in water monentarily. I have dried it with a hair dryer and set it in the sun for 1 hour. It now will turn on and only bring up the connect to itunes screen. My keypad is locked and will not unlock by connecting to itunes.

    My ipod was submerged in water momentarily. I have dried it with a hair dryer and have placed it in the sun for 1 hour.  It will now turn on but will only bring up the connect to itunes screen. When I connect to itunes it is not recognized because it is locked with a security code. I have tried to reset the ipod using the instructions in the user manual to no avail. The accessibility screen is functional because I can turn on/off the voice over and the black and white screen. I think I am making progress but cannot unlock it. Does anyone have any other suggestions? Thanks

    Unfortunately, using a hair dryer or placing the iPhone in sunlight, at best, will dry the outside of the device. If water got inside, it may still be possible that this water has not dried and can short out the internal battery or cause other circuit damage ... and what you are seeing may be the results of that. I would recommend that you leave the iPhone turned off and take it to your local Apple Store. They may be able to help, but I wouldn't expect them to offer you a replacement. Sorry!

Maybe you are looking for