Guido Pinkernell wrote:
Genau: Ein Beispiel im Detail mit log-Auszügen:
Ich stecke einen USB-Stick ("Easydisk") ein. Udev erzeugt einen Node /dev/easydisk, den ich per Hand erfolgreich mounten kann. [...]
Aeh, welche Major und Minor Nummer hat denn das Device /dev/easydisk? Ich haette gedacht, es wird ein Device wie sda1 oder so angelegt... Also, wenn ich meinen USB-Stick anstecke, dann passiert folgendes: -- dmesg: usb 1-2.1: new full speed USB device using address 5 usb 1-2.1: Product: USB Disk 2.0 usb 1-2.1: Manufacturer: usb 1-2.1: SerialNumber: 02073305090D60 scsi1 : SCSI emulation for USB Mass Storage devices Vendor: GENERIC Model: USB Disk 2.0 Rev: U400 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sde: 507904 512-byte hdwr sectors (260 MB) sde: Write Protect is off sde: Mode Sense: 53 00 00 08 sde: assuming drive cache: write through sde: sde1 Attached scsi removable disk sde at scsi1, channel 0, id 0, lun 0 Attached scsi generic sg4 at scsi1, channel 0, id 0, lun 0, type 0 USB Mass Storage device found at 5 udev kreiert ein Device /dev/sde1, ausserdem wird ein Verzeichnis /media/usb-02073305090D60:0:0:0p1/ angelegt (wie man sieht, kommt darin die Serial Number von oben vor). Wenn ich es nicht abgeschaltet haette, wuerde nun der Stick automatisch in das Verzeichnis eingehaengt werden (via subfs) - so etwas will ich aber nicht (und schon gar nicht mit einer sync-Option), weswegen ich das abgestellt habe in /etc/sysconfig/hotplug. Beim Entfernen des Sticks (nach einem manuellen umount, versteht sich) findet sich -- dmesg: usb 1-2.1: USB disconnect, address 5 im Logfile und das Device /dev/sde1 sowie das Verzeichnis unter /media sind wieder verschwunden. Ich denke, so in der Art sollte es auch prinzipiell funktionieren. Waere es moeglich, dass Dein Stick nicht korrekt erkannt wird und es deswegen zu Problemen kommt? Sorry, ist nicht besonders hilfreich, aber ich habe so meine Probleme, das Zusammenspiel von hotplug bzw. coldplug, udev, subfs, ... zu durchschauen. Ein Device scheint ja angelegt zu werden, aber der Rest Deines Systems erwartet wohl etwas anderes als /dev/easydisk. Gruesse, Th.