LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-10-2008, 09:41 AM   #1
chochem
LQ Newbie
 
Registered: May 2008
Posts: 29

Rep: Reputation: 15
HAL device policy troubleshooting


I'm trying to get my Sandisk Cruzer Micro drive to mount to /media/CruzerMicro, using HAL policies. The drive is formatted regularly, so just using labels doesn't work (besides, I'm trying to learn). Using "hal-device | grep -i cruzer" I got
Code:
storage.model = 'Cruzer Micro'  (string)
Here's my policy (/usr/share/hal/fdi/policy/10osvendor/01-cruzer-micro.fdi):
Code:
<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2">
<device>
	<match key="@block.storage_device:storage.model" string="Cruzer Micro">
		<merge key="volume.policy.desired_mount_point" type="string">CruzerMicro</merge>
		<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
	</match>
</device>
</deviceinfo>
The general drive-hotplug-policy seems to be /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
- so I figured that whichever comes first takes precedence (?) Therefore "01-cruzer-micro.fdi".

At any rate, it doesn't seem to do anything. I've tried restarting hal before inserting the drive but it still mounts to /media/disk when mounted in thunar.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL device scan order jazzor Linux - Software 0 12-27-2007 10:05 AM
HAL wont let me mount usb device in Slackware 12 herbietheferret Linux - Hardware 3 07-27-2007 08:21 AM
How to load customized HAL policy? shreks Red Hat 4 07-11-2007 02:05 AM
hal "volume.policy.mount_option.sync" ignored in opensuse 10.2 ? rtspitz Linux - Software 2 07-08-2007 05:46 PM
Unable to unmount HAL-mounted device dunric Slackware 4 08-24-2006 08:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration