<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>157378</bug_id>
          
          <creation_ts>2008-02-08 00:37:44 +0000</creation_ts>
          <short_desc>HAL+NTFS-3g fails to automount ntfs drives</short_desc>
          <delta_ts>2009-03-31 17:17:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Bugzilla Internals</classification>
          <product>unknown</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DOWNSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shaumyadeep Chaudhuri">shaumya</reporter>
          <assigned_to name="Unassigned bugs">unassigned-bugs-null</assigned_to>
          <cc>francesco.dimuccio</cc>
    
    <cc>freedom2lee</cc>
    
    <cc>insanimo</cc>
    
    <cc>jarin.franek</cc>
    
    <cc>laurens</cc>
    
    <cc>lenz_fabian</cc>
    
    <cc>rahul</cc>
    
    <cc>ravirdv</cc>
    
    <cc>schmaker</cc>
    
    <cc>shafff</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>180</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>578555</commentid>
    <comment_count>0</comment_count>
    <who name="Shaumyadeep Chaudhuri">shaumya</who>
    <bug_when>2008-02-08 00:37:44 +0000</bug_when>
    <thetext>Version:           unknown (using 4.0.1 (KDE 4.0.1), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc-4.2.2 
OS:                Linux (i686) release 2.6.24-zen1

If i try to mount a ntfs partition using the sidepanel on dolphin, i get the error and the disk fails to mount:

An error occurred while accessing &apos;DSK1_VOL1&apos;, the sytem said: org.freedesktop.Hal.Device.Volume.UnknownFaliure: TODO have to rethink extra options.

I am using the ntfs-3g driver with fuse and the kernel ntfs driver disabled on a self compiled linux kernel.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578790</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey">andrey</who>
    <bug_when>2008-02-08 22:02:52 +0000</bug_when>
    <thetext>I have the same problem. I&apos;m using Gentoo and KDE 4.1 trunk. hal version is 0.5.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>581237</commentid>
    <comment_count>2</comment_count>
    <who name="Jisakiel">jisakiel</who>
    <bug_when>2008-02-18 22:44:08 +0000</bug_when>
    <thetext>Same problem over here. I have both fuse.ntfs (libntfs) and ntfs-3g but it can&apos;t mount it from the side panel. Also gentoo here (4.0.1). </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>608638</commentid>
    <comment_count>3</comment_count>
    <who name="Paweł Zaskórski">p.zaskorski</who>
    <bug_when>2008-06-07 19:46:57 +0000</bug_when>
    <thetext>This problem still exist in KDE 4.0.5 (hal-0.5.11).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>609099</commentid>
    <comment_count>4</comment_count>
    <who name="grzesiekw">grzesiekw</who>
    <bug_when>2008-06-09 09:07:10 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>631748</commentid>
    <comment_count>5</comment_count>
    <who name="">bgn66922</who>
    <bug_when>2008-08-01 03:27:10 +0000</bug_when>
    <thetext>Same problem here on archlinux kdemod 4.1.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>631799</commentid>
    <comment_count>6</comment_count>
    <who name="Shaumyadeep Chaudhuri">shaumya</who>
    <bug_when>2008-08-01 08:03:19 +0000</bug_when>
    <thetext>The problem still persists in kde 4.1
Now Using:
Version:           unknown (using 4.1.0 (KDE 4.1.0), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc-4.3.1
OS:                Linux (i686) release 2.6.26-zen2.0
HAL:               0.5.11
NTFS-3G:           1.2712

Though in the partitions section in kinfocenter it correctly identifies the partition as ntfs-3g</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>632764</commentid>
    <comment_count>7</comment_count>
    <who name="Rahul Jain">rahul</who>
    <bug_when>2008-08-02 21:33:43 +0000</bug_when>
    <thetext>Same Problem persists:
Version:  4.1.0, Gentoo
Compiler: i686-pc-linux-gnu-4.3.1
OS: Linux (i686) Tuxonice-Sources-2.6.26
HAL: 0.5.11-r1
NTFS-3G: 1.2712</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637298</commentid>
    <comment_count>8</comment_count>
    <who name="freza">ondra_novak</who>
    <bug_when>2008-08-14 09:22:25 +0000</bug_when>
    <thetext>Same problem with Hal 0.5.11-r1 in KDE 3.5.9
According to other buglist, there is some change in hal since 0.5.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642427</commentid>
    <comment_count>9</comment_count>
    <who name="Fabian Lenz">lenz_fabian</who>
    <bug_when>2008-08-31 14:41:39 +0000</bug_when>
    <thetext>Same for me (KDE 4.1.0)

This bug is creeping around for aeons, please fix it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642448</commentid>
    <comment_count>10</comment_count>
    <who name="Ravi Vagadia">ravirdv</who>
    <bug_when>2008-08-31 16:17:12 +0000</bug_when>
    <thetext>its still not working in KDE 4.1.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>643612</commentid>
    <comment_count>11</comment_count>
    <who name="Rahul Jain">rahul</who>
    <bug_when>2008-09-04 17:07:07 +0000</bug_when>
    <thetext>Are there are any plans to fix this, or should I just accept it as a feature?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>643631</commentid>
    <comment_count>12</comment_count>
    <who name="Ravi Vagadia">ravirdv</who>
    <bug_when>2008-09-04 17:30:05 +0000</bug_when>
    <thetext>this is temporary fix for this bug, its working for me. i&apos;m on arch linux (kde4 svn)

just add partition &amp; mountpoint in /etc/fstab 

for ntfs its like this
/dev/sdax /media/[foldername] ntfs-3g defaults  0 0

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>643650</commentid>
    <comment_count>13</comment_count>
    <who name="Fabian Lenz">lenz_fabian</who>
    <bug_when>2008-09-04 17:56:46 +0000</bug_when>
    <thetext>My workaround is to apply two patches to HAL (0.5.11), but it&apos;s not a *solution*, it&apos;s just a workaround.

--- hal-0.5.9/tools/hal-storage-mount.c.orig	2007-08-27 11:22:46.000000000 -0600
+++ hal-0.5.9/tools/hal-storage-mount.c	2008-01-13 08:22:48.000000000 -0700
@@ -765,13 +765,13 @@
 
 	if (pol_is_fixed) {
 		if (pol_change_uid) {
-			action = NULL; /* &quot;hal-storage-mount-fixed-extra-options&quot;; TODO: rethink */
+			action = &quot;hal-storage-mount-fixed-extra-options&quot;; 
 		} else {
 			action = &quot;org.freedesktop.hal.storage.mount-fixed&quot;;
 		}
 	} else {
 		if (pol_change_uid) {
-			action = NULL; /* &quot;hal-storage-mount-removable-extra-options&quot;; TODO: rethink &quot;extra-options&quot; */
+			action = &quot;hal-storage-mount-removable-extra-options&quot;;
 		} else {
 			action = &quot;org.freedesktop.hal.storage.mount-removable&quot;;
 		}



--- fdi/policy/10osvendor/20-storage-methods.fdi.orig	2007-10-28 19:40:22.000000000 +0000
+++ fdi/policy/10osvendor/20-storage-methods.fdi	2007-10-28 19:40:58.000000000 +0000
@@ -240,6 +240,8 @@
 	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;uid=&lt;/append&gt;
 	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;gid=&lt;/append&gt;
 	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;umask=&lt;/append&gt;
+	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;dmask=&lt;/append&gt;
+	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;fmask=&lt;/append&gt;
 	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;locale=&lt;/append&gt;
 	  &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;utf8&lt;/append&gt;
 	&lt;/match&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>669944</commentid>
    <comment_count>14</comment_count>
    <who name="Li Qi">freedom2lee</who>
    <bug_when>2008-11-24 05:11:17 +0000</bug_when>
    <thetext>This bug also takes place in KDE 4.1.3 of fedora 10 testing
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>670663</commentid>
    <comment_count>15</comment_count>
    <who name="Shaumyadeep Chaudhuri">shaumya</who>
    <bug_when>2008-11-25 17:30:20 +0000</bug_when>
    <thetext>This even happens with pen drives formatted with ntfs and using the ntfs-3g driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>672694</commentid>
    <comment_count>16</comment_count>
    <who name="Jaroslav Franek">jarin.franek</who>
    <bug_when>2008-11-29 19:44:49 +0000</bug_when>
    <thetext>I got no such problem on Fedora 9 with KDE up to 4.1.2 until upgrading recently to KDE 4.1.3. Since that time I am getting the same annoying messages as put in the very first comment. Mounting by hand works fine, but it is nuisance when you deal with several USB drives.

hal-0.5.11-2.fc9.i386
ntfs-3g-1.5012-4.fc9.i386
e2fsprogs-1.41.3-2.fc9.i386
KDE 4.1.3 on Fedora 9
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>696512</commentid>
    <comment_count>17</comment_count>
    <who name="Rahul Jain">rahul</who>
    <bug_when>2009-01-09 07:31:20 +0000</bug_when>
    <thetext>This problem still exists on KDE-4.1.85! Without wanting to sound rude, I would just like to know whether there is any plan to resolve this or will it remain a &quot;permanent feature&quot; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705833</commentid>
    <comment_count>18</comment_count>
    <who name="Francesco Di Muccio">francesco.dimuccio</who>
    <bug_when>2009-01-26 09:24:35 +0000</bug_when>
    <thetext>I&apos;m not sure that dolphin is the problem, I solved creating a new hal policy file in /usr/share/hal/fdi/policy/10osvendor and after an hald restart everything was fine, here is the content of 20-ntfs-config-write-policy.fdi

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;deviceinfo version=&quot;0.2&quot;&gt;
    &lt;device&gt;
        &lt;match key=&quot;volume.fstype&quot; string=&quot;ntfs&quot;&gt;
           &lt;match key=&quot;@block.storage_device:storage.hotpluggable&quot; bool=&quot;true&quot;&gt;
               &lt;merge key=&quot;volume.fstype&quot; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
               &lt;merge key=&quot;volume.policy.mount_filesystem&quot; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
               &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;locale=&lt;/append&gt;
           &lt;/match&gt;
        &lt;/match&gt;
    &lt;/device&gt;
&lt;/deviceinfo&gt;

My system is Gentoo 2.6.27-gentoo-r7:
hal-0.5.11-r6
ntfs3g-1.5130
kde 4.1.4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>711335</commentid>
    <comment_count>19</comment_count>
    <who name="Rahul Jain">rahul</who>
    <bug_when>2009-02-04 15:53:05 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; I&apos;m not sure that dolphin is the problem, I solved creating a new hal policy
&gt; file in /usr/share/hal/fdi/policy/10osvendor and after an hald restart
&gt; everything was fine, here is the content of 20-ntfs-config-write-policy.fdi
&gt; 
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&gt; &lt;deviceinfo version=&quot;0.2&quot;&gt;
&gt;     &lt;device&gt;
&gt;         &lt;match key=&quot;volume.fstype&quot; string=&quot;ntfs&quot;&gt;
&gt;            &lt;match key=&quot;@block.storage_device:storage.hotpluggable&quot; bool=&quot;true&quot;&gt;
&gt;                &lt;merge key=&quot;volume.fstype&quot; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
&gt;                &lt;merge key=&quot;volume.policy.mount_filesystem&quot;
&gt; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
&gt;                &lt;append key=&quot;volume.mount.valid_options&quot;
&gt; type=&quot;strlist&quot;&gt;locale=&lt;/append&gt;
&gt;            &lt;/match&gt;
&gt;         &lt;/match&gt;
&gt;     &lt;/device&gt;
&gt; &lt;/deviceinfo&gt;
&gt; 
&gt; My system is Gentoo 2.6.27-gentoo-r7:
&gt; hal-0.5.11-r6
&gt; ntfs3g-1.5130
&gt; kde 4.1.4
&gt; 

Thank you, that solves the issue! </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>711591</commentid>
    <comment_count>20</comment_count>
    <who name="Shaumyadeep Chaudhuri">shaumya</who>
    <bug_when>2009-02-04 22:31:16 +0000</bug_when>
    <thetext>Thanks,
This definitely solves the problem.
But that policy will work only for removable drives.
With a little modification as below it will work for all ntfs drives including hard disks.

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;deviceinfo version=&quot;0.2&quot;&gt;
    &lt;device&gt;
        &lt;match key=&quot;volume.fstype&quot; string=&quot;ntfs&quot;&gt;
	    &lt;merge key=&quot;volume.fstype&quot; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
    	    &lt;merge key=&quot;volume.policy.mount_filesystem&quot; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
	    &lt;append key=&quot;volume.mount.valid_options&quot; type=&quot;strlist&quot;&gt;locale=&lt;/append&gt;
        &lt;/match&gt;
    &lt;/device&gt;
&lt;/deviceinfo&gt;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>713848</commentid>
    <comment_count>21</comment_count>
      <attachid>31122</attachid>
    <who name="Laurens Vanhove">laurens</who>
    <bug_when>2009-02-08 14:48:01 +0000</bug_when>
    <thetext>Created attachment 31122
patch to remove the uid and utf8 options from ntfs mounting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>713854</commentid>
    <comment_count>22</comment_count>
    <who name="Laurens Vanhove">laurens</who>
    <bug_when>2009-02-08 14:57:01 +0000</bug_when>
    <thetext>This might be marked resolved but it doesn&apos;t work for me ...
The 20-ntfs-config-write-policy.fdi does not fix it here.

I&apos;m using hal 0.5.11 on gentoo and hal bugs out on the &quot;uid&quot; and &quot;utf8&quot; options. The (admittedly not very nice) patch I posted tells solid not to give these options to hal. This combined with an &quot;ln -s /sbin/mount.ntfs-3g /sbin/mount.ntfs&quot; does the job.


Is seems that gnome works like this already : they dont pass any uid or utf8 options and put ntfs-3g in fstype (which removes th need for a mount.ntfs symlink).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>719958</commentid>
    <comment_count>23</comment_count>
    <who name="Nick Shaforostoff">shafff</who>
    <bug_when>2009-02-20 22:45:09 +0000</bug_when>
    <thetext>so your patch assumes that when fstype==&quot;ntfs&quot;, it actually is ntfs-3g?

i see there is alternatives mechanism implemented (ctrl+F for &apos;alternativePreferred&apos;), so if I understand it right, then you (and distros) should set ntfs-3g as preferred somewhere in hal options.

P.S. I don&apos;t even have /sbin/mount.ntfs in my system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>719959</commentid>
    <comment_count>24</comment_count>
    <who name="Nick Shaforostoff">shafff</who>
    <bug_when>2009-02-20 22:56:23 +0000</bug_when>
    <thetext>@Shaumyadeep Chaudhuri: your last code snippet contains error: it lacks second &lt;/match&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>719963</commentid>
    <comment_count>25</comment_count>
    <who name="Shaumyadeep Chaudhuri">shaumya</who>
    <bug_when>2009-02-20 23:01:53 +0000</bug_when>
    <thetext>Sorry, actually a second &lt;/merge&gt; is missing.
I guess we can remove that too.
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;deviceinfo version=&quot;0.2&quot;&gt;
	&lt;device&gt;
		&lt;match key=&quot;volume.fstype&quot; string=&quot;ntfs&quot;&gt;
        	&lt;merge key=&quot;volume.fstype&quot; type=&quot;string&quot;&gt;ntfs-3g&lt;/merge&gt;
		&lt;/match&gt;
	&lt;/device&gt;
&lt;/deviceinfo&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>31122</attachid>
            <date>2009-02-08 14:48:01 +0000</date>
            <delta_ts>2009-02-08 14:48:01 +0000</delta_ts>
            <desc>patch to remove the uid and utf8 options from ntfs mounting</desc>
            <filename>ntfs3g.patch</filename>
            <type>text/plain</type>
            <size>711</size>
            <attacher name="Laurens Vanhove">laurens</attacher>
            
              <data encoding="base64">LS0tIGhhbHN0b3JhZ2VhY2Nlc3MuY3BwLW9yaWcJMjAwOS0wMi0wOCAxMzoxNDo1MS4wMDAwMDAw
MDAgKzAxMDAKKysrIGhhbHN0b3JhZ2VhY2Nlc3MuY3BwCTIwMDktMDItMDggMTQ6MjI6MTAuMDAw
MDAwMDAwICswMTAwCkBAIC0yOTQsNyArMjk0LDcgQEAKICNlbHNlCiAgICAgUVN0cmluZyB1aWQ9
InVpZD0iOwogI2VuZGlmCi0gICAgaWYgKGhhbE9wdGlvbnMuY29udGFpbnModWlkKSkgeworICAg
IGlmIChoYWxPcHRpb25zLmNvbnRhaW5zKHVpZCkgJiYgZnN0eXBlIT0ibnRmcyIpIHsKICAgICAg
ICAgb3B0aW9ucyA8PCB1aWQrUVN0cmluZzo6bnVtYmVyKDo6Z2V0dWlkKCkpOwogICAgIH0KIApA
QCAtMzA5LDcgKzMwOSw3IEBACiAgICAgICAgICAgICBvcHRpb25zIDw8ICItQz0iK1FTdHJpbmco
bmxfbGFuZ2luZm8oQ09ERVNFVCkpOwogICAgIH0KICNlbHNlCi0gICAgaWYgKGZzdHlwZT09InZm
YXQiIHx8IGZzdHlwZT09Im50ZnMiIHx8IGZzdHlwZT09Imlzbzk2NjAiIHx8IGZzdHlwZT09InVk
ZiIgKSB7CisgICAgaWYgKGZzdHlwZT09InZmYXQiIHx8IGZzdHlwZT09Imlzbzk2NjAiIHx8IGZz
dHlwZT09InVkZiIgKSB7CiAgICAgICAgIGlmIChoYWxPcHRpb25zLmNvbnRhaW5zKCJ1dGY4Iikp
CiAgICAgICAgICAgICBvcHRpb25zPDwidXRmOCI7CiAgICAgICAgIGVsc2UgaWYgKGhhbE9wdGlv
bnMuY29udGFpbnMoImlvY2hhcnNldD0iKSkK
</data>

          </attachment>
      

    </bug>

</bugzilla>