You are not logged in.

#1 2009-01-07 08:08:55

filter_ua
Member
Registered: 2006-01-22
Posts: 12

[Solved] Automount permissions problems with USB HDD

Hi!

I have a problem with automounting.
When I plugg in my external USB drive, it is mounted in /media/ but foder owner is root and folder permissions are 500. Even though the log says it was mounted on behalf of my user.

Jan  7 08:58:29 tokio sd 2:0:0:0: [sdb] Attached SCSI disk
Jan  7 08:58:29 tokio sd 2:0:0:0: Attached scsi generic sg2 type 0
Jan  7 08:58:29 tokio NTFS driver 2.1.29 [Flags: R/W MODULE].
Jan  7 08:58:29 tokio NTFS volume version 3.1.
Jan  7 08:58:29 tokio hald: mounted /dev/sdb1 on behalf of uid 1000

By the way, if I plugg in usb flash drive, everything is correct - the owner is my user and the permissions are 755.

The user is a member of storage group.

Any ideas what is wrong?

Thanks

Last edited by filter_ua (2009-01-07 14:57:08)

Offline

#2 2009-01-07 08:26:24

filter_ua
Member
Registered: 2006-01-22
Posts: 12

Re: [Solved] Automount permissions problems with USB HDD

Solved by adding hal ntfs policy. See http://wiki.archlinux.org/index.php/HAL#NTFS

Add the following to /etc/hal/fdi/policy/20-ntfs-config-write-policy.fdi (create the file if it doesn't exist)

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

Offline

Board footer

Powered by FluxBB