[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem automount und hotplug



Am Donnerstag, 4. August 2005 16:10 schrieb Andreas Pakulat:

> Da gibts auch nicht, lies die Doku zu usbmount und aendere die Konfig
> bei Bedarf ab und das wars dann. Gemountet wird automatisch beim
> "reinstecken".

Mit der Doku komm ich nicht so recht klar, da dort andere Anweisungen als
dann in der conf stehen.

README
The following environment variables are available to the scripts (in
addition to those set in /etc/usbmount/usbmount.conf and by the hotplug
and udev systems):

UM_DEVICE       - filename of the device node
UM_MOUNTPOINT   - mointpoint
UM_FILESYSTEM   - filesystem type
UM_MOUNTOPTIONS - mount options that have been passed to the mount command
UM_VENDOR       - vendor of the device (empty if unknown)
UM_MODEL        - model name of the device (empty if unknown)

in der conf gibt es dagegen

MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
             /media/usb4 /media/usb5 /media/usb6 /media/usb7"
FILESYSTEMS="fat16 fat32 ext2 ext3 vfat"
MOUNTOPTIONS="sync,noexec,nodev,noatime"
FS_MOUNTOPTIONS=""

Was würde mir denn nun die Angebe von VENDOR und MODEL bringen?

syslog sagt jetzt folgendes, wenn ich ein CF-Card einstecke

Aug  4 22:14:46 localhost kernel: SCSI device sda: 1001952 512-byte hdwr
sectors (513 MB)
Aug  4 22:14:46 localhost kernel: sda: assuming Write Enabled
Aug  4 22:14:46 localhost kernel: sda: assuming drive cache: write through
Aug  4 22:14:46 localhost kernel: SCSI device sda: 1001952 512-byte hdwr
sectors (513 MB)
Aug  4 22:14:46 localhost kernel: sda: assuming Write Enabled
Aug  4 22:14:46 localhost kernel: sda: assuming drive cache: write through
Aug  4 22:14:46 localhost kernel:  /dev/scsi/host3/bus0/target0/lun0: p1
Aug  4 22:14:46 localhost udev[8478]: creating device node '/dev/sda1'
Aug  4 22:14:46 localhost usbmount[8487]: /dev/sda1 is a USB device
Aug  4 22:14:46 localhost usbmount[8487]: trying to acquire
lock /var/run/usbmount/.mount.lock
Aug  4 22:14:46 localhost usbmount[8487]: acquired
lock /var/run/usbmount/.mount.lock
Aug  4 22:14:46 localhost usbmount[8487]: /dev/sda1 contains a filesystem or
disklabel
Aug  4 22:14:46 localhost usbmount[8487]: /dev/sda1 contains filesystem type
vfat
Aug  4 22:14:46 localhost usbmount[8487]: mountpoint /media/usb2 is
available for /dev/sda1
Aug  4 22:14:46 localhost usbmount[8487]: executing command: mount -tvfat
-osync,noexec,nodev,noatime /dev/sda1 /media/usb2
Aug  4 22:14:46 localhost usbmount[8487]: executing command:
run-parts /etc/usbmount/mount.d

Das sieht demnach ja nicht schlecht aus, allerdings sind die Rechte
root:root

Ich nehme an, dass ich nun mit diesem part aus der conf spielen muss

# Filesystem type specific mount options: This variable contains a space
sepa-
# rated list of strings, each of which has the form "-fstype=TYPE,OPTIONS".
# If a filesystem with a type listed here is mounted, the corresponding
# options are appended to those specificed in the MOUNTOPTIONS variable.
# For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add the
# options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem is
mounted.
FS_MOUNTOPTIONS=""

Wahrscheinlich bewirken dann dmask und fmask etwas?

Enrico



Reply to: