Подскажите, плз, не пойму в чём проблема:
при подключении более одой USB-Flash, флешка монтируется - от рута (хотя mount -l говорит об обратном), а не от поьзователя, и не отображает русские буквы ( вместо них " ? ? ? ? ? ? ?") , и естественно никаких прав на запись....
даже не представляю, куда копать....
лог:
подключаю первую флешь:
kernel: [ 163.190101] usb 2-2: new high speed USB device using ehci_hcd and address 3
kernel: [ 163.346359] usb 2-2: configuration #1 chosen from 1 choice
kernel: [ 163.408653] Initializing USB Mass Storage driver...
kernel: [ 163.409004] scsi6 : SCSI emulation for USB Mass Storage devices
kernel: [ 163.409463] usbcore: registered new interface driver usb-storage
kernel: [ 163.409468] USB Mass Storage support registered.
kernel: [ 163.411380] usb-storage: device found at 3
kernel: [ 163.411385] usb-storage: waiting for device to settle before scanning
kernel: [ 168.413185] usb-storage: device scan complete
kernel: [ 168.413870] scsi 6:0:0:0: Direct-Access USB BAR 2.00 PQ: 0 ANSI: 2
kernel: [ 168.414558] sd 6:0:0:0: Attached scsi generic sg2 type 0
kernel: [ 169.460329] ready
kernel: [ 169.461437] sd 6:0:0:0: [sdb] 512000 512-byte logical blocks: (262 MB/250 MiB)
kernel: [ 169.462205] sd 6:0:0:0: [sdb] Write Protect is off
kernel: [ 169.462210] sd 6:0:0:0: [sdb] Mode Sense: 03 00 00 00
kernel: [ 169.462213] sd 6:0:0:0: [sdb] Assuming drive cache: write through
kernel: [ 169.466090] sd 6:0:0:0: [sdb] Assuming drive cache: write through
kernel: [ 169.466098] sdb: sdb1
kernel: [ 169.469559] sd 6:0:0:0: [sdb] Assuming drive cache: write through
kernel: [ 169.469566] sd 6:0:0:0: [sdb] Attached SCSI removable disk
halevt: Running: halevt-mount -u /org/freedesktop/Hal/devices/volume_uuid_3182_6710 -o sync -m 002
halevt: Running: halevt-mount -s
подключаю втрую флешь:
kernel: [ 224.570531] usb 1-2: new high speed USB device using ehci_hcd and address 2
kernel: [ 224.723558] usb 1-2: configuration #1 chosen from 1 choice
kernel: [ 224.724226] scsi7 : SCSI emulation for USB Mass Storage devices
kernel: [ 224.724394] usb-storage: device found at 2
kernel: [ 224.724398] usb-storage: waiting for device to settle before scanning
kernel: [ 229.721623] usb-storage: device scan complete
kernel: [ 229.722841] scsi 7:0:0:0: Direct-Access USB2.0 USB Flash Disk 0.00 PQ: 0 ANSI: 2
kernel: [ 229.725225] sd 7:0:0:0: Attached scsi generic sg3 type 0
kernel: [ 229.728810] sd 7:0:0:0: [sdc] 1003520 512-byte logical blocks: (513 MB/490 MiB)
kernel: [ 229.729407] sd 7:0:0:0: [sdc] Write Protect is off
kernel: [ 229.729414] sd 7:0:0:0: [sdc] Mode Sense: 00 00 00 00
kernel: [ 229.729419] sd 7:0:0:0: [sdc] Assuming drive cache: write through
kernel: [ 229.732745] sd 7:0:0:0: [sdc] Assuming drive cache: write through
kernel: [ 229.732755] sdc: sdc1
kernel: [ 229.840331] sd 7:0:0:0: [sdc] Assuming drive cache: write through
kernel: [ 229.840345] sd 7:0:0:0: [sdc] Attached SCSI removable disk
halevt: Running: halevt-mount -u /org/freedesktop/Hal/devices/volume_uuid_7F67_0B33 -o sync -m 002
hald: mounted /dev/sdc1 on behalf of uid 115
halevt: Running: halevt-mount -s
mount -l:
/dev/sdb1 on /media/3182-6710 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sdc1 on /media/USB DISK-1 type vfat (rw,nosuid,nodev,sync,uhelper=hal,umask=002) [USB DISK]
/dev/sdc1 on /media/USB DISK type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush) [USB DISK]
ЗЫ: Ubuntu 10.4 x86_64
ЗЗЫ: может как-то надо halevt подправить???
Пользователь решил продолжить мысль 29 Июня 2010, 19:10:04:
Внесу уточнение: методом научного тыка выяснилось, что проблема в "двойном" монтирование второй флешки, только не понятно из-за чего оно возникает
(
У кого какие идеи?
Пользователь решил продолжить мысль 29 Июня 2010, 21:53:34:
Проблема решена!
нужно отредактировать файл: /etc/halevt/halevt.xml (например выполнив в терминале sudo gedit /etc/halevt/halevt.xml)
заменив его содержимое на:
<?xml version="1.0" encoding="UTF-8"?>
<halevt:Configuration version="0.1" xmlns:halevt="http://www.environnement.ens.fr/perso/dumas/halevt.html">
<!--
Remember to use & and " for & and " in xml attributes.
In a match attribute, hal.* is special since it matches any device.
In a match attribute property it is possible to refer to other
device properties. For example
hal.block.storage_device.hal.storage.policy.should_mount
refers to the storage.policy.should_mount property of the block.storage_device
device associated with a given device.
In an exec attribute, $hal.udi$ is special since it is replaced by
the device udi. $hal.some.property$ is replaced by the value
of the property some.property.
!-->
<!--
Removable devices support
!-->
<!--
When a device get a mount point, it is passed to halevt-mount which can
record it. The property that changes is volume.is_mounted, and the action is
executed when the value of volume.is_mounted becomes true.
!-->
<halevt:Device match="hal.block.device & hal.block.is_volume = true & hal.volume.mount_point">
<halevt:Property name="hal.volume.is_mounted">
<halevt:Action value="true" exec="halevt-mount -s"/>
</halevt:Property>
</halevt:Device>
<!--
When a device is unmounted, it is recorded by halevt-mount.
!-->
<halevt:Device match="hal.block.device & hal.block.is_volume = true">
<halevt:Property name="hal.volume.is_mounted">
<halevt:Action value="false" exec="halevt-mount -s"/>
</halevt:Property>
</halevt:Device>
<!--
When a device is removed, it is recorded by halevt-mount.
Note that at that point the device is already out of hal, so we use
* which matches any device in the match attribute, and only pass the
udi to the command.
!-->
<halevt:Device match="hal.*">
<halevt:Removal exec="halevt-umount -u $hal.udi$; halevt-umount -s"/>
</halevt:Device>
</halevt:Configuration>
У меня вроде всё без глюков пашет
ЗЫ: Модераторы, может в хау-ту кинуть???