| Autor | 
    Nachricht | 
  
  
    | 
      
     | 
    
      
        
					
            Titel: USB-Platte immer auf den selben Pfad mounten 
             Verfasst am: 12.02.2006, 14:18 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 22. Feb 2005 
            Beiträge: 2 
             
            
            
           | 
         
       
     | 
    
      
        
          Servus zusammen,
 
 
nachdem mit KDE 3.5 das mounten von USB-Geräten ja sehr gut funktioniert, habe ich das Problem, daß die Geräte bzw. Sticks immer auf unterschiuedliche Pfade gemountet werden. Ich habe z.B. eine externe Festplatte auf der ich meine MP3s "ausgelagert habe". AmaroK muss ich immer wieder neu konfigurieren, damit er diese findet. 
 
 
Kann ich irgendwo angeben, daß der die Platte (es gibt wohl eine USB-ID oder so) immer auf /media/extern oder so gemountet wird?
 
 
Danke,
 
Marc | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 12.02.2006, 15:45 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 05. Apr 2005 
            Beiträge: 499 
            Wohnort: Bielefeld <:-P 
            
            
           | 
         
       
     | 
    
      
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 06.04.2006, 20:11 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 10. Jun 2005 
            Beiträge: 87 
             
            
            
           | 
         
       
     | 
    
      
        
          Ich bekomme das irgendwie nicht hin.
 
Wenn ich udevinfo -a -p $(udevinfo -q path -n /dev/s*) eingebe
 
erscheint:
 
Code: 
udevinfo starts with the device the node belongs to and then walks up the
 
device chain, to print for every device found, all possibly useful attributes
 
in the udev key format.
 
Only attributes within one device section may be used together in one rule,
 
to match the device for which the node will be created.
 
 
  looking at device '/block/sda':
 
    KERNEL=="sda"
 
    SUBSYSTEM=="block"
 
    SYSFS{stat}=="     349     1242     2402     1936        0        0        0        0        0     1760     1936"
 
    SYSFS{size}=="240121728"
 
    SYSFS{removable}=="0"
 
    SYSFS{range}=="16"
 
    SYSFS{dev}=="8:0"
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2/usb5/5-1/5-1:1.0/host13/target13:0:0/13:0:0:0':
 
    ID=="13:0:0:0"
 
    BUS=="scsi"
 
    DRIVER=="sd"
 
    SYSFS{ioerr_cnt}=="0x0"
 
    SYSFS{iodone_cnt}=="0x162"
 
    SYSFS{iorequest_cnt}=="0x162"
 
    SYSFS{iocounterbits}=="32"
 
    SYSFS{timeout}=="30"
 
    SYSFS{state}=="running"
 
    SYSFS{rev}==""
 
    SYSFS{model}=="Y120L0          "
 
    SYSFS{vendor}=="Maxtor 6"
 
    SYSFS{scsi_level}=="3"
 
    SYSFS{type}=="0"
 
    SYSFS{queue_type}=="none"
 
    SYSFS{queue_depth}=="1"
 
    SYSFS{device_blocked}=="0"
 
    SYSFS{max_sectors}=="240"
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2/usb5/5-1/5-1:1.0/host13/target13:0:0':
 
    ID=="target13:0:0"
 
    BUS==""
 
    DRIVER==""
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2/usb5/5-1/5-1:1.0/host13':
 
    ID=="host13"
 
    BUS==""
 
    DRIVER==""
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2/usb5/5-1/5-1:1.0':
 
    ID=="5-1:1.0"
 
    BUS=="usb"
 
    DRIVER=="usb-storage"
 
    SYSFS{modalias}=="usb:v04B4p6830d0001dc00dsc00dp00ic08isc06ip50"
 
    SYSFS{bInterfaceProtocol}=="50"
 
    SYSFS{bInterfaceSubClass}=="06"
 
    SYSFS{bInterfaceClass}=="08"
 
    SYSFS{bNumEndpoints}=="02"
 
    SYSFS{bAlternateSetting}==" 0"
 
    SYSFS{bInterfaceNumber}=="00"
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2/usb5/5-1':
 
    ID=="5-1"
 
    BUS=="usb"
 
    DRIVER=="usb"
 
    SYSFS{configuration}==""
 
    SYSFS{serial}=="DEF107679C83"
 
    SYSFS{product}=="USB2.0 Storage Device"
 
    SYSFS{manufacturer}=="Cypress Semiconductor"
 
    SYSFS{maxchild}=="0"
 
    SYSFS{version}==" 2.00"
 
    SYSFS{devnum}=="17"
 
    SYSFS{speed}=="480"
 
    SYSFS{bMaxPacketSize0}=="64"
 
    SYSFS{bNumConfigurations}=="1"
 
    SYSFS{bDeviceProtocol}=="00"
 
    SYSFS{bDeviceSubClass}=="00"
 
    SYSFS{bDeviceClass}=="00"
 
    SYSFS{bcdDevice}=="0001"
 
    SYSFS{idProduct}=="6830"
 
    SYSFS{idVendor}=="04b4"
 
    SYSFS{bMaxPower}=="  0mA"
 
    SYSFS{bmAttributes}=="c0"
 
    SYSFS{bConfigurationValue}=="1"
 
    SYSFS{bNumInterfaces}==" 1"
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2/usb5':
 
    ID=="usb5"
 
    BUS=="usb"
 
    DRIVER=="usb"
 
    SYSFS{configuration}==""
 
    SYSFS{serial}=="0000:00:14.2"
 
    SYSFS{product}=="EHCI Host Controller"
 
    SYSFS{manufacturer}=="Linux 2.6.15.6-kanotix-1 ehci_hcd"
 
    SYSFS{maxchild}=="4"
 
    SYSFS{version}==" 2.00"
 
    SYSFS{devnum}=="1"
 
    SYSFS{speed}=="480"
 
    SYSFS{bMaxPacketSize0}=="64"
 
    SYSFS{bNumConfigurations}=="1"
 
    SYSFS{bDeviceProtocol}=="01"
 
    SYSFS{bDeviceSubClass}=="00"
 
    SYSFS{bDeviceClass}=="09"
 
    SYSFS{bcdDevice}=="0206"
 
    SYSFS{idProduct}=="0000"
 
    SYSFS{idVendor}=="0000"
 
    SYSFS{bMaxPower}=="  0mA"
 
    SYSFS{bmAttributes}=="c0"
 
    SYSFS{bConfigurationValue}=="1"
 
    SYSFS{bNumInterfaces}==" 1"
 
 
  looking at device '/devices/pci0000:00/0000:00:14.2':
 
    ID=="0000:00:14.2"
 
    BUS=="pci"
 
    DRIVER=="ehci_hcd"
 
    SYSFS{modalias}=="pci:v00001106d00003104sv00000925sd00001234bc0Csc03i20"
 
    SYSFS{local_cpus}=="1"
 
    SYSFS{irq}=="11"
 
    SYSFS{class}=="0x0c0320"
 
    SYSFS{subsystem_device}=="0x1234"
 
    SYSFS{subsystem_vendor}=="0x0925"
 
    SYSFS{device}=="0x3104"
 
    SYSFS{vendor}=="0x1106"
 
 
  looking at device '/devices/pci0000:00':
 
    ID=="pci0000:00"
 
    BUS==""
 
    DRIVER==""
 
 
 
In udev_my.rules habe ich
 
Code: 
# USB 'Platte'
 
BUS="usb", SYSFS{product}="USB2.0 Storage Device", SYSFS{serial}="DEF107679C83", KERNEL="sd*", NAME="USB120"
 
 
eingegeben und auch verlinkt.
 
1 mal hat das dann auch gefunzt und das wars.
 
Was habe ich denn falsch gemacht? | 
         
        
          
          
            
          
             _________________ AMD 1800+ ; 512MB RAM ; ATI Radeon 7500 ; 17" CRT Monitor ; NEC DVD RW ND-2510A ; Agfa SnapScan USB Scanner (den ich nicht ans laufen kriege)
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 17.05.2006, 10:39 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 17. Mai 2006 
            Beiträge: 7 
             
            
            
           | 
         
       
     | 
    
      
        
          Hi
 
 
Schau mit disktype Partition welchen Volume name die Partition hat, und trag sie in der fstab ein.
 
 
z.Bsp.: 
 
LABEL=meiner  /mnt/meiner  vfat  user,nosuid,defaults,noexec,nodev,noauto  0  0
 
 
dann kannst du es unter mount /mnt/meiner mounten   | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 17.05.2006, 10:49 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 10. Sep 2004 
            Beiträge: 413 
             
            
            
           | 
         
       
     | 
    
      
        
          | 
 Zitat: 
In udev_my.rules habe ich
 
Code:
 
# USB 'Platte'
 
BUS="usb", SYSFS{product}="USB2.0 Storage Device", SYSFS{serial}="DEF107679C83", KERNEL="sd*", NAME="USB120"
 
 
eingegeben und auch verlinkt. 
 
 
 
Zähl mal die Gleichheitszeichen und vergleiche mit 
Code: 
BUS=="usb",  SYSFS{idProduct}=="a410", SYSFS{idVendor}=="05dc" , KERNEL=="sd*", NAME="lexar1G%n"
 
 
Ich glaube, udev ist da etwas eigen.
 
 
Gruß
 
Datebro | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 17.05.2006, 12:06 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 09. Jan 2006 
            Beiträge: 1720 
             
            
            
           | 
         
       
     | 
    
      
        
          | Sieht aus,als wenn udev das parsed, wie C. | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 19.05.2006, 18:58 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
             
  
            Anmeldung: 18. Mar 2004 
            Beiträge: 3417 
             
            
            
           | 
         
       
     | 
    
      
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 20.05.2006, 01:13 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 09. Jan 2006 
            Beiträge: 1720 
             
            
            
           | 
         
       
     | 
    
      
        
          @severin, in C ist ein einzelnes = eine zuweisung und 2 == sind ein Vergleich.
 
 
BUS=="usb",  SYSFS{idProduct}=="a410", SYSFS{idVendor}=="05dc" , KERNEL=="sd*", # vegleich auf Namen bus o.ä. NAME="lexar1G%n" # die Zuweisung Name=lexar | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 20.05.2006, 22:36 Uhr
           | 
				 
       
     | 
  
  
    
      
        
          
             
            
  
            Anmeldung: 10. Sep 2004 
            Beiträge: 413 
             
            
            
           | 
         
       
     | 
    
      
        
          @schnorrer und @severin 
 
und wenn ihr fragt, woher ich das wusste: wusste ich gar nicht, Hack-o-master hat die Lösung auf seiner Seite http://fjacobsen002.fj.funpic.de/
 
 
Gruß
 
Datebro | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
  
  
    | 
      
      
     | 
  
  
      | 
  
  
  
    | 
      
     |