LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem with HAL automounting SD card (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-hal-automounting-sd-card-782990/)

samsom 01-18-2010 09:57 AM

Problem with HAL automounting SD card
 
Hi
I have been trying to mount my SD card which has got 2 partitions; an Ext3 one and a FAT32 one.
I have created 2 files for each of the partitions in /etc/hal/fdi/policy/ as per the wiki on HAL.
As soon as I mount my SD card from my phone, the Ext3 partition shows up immediately in Dolphin( File manager in KDE). But the Fat32 one does not. HAL has created a folder for my Fat32 in /media. And when I open the folder, then it shows up in Dolphin And I can copy stuff across to it via Dolphin.
The problem is that when I use the CLI to copy stuff across, I get the message that the partition is not a directory.
Not sure what I have done wrong.

Here is a copy of the the policy file for the Fat32 partition

Code:

[sam@sony ~]$ cat /etc/hal/fdi/policy/20-Hero_SD_Fat32.fdi
<?xml version="1.0" encoding="UTF-8"?>
 <deviceinfo version="0.2">
    <device>
        <match key="volume.uuid" string="4B17-EF32">
            <merge key="volume.label" type="string">Hero_SD_FAT32</merge>
        </match>
    </device>
 </deviceinfo>

Any suggestions, please?
Thanks
Samsom

tredegar 01-18-2010 12:08 PM

I have never had to do anything with HAL. I just use /etc/fstab and make entries for the partitions so they are mounted to a suitable mountpoint either by LABEL or UUID when they are detected.

See here: http://wiki.linuxquestions.org/wiki/Fstab

(Maybe best to undo your HAL modifications if you are going to do this).

Please come back here if you have problems, or just post "This ..... worked".

Have fun.


All times are GMT -5. The time now is 10:34 AM.