You are not logged in.

#26 2008-06-03 07:01:39

cautha
Member
From: Kingston, Ontario
Registered: 2008-06-02
Posts: 115
Website

Re: External USB HD does not work with HAL:

Followed the instructions in the Wiki (link in post above):

Unfortunately,

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

was already there in /etc/hal/fdi/policy/preferences.fdi;

after that, I followed the "Locale issues" hack (same link) verbatim using locale=en_CA.UTF-8 as my locale;

then (as root) ln -s /sbin/mount.ntfs-3g /sbin/mount.ntfs to use ntfs-3g for everything.

Now, whenever I click on an NTFS drive in Konqueror, I get the cryptic message, "Connection is closed".

Am I the only one with this problem? Could it be fixed by something simple that I'm missing? I'm counting on you guys smile

PLEASE!

Harry

EDIT: Believe it or not, a reboot fixed all of these issues! Just when I thought it would never end... tongue

I will be watching this topic, in case someone would like me to post my PKGBUILD and/or patched source archive, but, in all honesty, it's more satisfying to do it yourself!

At the same time, I can't help but feel I was on my own for this one. But if I can help someone else to boot into Windows less often, that's good enough for me.

Last edited by cautha (2008-06-03 09:18:35)

Offline

#27 2008-08-04 13:16:06

avelino
Member
Registered: 2008-04-08
Posts: 6

Re: External USB HD does not work with HAL:

I change de source code of hal-storage-mount.c:

        /* map volume_id fs type ntfs-3g to ntfs */
        if(! strcmp(fstype, "ntfs-3g"))
                return "ntfs";

Here, the complete code source

/* maps volume_id fs types to the appropriate -t mount option */
static const char *
map_fstype (const char *fstype)
{
#ifdef __FreeBSD__
    if (! strcmp (fstype, "iso9660"))
        return "cd9660";
    else if (! strcmp (fstype, "ext2"))
        return "ext2fs";
    else if (! strcmp (fstype, "ext3"))
        return "ext2fs";
    else if (! strcmp (fstype, "vfat"))
        return "msdosfs";
#elif sun
    if (! strcmp (fstype, "iso9660"))
        return "hsfs";
    else if (! strcmp (fstype, "vfat"))
        return "pcfs";
#endif

        /* map volume_id fs type ntfs-3g to ntfs */
        if(! strcmp(fstype, "ntfs-3g"))
                return "ntfs";

    return fstype;
}

Offline

Board footer

Powered by FluxBB