Automount von USB device funktioniert nicht mehr
Frank Wohlfahrt
frank-info at gmx.de
Tue May 26 17:20:59 CEST 2009
Das Problem kommt ja oft im Netz vor aber eine Lösung für mich habe ich trotz
intensiver Suche nicht gefunden:
Manuelles mounten funktioniert. Sowohl per "sudo mount" als auch mit pmount.
Früher (komischerweise) hat das automatische Mounten (unter /media)
funktioniert (auf meinen Debian/KDE Rechnern immer noch). Auf diesem Rechner
öffnet sich aber das Laufwerksverzeichnis nicht mehr automatisch (seit dem
Update auf Jaunty glaube ich).
Wenn ich in "/etc/pmount.allow" "/dev/sd[a-f]*" eintrage, funktioniert
automount wieder. Allerding geht das umount dann nur auf der Kommandozeile.
Wenn man auf dem Desktop aushängen drückt kommt: "The volume was probably
mounted manually on the command line." Die Eintragungen aus pmount.allow habe
ich wieder entfernt.
Das CD/DVD Laufwerk wird unter /media/cdrom0 gemountet allerdings ohne
automatisches Popup Fenster. Dafür gibt es in fstab einen Eintrag. Für den USB
Stick nicht.
Im Konfigurationseditor ist fuer nautilus "media_automount" angewaehlt. Ich
vermute aber das Problem liegt tiefer. Irgentwo bei "hal". Diesen und auch den
gnome-volume-maneger habe ich schon komplett neu installiert, d.h. dort habe
ich Defaulteinstellungen. Aber welche Software ueberhaupt zustaendig ist, ist
mir unklar. Z.B. gibt es ein Paket usbmount, aber ob es instlliert ist, oder
nicht scheint egal zu sein.
"Hal" ist aktiv:
frank at ganymed:~$ ps -ax|grep hal
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
3993 ? Ss 0:01 /usr/sbin/hald
4064 ? S 0:00 hald-runner
4102 ? S 0:00 hald-addon-input: Listening on /dev/input/event2
/dev/input/event0 /dev/input/event6 /dev/input/event1 /dev/input/event4
/dev/input/event7
4114 ? S 0:00 /usr/lib/hal/hald-addon-rfkill-killswitch
4128 ? S 0:00 /usr/lib/hal/hald-addon-leds
4129 ? S 0:00 /usr/lib/hal/hald-addon-generic-backlight
4153 ? S 0:01 hald-addon-storage: polling /dev/sr0 (every 2 sec)
4155 ? S 0:00 /usr/lib/hal/hald-addon-cpufreq
4156 ? S 0:00 hald-addon-acpi: listening on acpid socket
/var/run/acpid.socket
5569 ? S 0:00 /usr/lib/gvfs/gvfs-hal-volume-monitor
12424 ? S 0:00 hald-addon-storage: polling /dev/sdc (every 2 sec)
Ausgabe von hal-find-by-property --key info.category --string storage | xargs -
i lshal -u "{}":
-----------------------------
udi =
'/org/freedesktop/Hal/devices/storage_serial_SanDisk_Cruzer_3411431D6582795B_0_0'
access_control.file = '/dev/sdc' (string)
access_control.type = 'removable-block' (string)
block.device = '/dev/sdc' (string)
block.is_volume = false (bool)
block.major = 8 (0x8) (int)
block.minor = 32 (0x20) (int)
block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SanDisk_Cruzer_3411431D6582795B_0_0'
(string)
info.addons = {'hald-addon-storage'} (string list)
info.callouts.add = {'hal-acl-tool --add-device'} (string list)
info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
info.capabilities = {'storage', 'block', 'access_control'} (string list)
info.category = 'storage' (string)
info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (string
list)
info.parent =
'/org/freedesktop/Hal/devices/usb_device_781_5406_3411431D6582795B_if0_scsi_host_0_scsi_device_lun0'
(string)
info.product = 'Cruzer' (string)
info.udi =
'/org/freedesktop/Hal/devices/storage_serial_SanDisk_Cruzer_3411431D6582795B_0_0'
(string)
info.vendor = 'SanDisk' (string)
linux.hotplug_type = 3 (0x3) (int)
linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3:1.0/host7/target7:0:0/7:0:0:0/block/sdc'
(string)
storage.automount_enabled_hint = true (bool)
storage.bus = 'usb' (string)
storage.drive_type = 'disk' (string)
storage.firmware_version = '8.01' (string)
storage.hotpluggable = true (bool)
storage.lun = 0 (0x0) (int)
storage.media_check_enabled = true (bool)
storage.model = 'Cruzer' (string)
storage.no_partitions_hint = false (bool)
storage.originating_device =
'/org/freedesktop/Hal/devices/usb_device_781_5406_3411431D6582795B_if0'
(string)
storage.partitioning_scheme = 'mbr' (string)
storage.removable = true (bool)
storage.removable.media_available = true (bool)
storage.removable.media_size = 4022337024 (0xefbffe00) (uint64)
storage.removable.support_async_notification = false (bool)
storage.requires_eject = false (bool)
storage.serial = 'SanDisk_Cruzer_3411431D6582795B-0:0' (string)
storage.size = 0 (0x0) (uint64)
storage.vendor = 'SanDisk' (string
syslog:
----------
May 26 17:19:25 ganymed kernel: [ 3937.260180] usb 1-3: new high speed USB
device using ehci_hcd and address 11
May 26 17:19:25 ganymed kernel: [ 3937.399257] usb 1-3: configuration #1 chosen
from 1 choice
May 26 17:19:25 ganymed kernel: [ 3937.399759] scsi9 : SCSI emulation for USB
Mass Storage devices
May 26 17:19:25 ganymed kernel: [ 3937.400792] usb-storage: device found at 11
May 26 17:19:25 ganymed kernel: [ 3937.400797] usb-storage: waiting for device
to settle before scanning
May 26 17:19:30 ganymed kernel: [ 3942.396524] usb-storage: device scan
complete
May 26 17:19:30 ganymed kernel: [ 3942.397091] scsi 9:0:0:0: Direct-Access
SanDisk Cruzer 8.01 PQ: 0 ANSI: 0 CCS
May 26 17:19:30 ganymed kernel: [ 3942.397536] scsi 9:0:0:1: CD-ROM
SanDisk Cruzer 8.01 PQ: 0 ANSI: 0
May 26 17:19:30 ganymed kernel: [ 3942.401891] sd 9:0:0:0: [sdc] 7856127 512-
byte hardware sectors: (4.02 GB/3.74 GiB)
May 26 17:19:30 ganymed kernel: [ 3942.404093] sd 9:0:0:0: [sdc] Write Protect
is off
May 26 17:19:30 ganymed kernel: [ 3942.404099] sd 9:0:0:0: [sdc] Mode Sense:
45 00 00 08
May 26 17:19:30 ganymed kernel: [ 3942.404103] sd 9:0:0:0: [sdc] Assuming
drive cache: write through
May 26 17:19:30 ganymed kernel: [ 3942.405360] sd 9:0:0:0: [sdc] 7856127 512-
byte hardware sectors: (4.02 GB/3.74 GiB)
May 26 17:19:30 ganymed kernel: [ 3942.405861] sd 9:0:0:0: [sdc] Write Protect
is off
May 26 17:19:30 ganymed kernel: [ 3942.405867] sd 9:0:0:0: [sdc] Mode Sense:
45 00 00 08
May 26 17:19:30 ganymed kernel: [ 3942.405873] sd 9:0:0:0: [sdc] Assuming
drive cache: write through
May 26 17:19:30 ganymed kernel: [ 3942.405881] sdc: sdc1
May 26 17:19:30 ganymed kernel: [ 3942.406991] sd 9:0:0:0: [sdc] Attached SCSI
removable disk
May 26 17:19:30 ganymed kernel: [ 3942.407111] sd 9:0:0:0: Attached scsi
generic sg2 type 0
May 26 17:19:30 ganymed kernel: [ 3942.431121] sr1: scsi3-mmc drive: 48x/48x
tray
May 26 17:19:30 ganymed kernel: [ 3942.431312] sr 9:0:0:1: Attached scsi CD-
ROM sr1
May 26 17:19:30 ganymed kernel: [ 3942.432913] sr 9:0:0:1: Attached scsi
generic sg3 type 5
Frank
Ubuntu 9.04 (jaunty) Kernel 2.6.28-11-generic GNOME 2.26.1
More information about the Linux
mailing list