easyVDR Kopie des easyVDR-Forums zum Nachschlagen
Automatisches mounten von USB-Platten

easyVDR - >VARforumsname - >Automatisches mounten von USB-Platten

KlausiHH  16.Jul.2010 14:18:38
Hallo Zusammen,

also erst mal finde ich dieses automatische mounten nach /media/usb/ echt klasse.
Gestern habe ich endlich mal alle meine drei USB-Platten an den VDR gehängt.

Ein kleine Umgereimtheit fiel mir aber gerade nach einem Neustart auf:
Die Reihenfolge zweier der Platten, ist plötzlich eine andere, als vorher.

Zwei der Platten sind in einem Gehäuse und nur über ein Kabel angeschlossen.
Ich vermute, da ist die Reihenfolge der beiden beim mounten dann eher zufällig.
Nur wo genau liegt der Zufall? Beim mounten nach /mnt/usb1 oder 2? Oder
könnte es gar schon zufällig sein, welche Platte /dev/sdb1 bzw. /dev/sdc1 ist?

Letzteres wäre ja ganz blöd. Dann könnte ich dem ja nicht mal mit einem
festen mounten fstab entgegensteuern, oder?

Allerdings greife ich ja in der Regel über /media/usb zu. Darin sind die "Namen"
der Datenträger als Symlinks nach /mnt/usb. Ich vermute mal, die werden
nicht gelöscht beim Runterfahren bzw. Neustart. Wenn ich das aber irgendwo
einstellen könnte, würde ich da ja immer die richtige Bezeichnung, passend
zur Platte sehen, richtig? Wie ginge das ggf?

Danke und Gruß
JPM
Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.
Captain_Beefheart  16.Jul.2010 14:36:11
hallo Klaus

Wie ginge das ggf?

so...  ;)
http://www.easyvdr-forum.de/forum/index.php/topic,8124.msg64405.html#msg64405

musste/kannste natürlich auf Deine Gegebenheiten anpassen
 
  gruß
    C.B.
pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
KlausiHH  16.Jul.2010 14:56:36
Ui, das ging ja schnell und sieht nach einer prima Lösung aus.

Super, danke.  :)

Jetzt muss ich nur noch rausfinden, wie das mit NTFS-Platten richtig geht.
Steht hier aber auch irgendwo, IIRC.  ;)
Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.
Captain_Beefheart  16.Jul.2010 15:45:36
hi KlausiHH

schau mal hier

http://www.easyvdr-forum.de/forum/index.php/topic,6513.msg50079.html#msg50079
... vlt. hilft das ja

falls Du das so hinbekommen solltest, könntest Du mir bitte Rückmeldung geben
-- ich würde es das dann ins Wiki für die nächste Version mit aufnehmen

  ich selber habe nix M$ (also auch nix ntfs) mehr zu zu Hause
    ( naja fast nix -- a Schoppen "wine" is schon noch... )

  Gruß
      C.B.
pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
KlausiHH  16.Jul.2010 16:09:33
[quote='Captain_Beefheart link' dateline='1279287936']
falls Du das so hinbekommen solltest, könntest Du mir bitte Rückmeldung geben

Erfolgsmeldung für eine Platte. Also ich bin grad nicht zuhause, hab's also nur per
reboot gesehen, dass sie wie gewünscht eingebunden wird.

/etc/udev/rules.d/50-videos-3.rules:
BUS=="usb", KERNEL=="sd?1", SYSFS{serial}=="00101016500000000", SYMLINK+="videos3", RUN="/bin/mount /media/usb/videos3"

/etc/fstab:
# externe usb-platten
/dev/videos3 /media/usb/videos3 ntfs-3g users,atime,noauto,rw,nodev,exec,nosuid,locale=de_DE.utf8 0 0

Warum nur eine? Nun, bei dieser iSerial-Nummer häng ich fest. Wie ich eingangs schrieb sind
ja zwei Platten in einem Gehäuse, nur mit einem Kabel angeschlossen. Per lsusb finde ich
aber nur genau diesen einen USB-Port. Und nun ...?  :-\


ich selber habe nix M$ (also auch nix ntfs) mehr zu zu Hause
    ( naja fast nix -- a Schoppen "wine" is schon noch... )

löl  ;D


Gruß
KlausiHH

Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.
Captain_Beefheart  16.Jul.2010 16:15:23
Per lsusb finde ich
aber nur genau diesen einen USB-Port.

echt?!
poste doch mal lsusb -v
pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
KlausiHH  16.Jul.2010 16:17:09
Gerne, hier:

Bus 005 Device 001: ID 1d6b:0001 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.10
  bDeviceClass            9 Hub
  bDeviceSubClass        0 Unused
  bDeviceProtocol        0 Full speed hub
  bMaxPacketSize0        64
  idVendor          0x1d6b
  idProduct          0x0001
  bcdDevice            2.06
  iManufacturer          3 Linux 2.6.28.9 uhci_hcd
  iProduct                2 UHCI Host Controller
  iSerial                1 0000:00:1d.3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          25
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          1
      bInterfaceClass        9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed hub
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0002  1x 2 bytes
        bInterval            255
Hub Descriptor:
  bLength              9
  bDescriptorType      41
  nNbrPorts            2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
  Port 1: 0000.0100 power
  Port 2: 0000.0100 power
Device Status:    0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 004 Device 001: ID 1d6b:0001 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.10
  bDeviceClass            9 Hub
  bDeviceSubClass        0 Unused
  bDeviceProtocol        0 Full speed hub
  bMaxPacketSize0        64
  idVendor          0x1d6b
  idProduct          0x0001
  bcdDevice            2.06
  iManufacturer          3 Linux 2.6.28.9 uhci_hcd
  iProduct                2 UHCI Host Controller
  iSerial                1 0000:00:1d.2
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          25
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          1
      bInterfaceClass        9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed hub
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0002  1x 2 bytes
        bInterval            255
Hub Descriptor:
  bLength              9
  bDescriptorType      41
  nNbrPorts            2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
  Port 1: 0000.0100 power
  Port 2: 0000.0100 power
Device Status:    0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 003 Device 001: ID 1d6b:0001 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.10
  bDeviceClass            9 Hub
  bDeviceSubClass        0 Unused
  bDeviceProtocol        0 Full speed hub
  bMaxPacketSize0        64
  idVendor          0x1d6b
  idProduct          0x0001
  bcdDevice            2.06
  iManufacturer          3 Linux 2.6.28.9 uhci_hcd
  iProduct                2 UHCI Host Controller
  iSerial                1 0000:00:1d.1
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          25
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          1
      bInterfaceClass        9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed hub
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0002  1x 2 bytes
        bInterval            255
Hub Descriptor:
  bLength              9
  bDescriptorType      41
  nNbrPorts            2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
  Port 1: 0000.0100 power
  Port 2: 0000.0100 power
Device Status:    0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 002 Device 001: ID 1d6b:0001 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              1.10
  bDeviceClass            9 Hub
  bDeviceSubClass        0 Unused
  bDeviceProtocol        0 Full speed hub
  bMaxPacketSize0        64
  idVendor          0x1d6b
  idProduct          0x0001
  bcdDevice            2.06
  iManufacturer          3 Linux 2.6.28.9 uhci_hcd
  iProduct                2 UHCI Host Controller
  iSerial                1 0000:00:1d.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          25
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          1
      bInterfaceClass        9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed hub
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0002  1x 2 bytes
        bInterval            255
Hub Descriptor:
  bLength              9
  bDescriptorType      41
  nNbrPorts            2
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
  Port 1: 0000.0100 power
  Port 2: 0000.0100 power
Device Status:    0x0003
  Self Powered
  Remote Wakeup Enabled

Bus 001 Device 003: ID 152d:2336 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  idVendor          0x152d
  idProduct          0x2336
  bcdDevice            1.00
  iManufacturer          1 JMicron
  iProduct                2 JM20336 SATA, USB Combo
  iSerial                5 13D523559888
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          32
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          4 USB Mass Storage
    bmAttributes        0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass        8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol    80 Bulk (Zip)
      iInterface              6 Bulk-In, Bulk-Out Interface
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType        6
  bcdUSB              2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:    0x0001
  Self Powered

Bus 001 Device 002: ID 13fd:1650 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  idVendor          0x13fd
  idProduct          0x1650
  bcdDevice            4.48
  iManufacturer          1 Initio 
  iProduct                2 HD154UI       
  iSerial                3 00101016500000000
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          32
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass        8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol    80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0200  1x 512 bytes
        bInterval              0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType        6
  bcdUSB              2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass        0
  bDeviceProtocol        0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:    0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 
Device Descriptor:
  bLength                18
  bDescriptorType        1
  bcdUSB              2.00
  bDeviceClass            9 Hub
  bDeviceSubClass        0 Unused
  bDeviceProtocol        0 Full speed hub
  bMaxPacketSize0        64
  idVendor          0x1d6b
  idProduct          0x0002
  bcdDevice            2.06
  iManufacturer          3 Linux 2.6.28.9 ehci_hcd
  iProduct                2 EHCI Host Controller
  iSerial                1 0000:00:1d.7
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                9
    bDescriptorType        2
    wTotalLength          25
    bNumInterfaces          1
    bConfigurationValue    1
    iConfiguration          0
    bmAttributes        0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          1
      bInterfaceClass        9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed hub
      iInterface              0
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength              11
  bDescriptorType      41
  nNbrPorts            8
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood      10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00 0x00
  PortPwrCtrlMask    0xff 0xff
Hub Port Status:
  Port 1: 0000.0503 highspeed power enable connect
  Port 2: 0000.0503 highspeed power enable connect
  Port 3: 0000.0100 power
  Port 4: 0000.0100 power
  Port 5: 0000.0100 power
  Port 6: 0000.0100 power
  Port 7: 0000.0100 power
  Port 8: 0000.0100 power
Device Status:    0x0003
  Self Powered
  Remote Wakeup Enabled

  iManufacturer          1 JMicron
  iProduct                2 JM20336 SATA, USB Combo
  iSerial                5 13D523559888

Das dürfte das Doppelgehäuse sein. Aber ich finde keine Verweise auf
die zwei Samsung-Platten.

Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.
Captain_Beefheart  16.Jul.2010 16:42:30
hmmm

liegt wohl daran, daß zwei (sata?)-Platten an einem SATA2USB-Adapter hängen
dann is wohl die iserial die des Adapters...

==>> da weiss ich auch nich weiter...
    also: Wie unterscheidet man 2 Platten an einer Adapter?

C.B.
pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
Captain_Beefheart  16.Jul.2010 16:51:09
Hi Klaus
saachu mal  hier
http://wiki.ubuntuusers.de/UDEV
und dort unter
Daten über beliebige Geräte auslesen mit udevadm

also tail usw.
platte(n) dranstöpseln

mal sehn was da passiert

  C.B.
pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
Captain_Beefheart  16.Jul.2010 17:10:58


ooooder gibt den 2 Platten doch mal "richtige" Namen  (label)

  also "heinz" oder "guenther"  ;)

uns schau ob dann /dev/heinz  und /dev/guenther auftauchen
  ( oder unter /dev/disk/by-label/  ...musste mal suchen )
dann kann man das ja zur Indentifikation benutzen

  C.B.

pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
Captain_Beefheart  16.Jul.2010 17:34:51
We suggest that in places like the Fourth World where things are really tough that you
keep the record player going by rubbing two sticks together. And if all else fails, throw the record away... build your own green rosetta...[color=rgb(0, 0, 0)]
http://www.lyricsfreak.com/f/frank+zappa/a+little+green+rosetta_20056729.html

oder
http://wiki.archlinux.org/index.php/Udev  ;)
pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
Captain_Beefheart  16.Jul.2010 20:40:02
so..


bei mir mal nachgesehen

pille:/dev/disk/by-label# ls
HP_v165w  iomega
pille:/dev/disk/by-label#

dann mounte doch mal "Heinz" nach

  C.B.

Nachtrag

pille:~# ls
mounttest  Senderkennungen.txt  setup.sh  tvm2vdr_channelmap.conf  tvm2vdr_map_conf.sh
pille:~# mount /dev/disk/by-label/HP_v165w mounttest/
pille:~# cd mounttest/                                                                                                         
pille:~/mounttest# ls -A
.epgistore  lost+found
pille:~/mounttest#


und
pille:/dev/disk/by-label# df
Dateisystem          1K-Blöcke  Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda1              7698874  4168205  3139488  58% /
tmpfs                  563200    412532    150668  74% /opt/HDSleep/.HDSRamDisk
tmpfs                    10240        72    10168  1% /dev
/dev/sda2            299883277    448387 284197640  1% /media
tmpfs                    5120        0      5120  0% /lib/init/rw
/dev/sdb1              3851656    69748  3586252  2% /mnt/HP-Stick
tmpfs                  262144      8860    253284  4% /ramdisk
/dev/sdc1            240362656  63064056 165088800  28% /mnt/usb1
/dev/sdb1              3851656    69748  3586252  2% /root/mounttest
pille:/dev/disk/by-label#

pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
KlausiHH  17.Jul.2010 01:35:12
Juhu  :D

Deine Tipps und Links führten mich schließlich nach
http://www.reactivated.net/writing_udev_rules.html

Damit konnte ich dann die passenden Bezeichnungen
für die udev-Regeln finden.

BUS=="usb", KERNEL=="sd?1", SUBSYSTEMS=="scsi", ATTRS{model}=="HD103UI", SYMLINK+="videos1", RUN="/bin/mount /media/usb/videos1"
BUS=="usb", KERNEL=="sd?1", SUBSYSTEMS=="scsi", ATTRS{model}=="HD103UJ", SYMLINK+="videos2", RUN="/bin/mount /media/usb/videos2"
BUS=="usb", KERNEL=="sd?1", SYSFS{serial}=="00101016500000000", SYMLINK+="videos3", RUN="/bin/mount /media/usb/videos3"

Vielen Dank noch mal.

Gruß
KlausiHH


Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.
Captain_Beefheart  17.Jul.2010 01:56:06
Erstmal herzlichen Glückwunsch zum "Freischwimmer"  ;D ;D ;D ;D


HD103UI
HD103UJ

man ey ...  böse Falle ... aber irgendeine Unterscheidung musste es ja geben

SUBSYSTEMS=="scsi", ATTRS{model}=="HD103UI"

... sowas wie scsii-subsystem hatte ich schon fast befürchtet
  könntest Du bitte mal erzählen, wie Du an die Bezeichnungen gekommen bist
 
also nett wäre
"mach dies /gib dies ein" 
"dann notiere folgenden Daten"
  usw.
würde das dann gerne ins WiKI übernehmen
  ....wir leben davon.... :D

ach ja k+  (als Vorschusslorbeeren)
C.B.

P.S.
.... ich habe mir damals mit der iserial auchn Wolf gesucht


pille: (vdr1)
Anubis TYPHOON DVB-T Light;Terratec Cinergy1200; GA-M56S-S3; AMD X2 3800(35W); 2x1GB, PCIe 9500GT/LE-40M86BD; Hitachi 320GB; IDE DVD; OCZ 32GB SSD; Trust C-5250/opt./Denon-AV; lirc/DVICO/MD81035; USB-HD 256GB & 1TB ; GraphTFT/LCD 15"; easyVDR 1.0
chekov: (vdr2)
Esprimo5600/1,5GB/AMD Athlon64 X2 3800+; Club-3D GS8400 512MB/G98/19"CRT;Nova T-500; OCZ 32GB SSD, IDE DVD-Rom;  lirc/DVICO/MD82467; easyvdr1.0
scotty: (work - no vdr)
GA-M52L-S3; AMD X4; 4x1GB, NVidia 9800GT/1GByte; Hitachi 320GB;60GByte SSD; 80GByte Hd for wine; SATA DVD; Trust C-5250;Kubuntu 12.10; Netz: Intel GBit PCIe cardt + ...
KlausiHH  19.Jul.2010 10:41:45
Moin moin,

klar, gerne doch. Also die recht ausführliche Beschreibung dieses udev-Systems fand ich wie gesagt hier:
[url=http://www.reactivated.net/writing_udev_rules.html]http://www.reactivated.net/writing_udev_rules.html

Dort ist u.a. beschrieben, wie das "sysfs" aufgebaut ist. Unter /sys sind alle Geräte hierarchisch
mit ihren Eigenschafen angeordnet. Zum Beispiel eine externe Festplatte sdc. Das ist ein Blockdevice
und man findet sie somit unter /sys/block/sdc.

jpmvdr:/sys/block/sdc# ls -al
insgesamt 0
drwxr-xr-x  7 root root    0 2010-07-19 10:10 .
drwxr-xr-x 280 root root    0 2010-07-19 10:10 ..
lrwxrwxrwx  1 root root    0 2010-07-19 10:10 bdi -> ../../class/bdi/8:32
-r--r--r--  1 root root 4096 2010-07-19 10:10 capability
-r--r--r--  1 root root 4096 2010-07-19 10:10 dev
lrwxrwxrwx  1 root root    0 2010-07-19 10:10 device -> ../../devices/pci0000:00/0000:00:1e.0/0000:03:07.2/usb2/2-5/2-5:1.0/host1/target1:0:0/1:0:0:1
-r--r--r--  1 root root 4096 2010-07-19 10:10 ext_range
drwxr-xr-x  2 root root    0 2010-07-19 10:11 holders
drwxr-xr-x  2 root root    0 2010-07-19 10:11 power
drwxr-xr-x  3 root root    0 2010-07-19 10:11 queue
-r--r--r--  1 root root 4096 2010-07-19 10:10 range
-r--r--r--  1 root root 4096 2010-07-19 10:10 removable
-r--r--r--  1 root root 4096 2010-07-19 10:10 ro
drwxr-xr-x  4 root root    0 2010-07-19 10:11 sdc1
-r--r--r--  1 root root 4096 2010-07-19 10:10 size
drwxr-xr-x  2 root root    0 2010-07-19 10:11 slaves
-r--r--r--  1 root root 4096 2010-07-19 10:10 stat
lrwxrwxrwx  1 root root    0 2010-07-19 10:10 subsystem -> ../../block
-rw-r--r--  1 root root 4096 2010-07-19 10:10 uevent

Hier läßt sich schon gut die hierarschische Struktur erkennen. Zum Beispiel hat die Platte eine
Partition sdc1 und dafür gibt es ein Unterverzeichnis. Die Platte hängt an einem USB-Port, also
findet sich unter "device" ein Link zurück nach /sys/devices/... Die Platte hat eine Größe, wofür
es eine Datei "size" gibt. Ein cat /sys/block/sdc/size würde einfach die Größe in Bytes auswerfen.

Sich manuell durch die ganzen Verzeichnissen und Dateien zu hangeln, ist natürlich viel zu
umständlich. Dafür gibt es das Programm udevinfo. Ein Beispiel:

jpmvdr:/sys/block/sdc# udevinfo -a -p /sys/block/sdc

  looking at device '/block/sdc':
    KERNEL=="sdc"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{dev}=="8:32"
    ATTR{range}=="16"
    ATTR{ext_range}=="256"
    ATTR{removable}=="0"
    ATTR{ro}=="0"
    ATTR{size}=="1953525168"
    ATTR{capability}=="52"
    ATTR{stat}=="    1272  120739  124780    25600        2        0      16        8        0    8313    25607"

  looking at parent device '/devices/pci0000:00/0000:00:1e.0/0000:03:07.2/usb2/2-5/2-5:1.0/host1/target1:0:0/1:0:0:1':
    KERNELS=="1:0:0:1"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="0"
    ATTRS{scsi_level}=="3"
    ATTRS{vendor}=="SAMSUNG "
    ATTRS{model}=="HD103UJ        "
    ATTRS{rev}=="    "
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{iocounterbits}=="32"
    ATTRS{iorequest_cnt}=="0x516"
    ATTRS{iodone_cnt}=="0x516"
    ATTRS{ioerr_cnt}=="0x0"
    ATTRS{modalias}=="scsi:t-0x00"
    ATTRS{evt_media_change}=="0"
    ATTRS{queue_depth}=="1"
    ATTRS{queue_type}=="none"
    ATTRS{max_sectors}=="240"

Das ist in Wirklichkeit noch viel länger und hangelt sich über die parent devices USB, usw.
bis runter zum PCI-Bus, an dem der USB-Controller hängt.

Interessant sind für uns die erste und zweite Abschnitt. Wollten wir die Platte zum Beispiel
über ihre Größe erkennen lassen, würde die udev-regel so lauten:

BUS=="usb", KERNEL=="sd?1", ATTR{size}=="1953525168", ...

Möglicherweise haben wir mehrere, gleich große Platten. Dann schauen wir ein Abschnitt
weiter. Die Modellbezeichnung vielleicht?

BUS=="usb", KERNEL=="sd?1", SUBSYSTEMS=="scsi", ATTRS{model}=="HD103UJ", ...


Gruß
Klausi
Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.
KlausiHH  19.Jul.2010 10:54:23
... wenn meine nun schön eingebundenen Platten nun auch noch ein wenig schneller
liefen, wäre mein Glück fast vollkommen. 5-10 MB/s, lesend und schreibend.  :-[
An meinem Wintendo-Rechner schaffen sie bis zu ~30 MB/s.
Ich hatte gestern Abend extra noch mal einen USB-Controller mit NEC-Chip reingesteckt,
keine Verbesserung zum onBoard-USB.

Vielleicht NTFS schuld? Ich werde mal eine andere Platte mit ext2 oder FAT probieren.
Oder ist USB unter Linux generell so lahm? Ich weiß, da gab es irgendwas mit sync oder
async beim mounten. Aber das betrifft, so wie ich es verstanden hab, nur die Schreibrate,
die dann richtig ectrem langsam wird.


Gehäuse OrigenAE/Amisos X15e, Asrock G41M-GE3, Core2Duo E5700, 4 GB DDR3, WD SATA-HDD 1 TB, Nvidia GT 230 PCIe, TechnoTrend C-1501 + Terratec Cinergy C HD, 7" TFT (GraphTFT, ohne Touch), irtrans-Empfänger + Harmony 300i, 24" PC-Monitor als Fernseher, 2.1 Boxen-Set Edifier C2 rev2, Kabelprovider Wilhelm Tell (ohne Grundverschlüsselung), 7.5 TB extern (4 x USB) für Serien und Filme.
Hinweis für Allergiker: Dieser Beitrag kann Spuren von Nüssen enthalten.