* [gentoo-user] mediamanager tries to open wrong path
@ 2007-01-31 20:31 Gerhard Hoogterp
2007-01-31 21:09 ` Neil Bothwick
0 siblings, 1 reply; 9+ messages in thread
From: Gerhard Hoogterp @ 2007-01-31 20:31 UTC (permalink / raw
To: gentoo-user
Hi,
I try to install udev/hal/pmount in such a way that my usb devices are
automounted. But not with a changable name in the media folder, but with a
fixed name like /mnt/camera (or /media/camera.. whatever. As long as it's the
same every time..)
At this moment most things work, but when I add the mountpoints to fstab
things go wrong. kde pops up a window and an error "permission denied". The
later is understandable as it seems to try to open a mount in the media dir
which doesn't exists instead of the mount point as given in the fstab.
Regretfully the /mnt/camera isn't mounted either.
So adding a line to the fstab file just screws up the system as it seems.
Removing it leaves me with changable names in the media folder (/media/disk,
media/disk-1, depending on what's happening..
So I see two sollutions:
- Or the mediamanager whould open the path as givien in the fstab (but where
do I tell it to do so?)
- Or I should be able to give the pmount a label (the second parameter) so it
creates a /media/<label>. But again.. where can I do this.
The main reason that I want a fixed name is for programs like digikam which
expects such a path for importing images. Besides, on of the howtos
suggested that using the fstab should work. So why doesn't it..
Anybody a suggestion?
--
Ithaka photography, http://ithaka.mine.nu/
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path
2007-01-31 20:31 [gentoo-user] mediamanager tries to open wrong path Gerhard Hoogterp
@ 2007-01-31 21:09 ` Neil Bothwick
2007-01-31 21:21 ` Gerhard Hoogterp
0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-01-31 21:09 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
On Wed, 31 Jan 2007 21:31:03 +0100, Gerhard Hoogterp wrote:
> So adding a line to the fstab file just screws up the system as it
> seems. Removing it leaves me with changable names in the media folder
> (/media/disk, media/disk-1, depending on what's happening..
Adding a line in fstab overrides the naming that pmount would otherwise
use, but you have to add "users" to the options to allow it to be mounted
as a normal user. Generally, fstab and HAL-driven automounting don't play
well together.
You need to set up udev rules to have persistent naming for your devices,
then KDE will use this to name the mount point. See
http://www.reactivated.net/udevrules.php
--
Neil Bothwick
Quote me as saying I was mis-quoted.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path
2007-01-31 21:09 ` Neil Bothwick
@ 2007-01-31 21:21 ` Gerhard Hoogterp
2007-01-31 21:42 ` Neil Bothwick
2007-02-01 0:35 ` [gentoo-user] mediamanager tries to open wrong path Dale
0 siblings, 2 replies; 9+ messages in thread
From: Gerhard Hoogterp @ 2007-01-31 21:21 UTC (permalink / raw
To: gentoo-user
On Wednesday 31 January 2007 22:09, Neil Bothwick wrote:
> On Wed, 31 Jan 2007 21:31:03 +0100, Gerhard Hoogterp wrote:
> > So adding a line to the fstab file just screws up the system as it
> > seems. Removing it leaves me with changable names in the media folder
> > (/media/disk, media/disk-1, depending on what's happening..
>
> Adding a line in fstab overrides the naming that pmount would otherwise
> use, but you have to add "users" to the options to allow it to be mounted
> as a normal user. Generally, fstab and HAL-driven automounting don't play
> well together.
Apparently.. the "users" flag was already added (noauto, user) so that's not
the problem..
/dev/minolta /mnt/camera vfat noauto,user 0 0
to be precise.
> You need to set up udev rules to have persistent naming for your devices,
> then KDE will use this to name the mount point. See
> http://www.reactivated.net/udevrules.php
Done too. udev creates a nice /dev/minolta which I would like automounted
to /mnt/camera (or even /media/camera)
If only pmount.allow would allow for a <device> <label to use>. But as it
seems that would make life to simple eg. less interesting..;)
Thanks,
Gerhard
--
Ithaka photography, http://ithaka.mine.nu/
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path
2007-01-31 21:21 ` Gerhard Hoogterp
@ 2007-01-31 21:42 ` Neil Bothwick
2007-01-31 21:54 ` Gerhard Hoogterp
2007-02-01 0:35 ` [gentoo-user] mediamanager tries to open wrong path Dale
1 sibling, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-01-31 21:42 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]
On Wed, 31 Jan 2007 22:21:51 +0100, Gerhard Hoogterp wrote:
> > You need to set up udev rules to have persistent naming for your
> > devices, then KDE will use this to name the mount point. See
> > http://www.reactivated.net/udevrules.php
>
> Done too. udev creates a nice /dev/minolta which I would like
> automounted to /mnt/camera (or even /media/camera)
>
> If only pmount.allow would allow for a <device> <label to use>. But as
> it seems that would make life to simple eg. less interesting..;)
pmount.allow only specifies which devices may be automounted. When
mounting, pmount gets the name from either the disk's volume name or the
device. Does your camera use a removable memory card? If so, try putting
it in a card reader and setting the volume name with mkdosfs or mtools.
My camera formats the card with a volume name of CANON_EOS, so it is
mounted at /media/CANON_EOS.
--
Neil Bothwick
Q How many screws are there in a lesbians coffin?
A None. It's all tongue and groove.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path
2007-01-31 21:42 ` Neil Bothwick
@ 2007-01-31 21:54 ` Gerhard Hoogterp
2007-01-31 23:44 ` Neil Bothwick
0 siblings, 1 reply; 9+ messages in thread
From: Gerhard Hoogterp @ 2007-01-31 21:54 UTC (permalink / raw
To: gentoo-user
> pmount.allow only specifies which devices may be automounted.
> When mounting, pmount gets the name from either the disk's volume name or
> the
> device. Does your camera use a removable memory card? If so, try putting
> it in a card reader and setting the volume name with mkdosfs or mtools.
> My camera formats the card with a volume name of CANON_EOS, so it is
> mounted at /media/CANON_EOS.
Well it does, but it does feel a bit of an ugly hack to have to label all my
cards "camera" just to get hal/kded to behave. Besides, the card isn't the
camera.. so even on a logical level it's wacky..
Anyhow, guess it's the best for now.
Thanks!
Gerhard
--
Ithaka photography, http://ithaka.mine.nu/
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path
2007-01-31 21:54 ` Gerhard Hoogterp
@ 2007-01-31 23:44 ` Neil Bothwick
2007-02-01 17:27 ` [gentoo-user] mediamanager tries to open wrong path (SOLVED) Gerhard Hoogterp
0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2007-01-31 23:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]
On Wed, 31 Jan 2007 22:54:39 +0100, Gerhard Hoogterp wrote:
> Does your camera use a removable memory card? If so, try putting
> > it in a card reader and setting the volume name with mkdosfs or
> > mtools. My camera formats the card with a volume name of CANON_EOS,
> > so it is mounted at /media/CANON_EOS.
>
> Well it does, but it does feel a bit of an ugly hack to have to label
> all my cards "camera" just to get hal/kded to behave.
There is a way round this. It is possible, somewhere in the config of
pmount/hal, to have devices mounted according to the /dev name only. I
can't remember where this is, but Google and/or grep should find it.
Personally, I prefer to use the volume name, because I may be using the
card in the camera or a card reader, and the dev name varies according to
which I use, whereas the volume name stays the same. It makes dealing
with multiple mounted cards much easier.
> Besides, the card
> isn't the camera.. so even on a logical level it's wacky..
If your camera mounts as USB-storage, the camera is simply acting as an
expensive card reader.
--
Neil Bothwick
"Bad dog! Leave that wire alone.....click.....###@*##....NO TERRIER
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path
2007-01-31 21:21 ` Gerhard Hoogterp
2007-01-31 21:42 ` Neil Bothwick
@ 2007-02-01 0:35 ` Dale
1 sibling, 0 replies; 9+ messages in thread
From: Dale @ 2007-02-01 0:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 440 bytes --]
Gerhard Hoogterp wrote:
>
> Apparently.. the "users" flag was already added (noauto, user) so that's not
> the problem..
>
> /dev/minolta /mnt/camera vfat noauto,user 0 0
>
> to be precise.
>
I don't think it would matter in this case but for future reference,
there is a difference between user and users. I learned that the hard
way once.
>
> Thanks,
> Gerhard
>
>
Dale
:-) :-) :-) :-)
--
www.myspace.com/dalek1967
[-- Attachment #2: Type: text/html, Size: 1072 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path (SOLVED)
2007-01-31 23:44 ` Neil Bothwick
@ 2007-02-01 17:27 ` Gerhard Hoogterp
2007-02-01 17:49 ` Neil Bothwick
0 siblings, 1 reply; 9+ messages in thread
From: Gerhard Hoogterp @ 2007-02-01 17:27 UTC (permalink / raw
To: gentoo-user
On Thursday 01 February 2007 00:44, Neil Bothwick wrote:
> There is a way round this. It is possible, somewhere in the config of
> pmount/hal, to have devices mounted according to the /dev name only. I
> can't remember where this is, but Google and/or grep should find it.
After some searching around I found the HAL 0.4.0 specs
(http://people.redhat.com/davidz/hal-spec/hal-spec.html) offering all the
info needed to write my own policy:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<match key="info.parent"
string="/org/freedesktop/Hal/devices/storage_serial_KM_DYNAX_7D">
<merge key="volume.policy.desired_mount_point"
type="string">camera</merge>
</match>
</match>
</match>
</device>
</deviceinfo>
The line that makes it work for me is the <match key="info.parent" .. > which
is true when my camera (a dynax 7D) tries to create an mount point. The
result is a /media/camera which I can use in digikam to import photo's..
> > Besides, the card
> > isn't the camera.. so even on a logical level it's wacky..
>
> If your camera mounts as USB-storage, the camera is simply acting as an
> expensive card reader.
True, but the card is also not the cardreader..;-) Anyhow, for me this works
as it looks at the camera and not at the card..
Thanks for thinking along!
Gerhard
--
Ithaka photography, http://ithaka.mine.nu/
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] mediamanager tries to open wrong path (SOLVED)
2007-02-01 17:27 ` [gentoo-user] mediamanager tries to open wrong path (SOLVED) Gerhard Hoogterp
@ 2007-02-01 17:49 ` Neil Bothwick
0 siblings, 0 replies; 9+ messages in thread
From: Neil Bothwick @ 2007-02-01 17:49 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
On Thu, 1 Feb 2007 18:27:40 +0100, Gerhard Hoogterp wrote:
> > If your camera mounts as USB-storage, the camera is simply acting as
> > an expensive card reader.
>
> True, but the card is also not the cardreader..;-) Anyhow, for me this
> works as it looks at the camera and not at the card..
True, but as I mentioned elsewhere, I prefer that. The source for Digikam
is the same whether I leave the card in the camera or use a reader.But
it's good to know for sure that you can do it the way you like too.
--
Neil Bothwick
Disinformation is not as good as datinformation.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-02-01 17:54 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-31 20:31 [gentoo-user] mediamanager tries to open wrong path Gerhard Hoogterp
2007-01-31 21:09 ` Neil Bothwick
2007-01-31 21:21 ` Gerhard Hoogterp
2007-01-31 21:42 ` Neil Bothwick
2007-01-31 21:54 ` Gerhard Hoogterp
2007-01-31 23:44 ` Neil Bothwick
2007-02-01 17:27 ` [gentoo-user] mediamanager tries to open wrong path (SOLVED) Gerhard Hoogterp
2007-02-01 17:49 ` Neil Bothwick
2007-02-01 0:35 ` [gentoo-user] mediamanager tries to open wrong path Dale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox