Bug 450219

Summary: ntfs external hard drives not works
Product: [openSUSE] openSUSE 11.1 Reporter: andrea florio <andrea>
Component: KDE4 WorkspaceAssignee: E-mail List <kde-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P2 - High CC: coolo, lnussel, vuntz
Version: RC 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: problem resuming and possible fixing

Description andrea florio 2008-11-29 10:31:51 UTC
i attach the pen drive (and my external hard disk as well) and i got the following:

kde-updaterapplet : ERROR --> "DBus error : org.freedesktop.PackageKit.Transaction.SearchInvalid : Search string zero length"

kio_media_mounthelper : ERROR --> "TODO: have to rethink extra options"

from tail -f /var/log/messages , pen drive correctly detected:

Nov 29 11:21:19 linux-susz kernel: usb 1-6: new high speed USB device using ehci_hcd and address 5
Nov 29 11:21:19 linux-susz kernel: usb 1-6: configuration #1 chosen from 1 choice
Nov 29 11:21:19 linux-susz kernel: scsi9 : SCSI emulation for USB Mass Storage devices
Nov 29 11:21:19 linux-susz kernel: usb 1-6: New USB device found, idVendor=0781, idProduct=5406
Nov 29 11:21:19 linux-susz kernel: usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 29 11:21:19 linux-susz kernel: usb 1-6: Product: U3 Cruzer Micro
Nov 29 11:21:19 linux-susz kernel: usb 1-6: Manufacturer: SanDisk
Nov 29 11:21:19 linux-susz kernel: usb 1-6: SerialNumber: 0000167C8775C505
Nov 29 11:21:19 linux-susz kernel: usb-storage: device found at 5
Nov 29 11:21:19 linux-susz kernel: usb-storage: waiting for device to settle before scanning
Nov 29 11:21:20 linux-susz kernel: scsi 9:0:0:0: Direct-Access     SanDisk  Cruzer           4.05 PQ: 0 ANSI: 2
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] 16055949 512-byte hardware sectors: (8.22GB/7.65GiB)
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Write Protect is off
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Mode Sense: 03 00 00 00
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Assuming drive cache: write through
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] 16055949 512-byte hardware sectors: (8.22GB/7.65GiB)
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Write Protect is off
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Mode Sense: 03 00 00 00
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Assuming drive cache: write through
Nov 29 11:21:20 linux-susz kernel:  sdc: sdc1
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: [sdc] Attached SCSI removable disk
Nov 29 11:21:20 linux-susz kernel: sd 9:0:0:0: Attached scsi generic sg4 type 0
Nov 29 11:21:20 linux-susz kernel: usb-storage: device scan complete
                                                                     



from dmesg:


usb 1-6: new high speed USB device using ehci_hcd and address 5
usb 1-6: configuration #1 chosen from 1 choice
scsi9 : SCSI emulation for USB Mass Storage devices
usb 1-6: New USB device found, idVendor=0781, idProduct=5406
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: Product: U3 Cruzer Micro
usb 1-6: Manufacturer: SanDisk
usb 1-6: SerialNumber: 0000167C8775C505
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 9:0:0:0: Direct-Access     SanDisk  Cruzer           4.05 PQ: 0 ANSI: 2
sd 9:0:0:0: [sdc] 16055949 512-byte hardware sectors: (8.22GB/7.65GiB)
sd 9:0:0:0: [sdc] Write Protect is off
sd 9:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 9:0:0:0: [sdc] Assuming drive cache: write through
sd 9:0:0:0: [sdc] 16055949 512-byte hardware sectors: (8.22GB/7.65GiB)
sd 9:0:0:0: [sdc] Write Protect is off
sd 9:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 9:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 9:0:0:0: [sdc] Attached SCSI removable disk
sd 9:0:0:0: Attached scsi generic sg4 type 0
usb-storage: device scan complete
SFW2-INext-DROP-DEFLT IN=eth0 OUT= MAC=01:00:5e:00:00:fb:00:21:00:0c:72:4f:08:00 SRC=192.168.1.132 DST=224.0.0.251 LEN=64 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=44




ntfs-3g is installed and i tried to configure with ntfs-config as well...

if i mount them manually it works...

if i use my package instead, the pen drive is mounted but packagekit still show the above error.

to fix removable media issue i added that hal rule:

/usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi

where the content is:

 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<!--
   Allow read/write mounting of external NTFS devices with ntfs-3g.
    /usr/share/hal/fdi/policy/10osvendor/
-->
<deviceinfo version="0.2">
  <device>
    <match key="volume.fstype" string="ntfs">
      <match key="@block.storage_device:storage.hotpluggable" bool="true">
          <merge key="volume.fstype" type="string">ntfs-3g</merge>
          <merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
          <append key="volume.mount.valid_options" type="strlist">locale=</append>
      </match>
    </match>
  </device>
</deviceinfo>
Comment 1 Andreas Jaeger 2008-11-29 15:48:22 UTC
Is this a hal or kde problem?  If it's kde, please assign to kde-maintainers.
Comment 2 andrea florio 2008-11-29 18:05:46 UTC
hal and packagekit i think... i fixed the hal part with the rule i posted before.. but i have no idea about the packagekit one that as i told is that one:

kde-updaterapplet : ERROR --> "DBus error :
org.freedesktop.PackageKit.Transaction.SearchInvalid : Search string zero
length"
Comment 3 andrea florio 2008-11-30 13:53:34 UTC
kde-updaterapplet error is not showed if i removed the check from "search drivers when new hardware is attached"
Comment 4 andrea florio 2008-11-30 14:06:06 UTC
Created attachment 256785 [details]
problem resuming and possible fixing

so resuming

the problem is packagekit + hal..

KDE UPDATER APPLET ERROR: (here the problem is packagekit)

zypper backend : no problems even if the search drivers option is enabled.

packagekit backend : to workaround i MUST disable the serach drivers option or when i attach ntfs drives i got the dbus error told.


MISSING AUTOMOUNT: (here the problem is HAL)

you can fix it adding that hal rule:

/usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi

that is attached
Comment 5 Danny Al-Gaaf 2008-12-01 06:35:41 UTC
Looks to me like a KDE/PackageKit problem and not a HAL issue
Comment 6 andrea florio 2008-12-01 08:43:21 UTC
i'm sorry to disagree...

the problem is hal / packagekit related...

the automaunt issue exist with both (kde3 and kde4), i'm installing gnome to check it too.. and i fixed with the HAL rule (but i know, you never accept community contributions)

i'll report soon about gnome
Comment 7 andrea florio 2008-12-01 08:45:11 UTC
oh, i forgot...

kde3:

kio_media_mounthelper : ERROR --> "TODO: have to rethink extra options"


kde4:

dolphin ---> "org.freedesktop.Hal.Device.Volume.UnknownFAILURE: TODO: have to rethink extra options"
Comment 8 andrea florio 2008-12-01 09:07:29 UTC
i'm sorry, you was right.. no problems with gnome...

any way as i told it can be easly fixed with the hail rule attached, and what about packagekit?
Comment 9 andrea florio 2008-12-01 09:51:34 UTC
the packagekit problem is not strictly related to ntfs hard drives... same error if i plug a bluetooth adapter.. i think that the feture "search new drivers when plug devices" is broken
Comment 10 Stephan Kulow 2008-12-01 15:56:56 UTC
and what is the problem you have? You only list warnings from log files afaics
Comment 11 andrea florio 2008-12-01 15:58:53 UTC
IT DO NOT AUTO-MOUNT NTFS PEN DRIVES
Comment 12 andrea florio 2008-12-01 16:10:13 UTC
kde is not able to automount ntfs drives... i can be fixed with the hal rule attxhed..

without know i reported a second bug too..


packagekit "search drivers when hardware is plugged" feature don't work...

if enabled, you'll receive

"DBus error :
org.freedesktop.PackageKit.Transaction.SearchInvalid : Search string zero
length"

Comment 13 JP Rosevear 2008-12-01 16:39:44 UTC
There is an fdi file in the ntfs-3g package itself:
 /usr/share/hal/fdi/policy/10osvendor/21-storage-ntfs-3g.fdi

already.
Comment 14 Vincent Untz 2008-12-01 16:49:01 UTC
I guess it's a duplicate of bug 442178.
Comment 15 andrea florio 2008-12-01 16:51:38 UTC
@ vincent:
indeed look to be

@ JP Rosevear:

but look not works, mine insted works.. tested.
Comment 16 andrea florio 2008-12-01 16:55:58 UTC
*** Bug 442178 has been marked as a duplicate of this bug. ***
Comment 17 Vincent Untz 2008-12-01 17:06:26 UTC
You should have closed this bug, and not bug 442178.

*** This bug has been marked as a duplicate of bug 442178 ***