[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

UDEV-Rules



Hallo,
ich versuche mir hier eine UDEV-Rule für meine neue externe Festplatte zu
erstellen.

Ich habe versucht, anhand von
http://www.reactivated.net/writing_udev_rules.html
vorzugehen.

Folgende Regel habe ich in /etc/udev/rules.d/10-local-rules eingesetzt (eine
Zeile):

BUS=="scsi", KERNEL=="sd*1",  ATTRS{model}=="HD501LJ         ",  SYML
INK+="multimedia"

Er soll dann halt die Festplatte an /media/multimedia mounten, 
was aber nicht funktioniert.

Ich habe die HD aus- und wieder eingeschaltet.

Wie geht das? Ich bin alle Tips dankbar.

Ciao
  Peter Schütt

Anhang: Ausgabe von udevinfo von der Festplatte

 udevinfo -a -p $(udevinfo -q path -n /dev/sdd1)

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/block/sdd/sdd1':
    KERNEL=="sdd1"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{stat}=="    1648     2149    12045  2247646"
    ATTR{size}=="976768002"
    ATTR{start}=="63"
    ATTR{dev}=="8:49"

  looking at parent device '/block/sdd':
    KERNELS=="sdd"
    SUBSYSTEMS=="block"
    DRIVERS==""
    ATTRS{stat}=="     536     1197     2829     5716     9861     2184 
2247646  8145792        0    84744  8151504"
    ATTRS{size}=="976773168"
    ATTRS{removable}=="0"
    ATTRS{range}=="16"
    ATTRS{dev}=="8:48"

  looking at parent
device '/devices/pci0000:00/0000:00:03.2/usb3/3-3/3-3:1.0/host3/target3:0:0/3:0:0:0':
    KERNELS=="3:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{ioerr_cnt}=="0x0"
    ATTRS{iodone_cnt}=="0x28a4"
    ATTRS{iorequest_cnt}=="0x28a4"
    ATTRS{iocounterbits}=="32"
    ATTRS{timeout}=="30"
    ATTRS{state}=="running"
    ATTRS{rev}=="0-10"
    ATTRS{model}=="HD501LJ         "
    ATTRS{vendor}=="SAMSUNG "
    ATTRS{scsi_level}=="3"
    ATTRS{type}=="0"
    ATTRS{queue_type}=="none"
    ATTRS{queue_depth}=="1"
    ATTRS{device_blocked}=="0"
    ATTRS{max_sectors}=="240"

  looking at parent
device '/devices/pci0000:00/0000:00:03.2/usb3/3-3/3-3:1.0/host3/target3:0:0':
    KERNELS=="target3:0:0"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent
device '/devices/pci0000:00/0000:00:03.2/usb3/3-3/3-3:1.0/host3':
    KERNELS=="host3"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent
device '/devices/pci0000:00/0000:00:03.2/usb3/3-3/3-3:1.0':
    KERNELS=="3-3:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb-storage"
    ATTRS{interface}=="MSC Bulk-Only Transfer"
    ATTRS{modalias}=="usb:v152Dp2338d0100dc00dsc00dp00ic08isc06ip50"
    ATTRS{bInterfaceProtocol}=="50"
    ATTRS{bInterfaceSubClass}=="06"
    ATTRS{bInterfaceClass}=="08"
    ATTRS{bNumEndpoints}=="02"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceNumber}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:03.2/usb3/3-3':
    KERNELS=="3-3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}=="USB Mass Storage"
    ATTRS{serial}=="307541503144"
    ATTRS{product}=="USB to ATA/ATAPI Bridge"
    ATTRS{manufacturer}=="JMicron"
    ATTRS{maxchild}=="0"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="5"
    ATTRS{speed}=="480"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bcdDevice}=="0100"
    ATTRS{idProduct}=="2338"
    ATTRS{idVendor}=="152d"
    ATTRS{bMaxPower}=="  2mA"
    ATTRS{bmAttributes}=="c0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"

  looking at parent device '/devices/pci0000:00/0000:00:03.2/usb3':
    KERNELS=="usb3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{serial}=="0000:00:03.2"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{manufacturer}=="Linux 2.6.18-4-k7 ehci_hcd"
    ATTRS{maxchild}=="6"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="1"
    ATTRS{speed}=="480"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bcdDevice}=="0206"
    ATTRS{idProduct}=="0000"
    ATTRS{idVendor}=="0000"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"

  looking at parent device '/devices/pci0000:00/0000:00:03.2':
    KERNELS=="0000:00:03.2"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci_hcd"
    ATTRS{broken_parity_status}=="0"
    ATTRS{modalias}=="pci:v00001039d00007002sv00001849sd00007001bc0Csc03i20"
    ATTRS{local_cpus}=="ff"
    ATTRS{irq}=="193"
    ATTRS{class}=="0x0c0320"
    ATTRS{subsystem_device}=="0x7001"
    ATTRS{subsystem_vendor}=="0x1849"
    ATTRS{device}=="0x7002"
    ATTRS{vendor}=="0x1039"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""


-- 
www.pstt.de

Die E-Mail-Adresse funktioniert, kann aber u.U. in Zukunft mal abgeschaltet
werden. Ohne "_remove_this_" wird sie auch in Zukunft noch funktionieren.



Reply to: