Gentoo Archives: gentoo-user

From: Gerhard Hoogterp <gerhard@×××××××××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mediamanager tries to open wrong path (SOLVED)
Date: Thu, 01 Feb 2007 17:31:42
Message-Id: 200702011827.40948@frappe.xs4all.nl
In Reply to: Re: [gentoo-user] mediamanager tries to open wrong path by Neil Bothwick
1 On Thursday 01 February 2007 00:44, Neil Bothwick wrote:
2
3 > There is a way round this. It is possible, somewhere in the config of
4 > pmount/hal, to have devices mounted according to the /dev name only. I
5 > can't remember where this is, but Google and/or grep should find it.
6
7 After some searching around I found the HAL 0.4.0 specs
8 (http://people.redhat.com/davidz/hal-spec/hal-spec.html) offering all the
9 info needed to write my own policy:
10
11 <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
12
13 <deviceinfo version="0.2">
14 <device>
15 <match key="block.is_volume" bool="true">
16 <match key="volume.fsusage" string="filesystem">
17 <match key="info.parent"
18 string="/org/freedesktop/Hal/devices/storage_serial_KM_DYNAX_7D">
19 <merge key="volume.policy.desired_mount_point"
20 type="string">camera</merge>
21 </match>
22 </match>
23 </match>
24 </device>
25 </deviceinfo>
26
27 The line that makes it work for me is the <match key="info.parent" .. > which
28 is true when my camera (a dynax 7D) tries to create an mount point. The
29 result is a /media/camera which I can use in digikam to import photo's..
30
31 > > Besides, the card
32 > > isn't the camera.. so even on a logical level it's wacky..
33 >
34 > If your camera mounts as USB-storage, the camera is simply acting as an
35 > expensive card reader.
36
37 True, but the card is also not the cardreader..;-) Anyhow, for me this works
38 as it looks at the camera and not at the card..
39
40 Thanks for thinking along!
41 Gerhard
42
43
44 --
45 Ithaka photography, http://ithaka.mine.nu/
46 --
47 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] mediamanager tries to open wrong path (SOLVED) Neil Bothwick <neil@××××××××××.uk>