* [gentoo-user] USB sticks now mounting on /run/media instead of /media ? @ 2012-04-14 0:19 walt 2012-04-15 22:44 ` Benny Gaechter 2012-05-03 20:18 ` [gentoo-user] " walt 0 siblings, 2 replies; 14+ messages in thread From: walt @ 2012-04-14 0:19 UTC (permalink / raw To: gentoo-user Maybe I overlooked some gentoo emerge warning? A recent update (udev?) on my ~amd64 machines is now mounting removable drives on /run/media instead of /media. Perhaps motivated by the recent lvm2 error messages during boot? Anyone know for sure? ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] USB sticks now mounting on /run/media instead of /media ? 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-05-03 20:18 ` [gentoo-user] " walt 1 sibling, 1 reply; 14+ messages in thread From: Benny Gaechter @ 2012-04-15 22:44 UTC (permalink / raw To: gentoo-user I have got an ~amd64 machine, too. My USB Stick still mounts in /media. Probably you changed some configuration? Am 14. April 2012 02:19 schrieb walt <w41ter@gmail.com>: > Maybe I overlooked some gentoo emerge warning? A recent update > (udev?) on my ~amd64 machines is now mounting removable drives > on /run/media instead of /media. > > Perhaps motivated by the recent lvm2 error messages during boot? > Anyone know for sure? > > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] USB sticks now mounting on /run/media instead of /media ? 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 0 siblings, 2 replies; 14+ messages in thread From: Claudio Roberto França Pereira @ 2012-04-18 17:04 UTC (permalink / raw To: gentoo-user How do you mount them automatically? Isn't there a middle-man software that mounts removable drives? I'm pretty sure I never had a drive automount without kde or gnome managing them. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 2012-04-18 17:04 ` Claudio Roberto França Pereira @ 2012-04-18 18:50 ` walt 2012-04-18 20:23 ` [gentoo-user] " Michael Scherer 1 sibling, 0 replies; 14+ messages in thread From: walt @ 2012-04-18 18:50 UTC (permalink / raw To: gentoo-user On 04/18/2012 10:04 AM, Claudio Roberto França Pereira wrote: > How do you mount them automatically? Isn't there a middle-man software > that mounts removable drives? I'm pretty sure I never had a drive > automount without kde or gnome managing them. I forgot to check on this because I was distracted by other problems :) Yes, I think it must be a gnome thing because the USB sticks are mounted only when I startx, not earlier. I'll grep through some stuff and try to find where it comes from. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] USB sticks now mounting on /run/media instead of /media ? 2012-04-18 17:04 ` Claudio Roberto França Pereira 2012-04-18 18:50 ` [gentoo-user] " walt @ 2012-04-18 20:23 ` Michael Scherer 1 sibling, 0 replies; 14+ messages in thread From: Michael Scherer @ 2012-04-18 20:23 UTC (permalink / raw To: gentoo-user a possibility could be to get the label or UUID of the device. blkid will give you a list to find out. you could then enter the device in fstab with either LABEL=<label> or UUID=<uuid>, bypassing the need to use /dev/something, which for USB-disks might change from one system start to the next hope I understood your problem correctly michael -- Michael Scherer Univ.klinik f. Psychiatrie email: michael.scherer@meduniwien.ac.at phone: +43 6991 941 22 54 ----- Original Message ----- From: "Claudio Roberto França Pereira" <spideybr@gmail.com> To: <gentoo-user@lists.gentoo.org> Sent: Wednesday, 18 April, 2012 19:04 Subject: Re: [gentoo-user] USB sticks now mounting on /run/media instead of /media ? > How do you mount them automatically? Isn't there a middle-man software > that mounts removable drives? I'm pretty sure I never had a drive > automount without kde or gnome managing them. > > ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 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-05-03 20:18 ` walt 2012-05-03 21:45 ` Walter Dnes 2012-05-03 21:48 ` Canek Peláez Valdés 1 sibling, 2 replies; 14+ messages in thread From: walt @ 2012-05-03 20:18 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 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 1 sibling, 0 replies; 14+ messages in thread From: Walter Dnes @ 2012-05-03 21:45 UTC (permalink / raw To: gentoo-user On Thu, May 03, 2012 at 01:18:04PM -0700, walt 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 Are we running Linux or are we running Lennax? -- Walter Dnes <waltdnes@waltdnes.org> ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 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 5:51 ` [gentoo-user] [a bit OT] " pk 1 sibling, 2 replies; 14+ messages in thread From: Canek Peláez Valdés @ 2012-05-03 21:48 UTC (permalink / raw To: gentoo-user 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 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 (unless it has the corresponding permissions). And anyway, if you are using a desktop system you don't care where the drive mounts, it just appears in your filemanager. If you are not using a desktop, then you should not have udisks2 installed, probably. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 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 5:51 ` [gentoo-user] [a bit OT] " pk 1 sibling, 2 replies; 14+ messages in thread From: walt @ 2012-05-03 23:00 UTC (permalink / raw To: gentoo-user 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? ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 2012-05-03 23:00 ` walt @ 2012-05-04 0:32 ` Canek Peláez Valdés 2012-05-04 0:33 ` Joshua Murphy 1 sibling, 0 replies; 14+ messages in thread From: Canek Peláez Valdés @ 2012-05-04 0:32 UTC (permalink / raw To: gentoo-user On Thu, May 3, 2012 at 6: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? 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 cleaner. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 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 1 sibling, 1 reply; 14+ messages in thread From: Joshua Murphy @ 2012-05-04 0:33 UTC (permalink / raw To: gentoo-user 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 -- Poison [BLX] Joshua M. Murphy ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 2012-05-04 0:33 ` Joshua Murphy @ 2012-05-04 1:37 ` Alan McKinnon 2012-05-04 8:36 ` Neil Bothwick 0 siblings, 1 reply; 14+ messages in thread From: Alan McKinnon @ 2012-05-04 1:37 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Re: USB sticks now mounting on /run/media instead of /media ? 2012-05-04 1:37 ` Alan McKinnon @ 2012-05-04 8:36 ` Neil Bothwick 0 siblings, 0 replies; 14+ messages in thread From: Neil Bothwick @ 2012-05-04 8:36 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1319 bytes --] On Fri, 4 May 2012 03:37:05 +0200, Alan McKinnon wrote: > > 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. But it cannot be guaranteed that / is mounted rw at this time, so /run o tmpfs makes sense from that perspective. However, it is an illogical place to mount removable devices, whereas the function of /media is immediately obvious from its name. The link given indicates that systemd was already mounting /media as a tmpfs, is it really worth switching to an unintuitive location for the mountpoints just to save one tmpfs which uses so little resources? -- Neil Bothwick If Bill Gates had a dime for every time a Windows box crashed... ...Oh, wait a minute, he already does. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] [a bit OT] Re: USB sticks now mounting on /run/media instead of /media ? 2012-05-03 21:48 ` Canek Peláez Valdés 2012-05-03 23:00 ` walt @ 2012-05-04 5:51 ` pk 1 sibling, 0 replies; 14+ messages in thread From: pk @ 2012-05-04 5:51 UTC (permalink / raw To: gentoo-user On 2012-05-03 23:48, Canek Peláez Valdés wrote: >And anyway, if > you are using a desktop system you don't care where the drive mounts, > it just appears in your filemanager. I have a desktop system but I don't have a "filemanager" installed and I don't run an automounter. You assume everyone uses what you do? I don't even have a /run directory so please don't assume that, at least some of us, doesn't care about where "the drive mounts" (since I mount manually)... >If you are not using a desktop, > then you should not have udisks2 installed, probably. I don't have udisks(n) installed either... see no need for it. :-) Best regards Peter K ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-05-04 8:38 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2012-05-04 8:36 ` Neil Bothwick 2012-05-04 5:51 ` [gentoo-user] [a bit OT] " pk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox