caneko at gmail
May 3, 2012, 5:32 PM
Post #10 of 13
On Thu, May 3, 2012 at 6:00 PM, walt <w41ter [at] gmail> wrote:
Re: Re: USB sticks now mounting on /run/media instead of /media ?
[In reply to]
> On 05/03/2012 02:48 PM, Canek Pel√°ez Vald√©s wrote:
>> On Thu, May 3, 2012 at 3:18 PM, walt <w41ter [at] gmail> wrote:
>>> On 04/13/2012 05:19 PM, walt wrote:
>>>> ¬†A recent update
>>>> (udev?) on my ~amd64 machines is now mounting removable drives
>>>> on /run/media instead of /media.
>>> Ha! I should have suspected Lennart from the beginning:
>> The link you posted has nothing to do with this; that's only a
>> systemd-specific change in response to a change in udisks2. In other
>> words, Lennart has nothing to do with this change, the responsible is
>> David Zeuthen, udisks2 maintainer:
> Thanks for the correction.
>> And it's actually a pretty reasonable change (IMHO): now in multiseat
>> configurations each user can plug a USB drive and only him/she will
>> see it
> I've thought that for a long time. ¬†Mounting my own "personal mount" on
> a system directory never made any sense to me. ¬†However, /run/media is
> still a system directory, so it still doesn't make any sense to me.
> I think /home/wa1ter/media is a more logical choice. ¬†But I'm not doing
> the coding in this bazaar ;)
> The upstream dev(s) seem intent on mounting removable media on a tempfs
> for some reason. ¬†Do you know why?
So the mountpoint can be created on the fly, and so it is also
volatile. The system could "mkdir /media/<mountpoint>" everytime a USB
is plugged, and then "rmdir /media/<mountpoint>" when it's unplugged;
but if something happens (a power failure or something similar), then
you would need to manually remove the stale dir, or have a process do
it from time to time. Actually, some years ago it was not rare to have
such stale directories under /media.
None of this happens with a tmpfs.
> I understand completely the reason for inventing /run and making it a
> tempfs (I think Lennart *was* involved in that), but why use /run when
> it's not necessary or (IMHO) logical?
I don't know, really. gvfs (the new virtual filesystem for GNOME)
mounts the remote shares in $HOME/.gvfs (which is also a tmpfs). I
suppose a $HOME/.mount could be created.
I personally don't care, but it is certainly not consistent. However,
I agree with the idea of getting rid of the /media dir, and I have not
used /mnt in years, so I'm thinking on deleting both so my root dir is
Canek Pel√°ez Vald√©s
Posgrado en Ciencia e Ingenier√≠a de la Computaci√≥n
Universidad Nacional Aut√≥noma de M√©xico