Posts by pille2011


    seahawk1986

    Vielen Herzlichen Dank,es funktioniert und richtig schnell,ca 100MB/s


    Also in die fstab folgendes eintragen


    UUID=459608c8-3d9e-42bf-82a8-4f3fa0df4bbb /media/Media_Kiste ext2 noauto 0 0


    und in die /etc/udev/rules.d mit "touch" eine Datei Namens 80-mount.rules erstellen!
    Dort folgendes eintragen


    ACTION=="add", SUBSYSTEM=="block", ATTRS{model}=="HzW RAID5 ", RUN+="/bin/mount /media/Media_Kiste"


    Und sich freuen!!!Nochmals Vielen Dank





    Zu früh gefreut,nach einem neustert dann doch nicht mehr

    Sorry


    frank@stube:~$ sudo blkid
    /dev/sda1: UUID="86fc9769-8372-4d1b-a620-c8f6da5959e9" TYPE="ext4"
    /dev/sda2: UUID="f8184b80-8be2-4bc4-aef2-6eabaf94a4a7" TYPE="swap"
    /dev/sdb1: UUID="97cddca6-a83e-40c6-869f-b39a969ca203" TYPE="ext4"
    /dev/sdc1: LABEL="Media_Kiste" UUID="459608c8-3d9e-42bf-82a8-4f3fa0df4bbb" TYPE="ext2"

    frank@stube:~$ udevadm info --query=all --attribute-walk --name=/dev/sdc1


    Udevadm info 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 '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3:0:0:0/block/sdc/sdc1':
    KERNEL=="sdc1"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{partition}=="1"
    ATTR{start}=="2048"
    ATTR{size}=="11720781824"
    ATTR{ro}=="0"
    ATTR{alignment_offset}=="0"
    ATTR{discard_alignment}=="0"
    ATTR{stat}==" 162 0 1296 88 0 0 0 0 0 88 88"
    ATTR{inflight}==" 0 0"


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3:0:0:0/block/sdc':
    KERNELS=="sdc"
    SUBSYSTEMS=="block"
    DRIVERS==""
    ATTRS{range}=="16"
    ATTRS{ext_range}=="256"
    ATTRS{removable}=="0"
    ATTRS{ro}=="0"
    ATTRS{size}=="11720785920"
    ATTRS{alignment_offset}=="0"
    ATTRS{discard_alignment}=="0"
    ATTRS{capability}=="50"
    ATTRS{stat}==" 265 3 2144 188 0 0 0 0 0 188 188"
    ATTRS{inflight}==" 0 0"
    ATTRS{events}==""
    ATTRS{events_async}==""
    ATTRS{events_poll_msecs}=="-1"


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3:0:0:0':
    KERNELS=="3:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="0"
    ATTRS{scsi_level}=="6"
    ATTRS{vendor}=="ATA "
    ATTRS{model}=="HzW RAID5 "
    ATTRS{rev}=="0958"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{iocounterbits}=="32"
    ATTRS{iorequest_cnt}=="0x140"
    ATTRS{iodone_cnt}=="0x13f"
    ATTRS{ioerr_cnt}=="0x8"
    ATTRS{evt_media_change}=="0"
    ATTRS{dh_state}=="detached"
    ATTRS{queue_depth}=="1"
    ATTRS{queue_ramp_up_period}=="120000"
    ATTRS{queue_type}=="none"


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0':
    KERNELS=="target3:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3':
    KERNELS=="host3"
    SUBSYSTEMS=="scsi"
    DRIVERS==""


    looking at parent device '/devices/pci0000:00/0000:00:0b.0':
    KERNELS=="0000:00:0b.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="ahci"
    ATTRS{vendor}=="0x10de"
    ATTRS{device}=="0x0ab8"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{subsystem_device}=="0x83e2"
    ATTRS{class}=="0x010601"
    ATTRS{irq}=="40"
    ATTRS{local_cpus}=="00000000,00000000,00000000,00000000,00000000,00000000,00000000,0000000f"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{numa_node}=="-1"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""


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

    frank@stube:~$ udevadm info --query=all --attribute-walk --name=/dev/disk/by-uuid/459608c8-3d9e-42bf-82a8-4f3fa0df4bbb


    Udevadm info 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 '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3:0:0:0/block/sdc/sdc1':
    KERNEL=="sdc1"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{partition}=="1"
    ATTR{start}=="2048"
    ATTR{size}=="11720781824"
    ATTR{ro}=="0"
    ATTR{alignment_offset}=="0"
    ATTR{discard_alignment}=="0"
    ATTR{stat}==" 82 0 656 84 0 0 0 0 0 84 84"
    ATTR{inflight}==" 0 0"


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3:0:0:0/block/sdc':
    KERNELS=="sdc"
    SUBSYSTEMS=="block"
    DRIVERS==""
    ATTRS{range}=="16"
    ATTRS{ext_range}=="256"
    ATTRS{removable}=="0"
    ATTRS{ro}=="0"
    ATTRS{size}=="11720785920"
    ATTRS{alignment_offset}=="0"
    ATTRS{discard_alignment}=="0"
    ATTRS{capability}=="50"
    ATTRS{stat}==" 185 3 1504 184 0 0 0 0 0 184 184"
    ATTRS{inflight}==" 0 0"
    ATTRS{events}==""
    ATTRS{events_async}==""
    ATTRS{events_poll_msecs}=="-1"


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3:0:0:0':
    KERNELS=="3:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="0"
    ATTRS{scsi_level}=="6"
    ATTRS{vendor}=="ATA "
    ATTRS{model}=="HzW RAID5 "
    ATTRS{rev}=="0958"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{iocounterbits}=="32"
    ATTRS{iorequest_cnt}=="0xef"
    ATTRS{iodone_cnt}=="0xee"
    ATTRS{ioerr_cnt}=="0x8"
    ATTRS{evt_media_change}=="0"
    ATTRS{dh_state}=="detached"
    ATTRS{queue_depth}=="1"
    ATTRS{queue_ramp_up_period}=="120000"
    ATTRS{queue_type}=="none"


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3/target3:0:0':
    KERNELS=="target3:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""


    looking at parent device '/devices/pci0000:00/0000:00:0b.0/host3':
    KERNELS=="host3"
    SUBSYSTEMS=="scsi"
    DRIVERS==""


    looking at parent device '/devices/pci0000:00/0000:00:0b.0':
    KERNELS=="0000:00:0b.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="ahci"
    ATTRS{vendor}=="0x10de"
    ATTRS{device}=="0x0ab8"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{subsystem_device}=="0x83e2"
    ATTRS{class}=="0x010601"
    ATTRS{irq}=="40"
    ATTRS{local_cpus}=="00000000,00000000,00000000,00000000,00000000,00000000,00000000,0000000f"
    ATTRS{local_cpulist}=="0-3"
    ATTRS{numa_node}=="-1"
    ATTRS{dma_mask_bits}=="64"
    ATTRS{consistent_dma_mask_bits}=="64"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""


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

    frank@stube:~$ sudo udevadm monitor
    [sudo] password for frank:
    monitor will print the received events for:
    UDEV - the event which udev sends out after rule processing
    KERNEL - the kernel uevent


    KERNEL[116.262204] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0 ( scsi)
    KERNEL[116.262364] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0 (scsi)
    KERNEL[116.262436] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/scsi_disk/3:0:0:0 (scsi_disk)
    KERNEL[116.262499] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/scsi_device/3:0:0:0 (scsi_device)
    UDEV [116.263605] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0 ( scsi)
    KERNEL[116.263744] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/scsi_generic/sg3 (scsi_generic)
    KERNEL[116.264576] add /devices/virtual/bdi/8:32 (bdi)
    KERNEL[116.266118] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/bsg/3:0:0:0 (bsg)
    UDEV [116.266261] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0 (scsi)
    UDEV [116.267088] add /devices/virtual/bdi/8:32 (bdi)
    UDEV [116.270517] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/scsi_disk/3:0:0:0 (scsi_disk)
    UDEV [116.270630] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/scsi_device/3:0:0:0 (scsi_device)
    UDEV [116.271859] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/scsi_generic/sg3 (scsi_generic)
    UDEV [116.272100] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/bsg/3:0:0:0 (bsg)
    KERNEL[116.343208] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/block/sdc (block)
    KERNEL[116.343325] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/block/sdc/sdc1 (block)
    UDEV [116.492521] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/block/sdc (block)
    UDEV [116.576588] add /devices/pci0000:00/0000:00:0b.0/host3/target3:0:0/3 :0:0:0/block/sdc/sdc1 (block)



    Hoffe das war so richtig


    Da fehlt ein schließendes Leerzeichen für den run-Befehl. Außerdem glaube ich nicht, dass "mount -a" für ein Gerät mit der Option noauto greift.
    Dann ist noch die Frage, ob überhaupt schon ein udev-Event für das eSata-Gerät generiert wird, wenn du es Ansteckst/Einschaltest - schau z.B. mal mit "udevadm monitor" was da genau passiert.


    Lass dir auch mal die Udev-Attribute des Laufwerks anzeigen, da du ja eigentlich nur auf ein bestimmtes Gerät matchen willst, kann man die Regel durchaus enger fassen (und statt dem "mount -a" kann man dann auch genau auf den Mountpoint abzielen, z.B. "mount media/Media_Kiste"):

    Code
    udevadm info --query=all --attribute-walk --name=/dev/disk/by-uuid/459608c8-3d9e-42bf-82a8-4f3fa0df4bbb


    Prinzipiell legt man als Anwender die eigenen udev-Regeln unter /etc/udev/rules.d/ ab, /lib/udev/rules.d sollte dem Paketmanagement vorbehalten bleiben.


    Sorry,das ist mir alles zu hoch!!!
    Da bleib ich eben bei 10MB/s mit USB oder es gibt mir einer eine fertige Lösung

    Hab nun folgendes in die fstab eingetragen


    UUID=459608c8-3d9e-42bf-82a8-4f3fa0df4bbb /media/Media_Kiste ext2 noauto 0 0


    Hab dann noch in die /lib/udev/rules.d eine datei erstellt


    80-mount.rules


    und folgendes eingetragen


    SUBSYSTEM=="block", run+="/bin/mount -a



    Automatisches mounten funzt aber immer noch nicht


    Was mache ich nur falsch???