LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack 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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL device scan order jazzor Linux - Software 0 12-28-2007 06:44 PM
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


All times are GMT -5. The time now is 11:16 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration