public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ?
Date: Fri, 4 May 2012 03:37:05 +0200	[thread overview]
Message-ID: <20120504033705.450d7612@khamul.example.com> (raw)
In-Reply-To: <CAOTuDKo_9VEV+sVtq20+wXRfY11KCvT_cAKEygRdsuZ3m-Crxw@mail.gmail.com>

On Thu, 3 May 2012 20:33:19 -0400
Joshua Murphy <poisonbl@gmail.com> wrote:

> On Thu, May 3, 2012 at 7:00 PM, walt <w41ter@gmail.com> wrote:
> > On 05/03/2012 02:48 PM, Canek Peláez Valdés wrote:
> >> On Thu, May 3, 2012 at 3:18 PM, walt <w41ter@gmail.com> 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:
> >>>
> >>> http://cgit.freedesktop.org/systemd/systemd/commit/?id=231931ffba1bca9d8759bbd6f797e56f8c6971fa
> >>
> >> 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:
> >>
> >> https://plus.google.com/u/0/110773474140772402317/posts/NqPUifsFUYH
> >
> > 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?
> >
> > 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?
> 
> In my completely uninformed guess... a) tmpfs automatically 'cleans
> up' every reboot, making sure old folders aren't sitting around stale
> even if something did go wrong, and/or b) it's guaranteed writable for
> the service that needs to make those mount points. I could probably
> come up with a 'c', but I'd likely have to actually do a bit of
> reading on the topic before rising looking even more foolishly un-read
> on the topic than I already do! :-P
> 

Here you go, one time c):

/run can be guaranteed to exist immediately after / is mounted, which
fixes a whole slew of really horrible problems if it isn't.



-- 
Alan McKinnnon
alan.mckinnon@gmail.com




  reply	other threads:[~2012-05-04  1:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-14  0:19 [gentoo-user] USB sticks now mounting on /run/media instead of /media ? walt
2012-04-15 22:44 ` Benny Gaechter
2012-04-18 17:04   ` Claudio Roberto França Pereira
2012-04-18 18:50     ` [gentoo-user] " walt
2012-04-18 20:23     ` [gentoo-user] " Michael Scherer
2012-05-03 20:18 ` [gentoo-user] " walt
2012-05-03 21:45   ` Walter Dnes
2012-05-03 21:48   ` Canek Peláez Valdés
2012-05-03 23:00     ` walt
2012-05-04  0:32       ` Canek Peláez Valdés
2012-05-04  0:33       ` Joshua Murphy
2012-05-04  1:37         ` Alan McKinnon [this message]
2012-05-04  8:36           ` Neil Bothwick
2012-05-04  5:51     ` [gentoo-user] [a bit OT] " pk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120504033705.450d7612@khamul.example.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox