HAL

Anything that pertains to Portage

Moderator: Moderators

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8091
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: HAL

Post by Fitzcarraldo » Fri Dec 21, 2007 6:18

I've been doing some research over on the SUSE and Fedora forums and have found a way of getting at least FAT32 pen drives to automount with hal-0.5.10 installed. I'm not sure if the patch below is fully secure: some forums show an additional line testing for a userid, but the patch at least allows FAT32 pen drives to be mounted.

Do the following as root in a Terminal window:
1. cd /etc/PolicyKit
2. cp PolicyKit.conf PolicyKit.conf.bak
3. gedit PolicyKit.conf
4. Change the following:

Code: Select all

<config version="0.1">
</config>

to the following:

Code: Select all

<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes" />
</match>
</config>

5. Reboot.

I've still had no luck so far with my NTFS USB HDDs and my desktop links to my FAT32 Windows XP partitions, though.

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8091
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: HAL

Post by Fitzcarraldo » Fri Dec 21, 2007 6:31

Regarding the external NTFS HDDs, I just found the following on the Arch Linux forums:

http://bbs.archlinux.org/viewtopic.php?id=39589

As you will see, the problem is hard coded in the hal-0.5.10 source code. I'm not going to start trying to recompile C code, so I'll just have to mount the external NTFS HDDs and FAT32 Windows partitions manually until someone fixes HAL. :(

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8091
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: HAL

Post by Fitzcarraldo » Fri Dec 21, 2007 7:08

Found a way of patching hal-0.5.10 to give back the ability to mount a Windows XP FAT32 partition by double-clicking on a Desktop Config File or on the partition icon in a Konqueror window. Change the file /etc/PolicyKit/PolicyKit.conf to contain:

Code: Select all

<config version="0.1">
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes" />
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes" />
</match>
</config>


This just leaves me with the problem of neither being able to mount nor automount my external NTFS USB HDDs. Two down, one to go.

joost
Sagely Hen
Posts: 2669
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: HAL

Post by joost » Fri Dec 21, 2007 8:20


wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Re: HAL

Post by wolfden » Fri Dec 21, 2007 8:34

Like I said, just unmask it because portage says it's masked, so unmask, do upgrade, than downgrade hal to version to the one you had. That would just be simply emerge previous hal and update the config files.

The message tells u to mask it till the mounting issues are fixed, so yea, mounting is broke. It's been like that for a month now. It's no biggie to downgrade hal and hal-info each time.

Post Reply