Re: Problem automount und hotplug
Am Freitag, 5. August 2005 13:40 schrieb Uwe Kerstan:
> * Enrico Apel <debian@apelnet.de> [03-08-2005 20:32]:
>
>> Es gäbe ja auch noch die Möglichkeit, dies in der fstab einzutragen,
>> aber /dev/sdX kann sich doch mit jedem Gerät wieder ändern?
>
> Mit udev kannst du jedes Gerät auf ein Device 'festnageln'.
>
>> Wie kann ich dies denn bewerkstelligen, dass ich dies einigermassen
>> automatisieren kann?
>
> Mit lk-2.6 und udev habe ich hier mal meinen Setup beschrieben:
> http://www.linuxer.onlinehome.de/apps/usb.htm - geht alles soweit
> automatisch. Probleme hatte ich bis jetzt noch nicht damit.
> Vielleicht hilft dir das weiter.
Mittels der Seite liess sich das recht gut einrichten.
Allerdings wird damit nichts gemountet. Oder liegt das am Konflikt mit
usbmount?
syslog sagt nur folgendes:
Aug 5 16:31:23 localhost kernel: usb 3-3.4: new high speed USB device using
address 7
Aug 5 16:31:24 localhost kernel: scsi3 : SCSI emulation for USB Mass
Storage devices
Aug 5 16:31:24 localhost kernel: Vendor: Model: USB DISK Pro
Rev: PMAP
Aug 5 16:31:24 localhost kernel: Type: Direct-Access
ANSI SCSI revision: 02
Aug 5 16:31:24 localhost kernel: SCSI device sde: 504832 512-byte hdwr
sectors (258 MB)
Aug 5 16:31:24 localhost kernel: sde: assuming Write Enabled
Aug 5 16:31:24 localhost kernel: sde: assuming drive cache: write through
Aug 5 16:31:24 localhost kernel: /dev/scsi/host3/bus0/target0/lun0: p1
Aug 5 16:31:24 localhost kernel: Attached scsi removable disk sde at scsi3,
channel 0, id 0, lun 0
Aug 5 16:31:24 localhost kernel: Vendor: Model: USB DISK Pro
Rev: PMAP
Aug 5 16:31:24 localhost kernel: Type: Direct-Access
ANSI SCSI revision: 02
Aug 5 16:31:24 localhost scsi.agent[8790]: sd_mod: loaded successfully
(for disk)
Aug 5 16:31:24 localhost udev[8762]: creating device node '/dev/sde'
Aug 5 16:31:24 localhost kernel: SCSI device sdf: 2880 512-byte hdwr
sectors (1 MB)
Aug 5 16:31:24 localhost kernel: sdf: assuming Write Enabled
Aug 5 16:31:24 localhost kernel: sdf: assuming drive cache: write through
Aug 5 16:31:24 localhost kernel: /dev/scsi/host3/bus0/target0/lun1:
unknown partition table
Aug 5 16:31:24 localhost kernel: Attached scsi removable disk sdf at scsi3,
channel 0, id 0, lun 1
Aug 5 16:31:24 localhost kernel: USB Mass Storage device found at 7
Aug 5 16:31:24 localhost usbmount[8805]: /dev/sde is a USB device
Aug 5 16:31:24 localhost usbmount[8805]: trying to acquire
lock /var/run/usbmount/.mount.lock
Aug 5 16:31:24 localhost usbmount[8805]: acquired
lock /var/run/usbmount/.mount.lock
Aug 5 16:31:24 localhost scsi.agent[8821]: sd_mod: loaded successfully
(for disk)
Aug 5 16:31:24 localhost udev[8788]: creating device node '/dev/sdf'
Aug 5 16:31:24 localhost usb.agent[8832]: usb-storage: already loaded
Aug 5 16:31:24 localhost logger: usb-storage: product d7d/1420/2
Aug 5 16:31:25 localhost usbmount[8871]: /dev/sdf is a USB device
Aug 5 16:31:25 localhost usbmount[8871]: trying to acquire
lock /var/run/usbmount/.mount.lock
Aug 5 16:31:25 localhost usbmount[8805]: /dev/sde does not contain a
filesystem or disklabel
Aug 5 16:31:25 localhost udev[8887]: creating device node '/dev/sde1'
Aug 5 16:31:25 localhost usbmount[8892]: /dev/sde1 is a USB device
Aug 5 16:31:25 localhost usbmount[8892]: trying to acquire
lock /var/run/usbmount/.mount.lock
Aug 5 16:31:25 localhost usbmount[8892]: acquired
lock /var/run/usbmount/.mount.lock
Aug 5 16:31:25 localhost usbmount[8892]: /dev/sde1 contains a filesystem or
disklabel
Aug 5 16:31:25 localhost usbmount[8892]: /dev/sde1 contains filesystem type
vfat
Aug 5 16:31:25 localhost usbmount[8892]: mountpoint /media/usb1 is
available for /dev/sde1
Aug 5 16:31:25 localhost usbmount[8892]: executing command: mount -tvfat
-osync,noexec,nodev,noatime /dev/sde1 /media/usb1
Aug 5 16:31:25 localhost usbmount[8892]: executing command:
run-parts /etc/usbmount/mount.d
Aug 5 16:31:30 localhost usbmount[8871]: acquired
lock /var/run/usbmount/.mount.lock
Aug 5 16:31:30 localhost usbmount[8871]: /dev/sdf contains a filesystem or
disklabel
Aug 5 16:31:30 localhost usbmount[8871]: /dev/sdf contains filesystem type
vfat
Aug 5 16:31:30 localhost usbmount[8871]: mountpoint /media/usb2 is
available for /dev/sdf
Aug 5 16:31:30 localhost usbmount[8871]: executing command: mount -tvfat
-osync,noexec,nodev,noatime /dev/sdf /media/usb2
Enrico
Reply to: