Ciao,
da un po' la mia Debian Lenny (con gnome 2.22.3) non fa l'automount delle chiavette usb e flash card. Ora vorrei capire perchè e risolvere il problema.
Ho letto diversi thread su cose simili (qui e in giro su internet) e sembra che il consiglio più frequente sia di installare
usbmount.
Premetto che io ho installato
hal,
udev,
gnome-virtual-manager,
autofs e
pmount.
I device vengono riconosciti regolarmente e installati se do il comando sudo mount..... oppure pmount....
Ma non ho più l'automount.
Con usbmount la chiavetta viene installata in automatico ma perde la comodissima possibilità di montarla con la propria label (ad esempio "Chiavetta di Pippo"), oltre ad avere alcuni altri problemi (legati al mount con sync che parrebbe non essere del tutto senza rischi di rovinare dati e chiavetta).
Non intendo nemmeno mettere mano a fstab aggiungendo una riga per ogni porta usb e card reader del mio pc.
Ho provato ad installare
ivman cambiando le regole in /etc/ivman/IvmConfigBase.xml come segue:
<?xml version="1.0" encoding="UTF-8"?>
<ivm:BaseConfig version="0.2" xmlns:ivm="http://www.eikke.com/ivm">
<!-- Whether or not Ivman should daemonize itself. Should almost always
be true for the system-wide version of Ivman. -->
<ivm:Option name="fork" value="true" />
<!-- Whether or not to give debugging output. Warning, this is very
verbose! -->
<ivm:Option name="debug" value="false" />
<!-- whether or not system-wide ivman should sleep a little while before
mounting volumes. Default: true. -->
<!--
<ivm:Option name="sleep" value="false" />
-->
<!-- pidfile to use to ensure that only one instance of Ivman will
be running -->
<ivm:Option name="pidfile" value="/var/run/ivman/ivman.pid" />
<!-- user for Ivman to run as. You can then setup sudo rules for this
user. -->
<ivm:Option name="user" value="ivman" />
<!-- group for Ivman to run as. Should have permissions to run 'pmount'. -->
<ivm:Option name="group" value="plugdev" />
<!-- mount command. default is autodetected. Must be specified with
umountcommand. -->
<ivm:Option name="mountcommand" value="pmount '$hal.block.device$'" />
<!-- umount command. default is autodetected. Must be specified with
mountcommand. -->
<ivm:Option name="mountcommand" value="pmount '$hal.block.device$' /media/'$hal.volume.label$'" />
<!-- If using pmount, and running as a system-wide instance of Ivman,
mount devices with this umask. Default: 007 -->
<ivm:Option name="umask" value="002" />
</ivm:BaseConfig>
ma nulla è servito e continuo a non avere l'automount.
Ripeto le periferiche sono viste da hal ma non si automontano a meno che non sia installato usbmount (che ora ho disinstallato).
se do
sudo tail -f /var/log/messagesed inserisco la chiavetta ottengo:
Oct 5 15:35:47 macchinario kernel: sdc: Write Protect is off
Oct 5 15:35:47 macchinario kernel: SCSI device sdc: 3953664 512-byte hdwr sectors (2024 MB)
Oct 5 15:35:47 macchinario kernel: sdc: Write Protect is off
Oct 5 15:35:47 macchinario kernel: sdc: sdc1
Oct 5 15:35:47 macchinario kernel: sd 18:0:0:0: Attached scsi removable disk sdc
Oct 5 15:35:51 macchinario kernel: usb 1-6.1: new full speed USB device using ehci_hcd and address 28
Oct 5 15:35:51 macchinario kernel: usb 1-6.1: new full speed USB device using ehci_hcd and address 29
Oct 5 15:35:52 macchinario kernel: usb 1-6.1: new full speed USB device using ehci_hcd and address 30
Oct 5 15:35:52 macchinario kernel: usb 1-6.1: new full speed USB device using ehci_hcd and address 31
Oct 5 15:58:36 macchinario kernel: usb 1-6.4: USB disconnect, address 27
Oct 5 16:00:01 macchinario kernel: usb 1-6.4: new high speed USB device using ehci_hcd and address 32
Oct 5 16:00:02 macchinario kernel: usb 1-6.4: configuration #1 chosen from 1 choice
Oct 5 16:00:02 macchinario kernel: scsi19 : SCSI emulation for USB Mass Storage devices
Oct 5 16:00:07 macchinario kernel: scsi 19:0:0:0: Direct-Access USB Flash Memory 1.00 PQ: 0 ANSI: 2
Oct 5 16:00:07 macchinario kernel: SCSI device sdd: 3953664 512-byte hdwr sectors (2024 MB)
Oct 5 16:00:07 macchinario kernel: sdd: Write Protect is off
Oct 5 16:00:07 macchinario kernel: SCSI device sdd: 3953664 512-byte hdwr sectors (2024 MB)
Oct 5 16:00:07 macchinario kernel: sdd: Write Protect is off
Oct 5 16:00:07 macchinario kernel: sdd: sdd1
Oct 5 16:00:07 macchinario kernel: sd 19:0:0:0: Attached scsi removable disk sdd
se do
dmsegle ultime righe relative all'attacco della chiavetta sono:
...
sd 20:0:0:0: Attached scsi removable disk sdd
usb 1-6.4: USB disconnect, address 33
usb 1-6.4: new high speed USB device using ehci_hcd and address 34
usb 1-6.4: configuration #1 chosen from 1 choice
scsi21 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 34
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 21:0:0:0: Direct-Access VBTM Store 'n' Go 5.00 PQ: 0 ANSI: 0 CCS
SCSI device sdd: 2013184 512-byte hdwr sectors (1031 MB)
sdd: Write Protect is off
sdd: Mode Sense: 23 00 00 00
sdd: assuming drive cache: write through
SCSI device sdd: 2013184 512-byte hdwr sectors (1031 MB)
sdd: Write Protect is off
sdd: Mode Sense: 23 00 00 00
sdd: assuming drive cache: write through
sdd: sdd1
sd 21:0:0:0: Attached scsi removable disk sdd
Non so più cosa fare... qualcuno sa come posso tornare al vecchio comodo metodo con cui infilavo la chiavetta e questa veniva automontata con la propria label e visualizzata sul desktop?
Grazie
kmarx