* udev fixing mount point
@ 2011-02-26 16:36 Stéphane Guedon
2011-02-26 18:53 ` David Zeuthen
2011-02-26 18:56 ` Stéphane Guedon
0 siblings, 2 replies; 3+ messages in thread
From: Stéphane Guedon @ 2011-02-26 16:36 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 1559 bytes --]
Hello
I write to you because I don't find any solution or any manuals.
I would like to fix the mount point of several usb devices. This is a classic
queries, many people around the world using Linux have the same aim.
Presently, I have only udev and udisks on that part of the process. Hal isn't
running anymore, but automounting still works.
I have read many udev rules over the internet, and I have writen at least two
that work...
But after working, unmounting in Kde isn't working anymore, whereas the basic
settings (plugging usb, let kde/udev/system/whatever mount, work on doc, then
unmount with the appropriate button in kde...) work good, but the mount point
is ugly and unremindable.
The only thing I want is replace the mount point (aka '/media/6566-3267') by
the one I want ( '/media/NeoParker' or '/media/htc' for an other one).
So, is there a rule to put like :
ENV{ID_FS_UUID}=="6566-3267", ENV{MOUNTPOINT}="NeoParker" ?
And it's all, all the rest of the process get its life (creating mount point,
mount, ... , unmount, rmdir of the mountpoint) and I haven't any thing to say
on it.
The fact is that just a simple rule like the one I have just said would be so
easy for every user ... But I don't find any, so, I ask you.
Sorry if I disturb you.
Thank you for your help.
--
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: udev fixing mount point
2011-02-26 16:36 udev fixing mount point Stéphane Guedon
@ 2011-02-26 18:53 ` David Zeuthen
2011-02-26 18:56 ` Stéphane Guedon
1 sibling, 0 replies; 3+ messages in thread
From: David Zeuthen @ 2011-02-26 18:53 UTC (permalink / raw)
To: linux-hotplug
Hi,
On Sat, Feb 26, 2011 at 11:36 AM, Stéphane Guedon
<stephane@22decembre.eu> wrote:
> Presently, I have only udev and udisks on that part of the process. Hal isn't
> running anymore, but automounting still works.
If there's an /etc/fstab entry for your device, udisks will use that
instead of creating a directory itself (udisks simply calls mount(8)
as the user). You probably want to use one of the 'user' or 'users'
option to allow the unprivileged desktop session to mount the device,
otherwise it won't work. For example
/dev/disk/by-uuid/6566-3267 /media/NeoParker auto defaults,users 0 0
should work (you of course need to mkdir that directory yourself).
David
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: udev fixing mount point
2011-02-26 16:36 udev fixing mount point Stéphane Guedon
2011-02-26 18:53 ` David Zeuthen
@ 2011-02-26 18:56 ` Stéphane Guedon
1 sibling, 0 replies; 3+ messages in thread
From: Stéphane Guedon @ 2011-02-26 18:56 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: Text/Plain, Size: 1151 bytes --]
On Saturday 26 February 2011 19:53:52 you wrote:
> Hi,
>
> On Sat, Feb 26, 2011 at 11:36 AM, Stéphane Guedon
>
> <stephane@22decembre.eu> wrote:
> > Presently, I have only udev and udisks on that part of the process. Hal
> > isn't running anymore, but automounting still works.
>
> If there's an /etc/fstab entry for your device, udisks will use that
> instead of creating a directory itself (udisks simply calls mount(8)
> as the user). You probably want to use one of the 'user' or 'users'
> option to allow the unprivileged desktop session to mount the device,
> otherwise it won't work. For example
>
> /dev/disk/by-uuid/6566-3267 /media/NeoParker auto defaults,users 0 0
>
> should work (you of course need to mkdir that directory yourself).
>
> David
So, this means each media to be plugged regulary should have its mountpoint
setup before...
And the others are automatic.
Ok...
Thank you !
--
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 316 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-26 18:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26 16:36 udev fixing mount point Stéphane Guedon
2011-02-26 18:53 ` David Zeuthen
2011-02-26 18:56 ` Stéphane Guedon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox