You are not logged in.

#1 2009-07-08 11:55:36

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Mounting NTFS fail

Hi!

I'm kind of new to arch linux and i was wondering if you could help me with a problem of mine.
I just updated arch linux, and i'm running it on a 65bits system.
Whenever I trie to mount my external disk (that is in NTFS) i get the following error:
"org.freedesktop.hal.storage.mount-removable no <-- (action, result)"

I know that here is explained how to remove that error. However, i followed all the rules that are said there and I still can't mount my external disk.
I removed all the lines from my fstab file.
And here is my hal.conf file:

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only root or user hal can own the HAL service -->
  <policy user="hal">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
  </policy>

 <policy group="power">
   <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
 </policy>

 <policy group="storage">
   <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  <policy context="default">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Properties" />
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Manager"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.DockStation"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
    <allow send_destination="org.freedesktop.Hal"
  <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Leds"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LightSensor"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>
  </policy>
</busconfig>

I also introduced my username in the power, storage and optical groups.
I don't have the /media/nameofthedisk directory created either.
I restarted my linux, and restart hal, and dbus (just to make sure).

Oh yes, and in my rc.conf file I have my daemons correctly puted:

DAEMONS=(syslog-ng hal @slim alsa network netfs networkmanager sshd crond)

I don't have dbus there 'cause hal already starts it...

Still, after all this I still can't mount my external disk...
I searched all foruns and wikis and i even googled it, but everyone just does this and there fine... :S

If anyone could help me... I would apreciate it very much!

thanks
Ni

P.S.: sorry for the long topic... hope its in the right place :S


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#2 2009-07-08 12:09:07

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: Mounting NTFS fail

Did you read this post, maybe it helps:
http://bbs.archlinux.org/viewtopic.php?id=66402

Offline

#3 2009-07-08 13:33:46

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

Thanks for the quick answer.

Yes, I already tried the <config version="0.1"> thing...
Didn't work, actually it did worse... When I restarted arch I lost my keyboard in the login splashscreen.... :S
So i had to enter with command line for root to remove the <config version="0.1">, and to be able to login into arch...

I already tried everything that is said in this foruns, and still was able to solve my problem... Thats why I created this new topic... :S


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#4 2009-07-08 13:45:09

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Mounting NTFS fail

Did you change /etc/PolicyKit/PolicyKit.conf as mentioned in the linked thread? I'm asking, because you only mentioned hal.conf in your post. Can you post your PolicyKit.conf ?

Offline

#5 2009-07-08 13:49:08

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

yes, i did change the policykit.conf...

Heres mine as it is at this moment:

<?xml version="1.0" encoding="UTF-8"?&gt <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">

<match action="org.freedesktop.hal.storage.eject-removable">
<match user="ni">
<return result="yes" />
</match>
</match>

<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="hal-storage-mount-fixed-extra-options">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="hal-storage-mount-removable-extra-options">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="hal-storage-mount-removable-options">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="org.freedesktop.hal.power-management.shutdown">
<match user="ni"
<return result="yes"/>
</match>
</match>

<match action="org.freedesktop.hal.power-management.reboot">
<match user="ni">
<return result="yes"/>
</match>
</match>

</config>

The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#6 2009-07-08 14:35:15

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Mounting NTFS fail

Can you try to add

<match action="org.freedesktop.hal.storage.mount-removable">
  <match user="ni">
    <return result="yes"/>
  </match>
</match>

And add the missing > after match user="ni" in <match action="org.freedesktop.hal.power-management.shutdown">

Offline

#7 2009-07-08 14:46:29

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

Ok, did what you asked, and rebooted the system and still wasn't able to mount the external disk...
So now, my policyKit looks like this:

<?xml version="1.0" encoding="UTF-8"?&gt <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">

<match action="org.freedesktop.hal.storage.eject-removable">
<match user="ni">
<return result="yes" />
</match>
</match>

<match action="org.freedesktop.hal.storage.mount-fixed">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="hal-storage-mount-fixed-extra-options">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="hal-storage-mount-removable-extra-options">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="hal-storage-mount-removable-options">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="org.freedesktop.hal.storage.mount-removable">
  <match user="ni">
    <return result="yes"/>
  </match>
</match>

<match action="org.freedesktop.hal.power-management.shutdown">
<match user="ni">
<return result="yes"/>
</match>
</match>

<match action="org.freedesktop.hal.power-management.reboot">
<match user="ni">
<return result="yes"/>
</match>
</match>

</config>

Oh, i should probably mentioned this earlier, but I get the same error when i try to reboot or shutdown the system.
What I mean is, everytime I try to shutdown or reboot the system I get the
"org.freedesktop.hal.power-management.shutdown no <-- (action, result)"
error... But I think it comes from the same problem so... :S


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#8 2009-07-08 14:54:40

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

oh, and if wondering about my /usr/share/PolicyKit/policy/org.freedesktop.hal.storage.policy file, I have it like it was said in the other thread...
like this:

(...)
  <action id="org.freedesktop.hal.storage.mount-removable">
    <description>Mount file systems from removable drives.</description>
    <message>System policy prevents mounting removable media</message>
    <defaults>
      <allow_inactive>yes</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
(...)

If you want to see the entire file just say so and I'll put it here.


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#9 2009-07-08 17:59:00

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Mounting NTFS fail

Could you able to mount it as root?. As given in the hal wiki create a .fdi rule for the ntfs partition. For the most check ntfs-3g is installed correctly.

Offline

#10 2009-07-08 22:17:38

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

Re: Mounting NTFS fail

you mount it like

sudo mount -t ntfs /dev/sd? /mnt

if you made this you are trying to mounting it with the ntfs version of the linux kernel
you need to install ntfs-3g, is in the extra repository i think
an later mount like before just

sudo mount -t ntfs-3g /dev/sd? /mnt

i hope that works ( for me do it )


Miscusi for my bad english

Offline

#11 2009-07-09 09:22:15

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

Yes, I have ntfs-3g installed correctly. And if I try to mount it as root I can do it.
I just wanted to be able to mounted as a normal user, like i used to mount it before... And as a dinamic mount, with hal...
But that just doesn't seem to work though... :S


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#12 2009-07-09 14:51:45

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Mounting NTFS fail

you can try pmount to mount the ntfs drive. (have you added the storage to your user groups?)

create a file 20-ntfs-config-write-policy.fdi in /etc/hal/fdi/policy with the following code

<?xml version="1.0" encoding="UTF-8"?> 

<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>

restart  hal  and it should work (to read and write ntfs partition)

Last edited by kgas (2009-07-09 14:53:12)

Offline

#13 2009-07-19 12:16:04

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

Sorry for the late response... I've been out for a few days....
I already tried the 20-ntfs-config-write-policy.fdi file, but it doesn't work either...
And yes I'm in all the groups necessairy... I'm in the storage, and in the optical:

[ni@pixie ~]$ groups
disk wheel games kvm dbus network video audio optical storage power users

I also tried to do the "allow everything" that is writen on this page, but still nothing...
I'm starting to go crazy...

The worst part is I'm always getting that error whenever I shutdown or try to reboot linux... I always have to enter root to reboot or shutdown the arch... Its really anoying... And I'm not understading what I did wrong...


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#14 2009-07-19 13:34:26

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Mounting NTFS fail

From the groups i could not see the user account name (ni ).  What is your account name? in the groups it should be displayed. If you can access the partition as root then if you set up the user account with due rights there should not be any problem to access the drives.

Offline

#15 2009-07-19 14:14:47

Ni
Member
From: Porto, Portugal
Registered: 2009-07-08
Posts: 8

Re: Mounting NTFS fail

Ni is my username... And when in user mode I type groups on the shell, it comes out the result above. So my user ni is in storage, hal and optical groups...
And I don't know where more groups I should put the user in... Or how to change the user rights...

Last edited by Ni (2009-07-19 14:15:12)


The last thing I want to do is hurt you. But it's still on the list.
----------------------------------------------------------------------------------------
Smile. It keeps people wondering what you're thinking...

Offline

#16 2009-07-19 16:43:47

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Mounting NTFS fail

The other way is to create a new user with the command given in the http://wiki.archlinux.org/index.php/Beg … tup_groups and see your things are working as expected.

Last edited by kgas (2009-07-19 16:45:59)

Offline

Board footer

Powered by FluxBB