You are not logged in.

#1 2008-11-01 17:03:14

_saiko
Member
From: systemreich
Registered: 2007-08-06
Posts: 91
Website

NTFS-3g locale (UTF8) with hal and automounting

#!/bin/bash
/bin/ntfs-3g $1 $2 -o locale=en_GB.UTF-8

this fix worked for me SO FAR
recently i noticed that it doesn't work anymore
when i have that fix applied and i plug in the drive, there appears an error "unknown problem" and the drive has to be mounted manually
i'm using XFCE
why isn't that HAL rule parsing the locale option?? that problem's been present for AGES!


cat.7 - where crosstalk is not an issue anymore :'(

Offline

#2 2008-11-03 18:21:43

creole
Member
From: New York
Registered: 2008-05-28
Posts: 7

Re: NTFS-3g locale (UTF8) with hal and automounting

try install autofs

Offline

#3 2008-12-01 19:06:03

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: NTFS-3g locale (UTF8) with hal and automounting

xorg 7.4, xorg-server 1.5.3, en_US.UTF-8 locale, KDEmod 4.1.2 (the latter looks like irrelevant, at last smile )

(1) Create file /etc/hal/fdi/policy/10-ntfs-policy.fdi:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<!-- mount ntfs volume with the ntfs-3g driver to enable write support -->
    <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>
            </match>
        </match>
    </device>
</deviceinfo>

(2) Modify it, if necessary (what for smile ?).
(3) # /etc/rc.d/hal restart
(4) Use it!

The original how-to is here; tampering with /sbin/mount.ntfs-3g seems no longer necessary.

The automounting seems every way correct, including non-english characters in file names. Those file names on automounted NTFS partitions used to be my pet peeve for as long as I use Linux smile .

Last edited by Llama (2008-12-01 19:10:00)

Offline

Board footer

Powered by FluxBB