You are not logged in.

#26 2012-05-01 18:20:46

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: /media moved to /run/media after upgrade to gnome 3.4?

Why /media/$DEVICE is moving to /run/media/$USER/$DEVICE:

* we want it to be on a tmpfs so that root can be read-only, /run is therefore a natural place to put it
* devices managed by udisks(2) are supposed to be owned by the user who mounted it, to avoid name clashes or denial-of-service problems. It therefore makes sense to use a user-specific folder to create the mountpoints in.

If you use udisks2 you should not need to know where these mountpoints are, as it will tell you the path when you ask for it.

While this stuff (including /run) is not mentioned in FHS, it does not strictly speaking contradict it (distro's are allowed to add new top-level dirs), and it will very likely be added to the next version of FHS as all distro's seem to have adopted it (if a new FHS version is ever published). In the meantime, it seems that people more or less agree that the FHS is mostly irrelevant/dead.

Offline

#27 2012-05-05 09:48:08

farvardin
Member
Registered: 2008-09-03
Posts: 120
Website

Re: /media moved to /run/media after upgrade to gnome 3.4?

>If you use udisks2 you should not need to know where these mountpoints are, as it will tell you the path when you ask for it.

another "clever" idea from the Gnome Destruction Team...

I use several programs which store their data on external hard drive, all the references are directed into /media/, I don't want to reconfigure everything because they decided one more time, to change their damn API. It's time for me to remove this udisks s***.

Offline

#28 2012-05-05 11:38:14

Awebb
Member
Registered: 2010-05-06
Posts: 6,283

Re: /media moved to /run/media after upgrade to gnome 3.4?

That's 30sec of sed, farvardin :-D

Online

#29 2012-05-05 20:36:20

pedromj
Member
Registered: 2010-10-27
Posts: 51

Re: /media moved to /run/media after upgrade to gnome 3.4?

farvardin wrote:

>If you use udisks2 you should not need to know where these mountpoints are, as it will tell you the path when you ask for it.

another "clever" idea from the Gnome Destruction Team...

I use several programs which store their data on external hard drive, all the references are directed into /media/, I don't want to reconfigure everything because they decided one more time, to change their damn API. It's time for me to remove this udisks s***.

UDisks2 comes from FreeDesktop [1] and is a good tool. It is up to you to use it or not. If Gnome depends on it, and you do not like it, it is up to you to leave Gnome and find another Desktop Environment or whatever you like. The good thing about Linux and free software in general is that you have the freedom to choose the software pieces you like and the freedom to modify anything to meet your requirements. I do not think that messing anybody is the way to resolve your problem.

[1] http://www.freedesktop.org/wiki/Software/udisks


Entia non sunt multiplicanda praeter necessitatem

Offline

#30 2012-05-05 22:27:00

Padfoot
Member
Registered: 2010-09-03
Posts: 381

Re: /media moved to /run/media after upgrade to gnome 3.4?

Why not simply create a udev rule to mount the device under /media?

Offline

#31 2012-05-07 16:38:23

satmo54
Member
From: Indonesia
Registered: 2011-05-10
Posts: 3
Website

Re: /media moved to /run/media after upgrade to gnome 3.4?

Now It always asks me for the password even there's .pkla thing inside my /etc/polkit-1/localauthority/ as described here https://wiki.archlinux.org/index.php/PC … ith_udisks and I'm on the storage group.
Just how to mount the partitions without entering password?

Offline

#32 2012-05-08 14:52:24

KaoDome
Member
From: Spain
Registered: 2008-12-30
Posts: 38

Re: /media moved to /run/media after upgrade to gnome 3.4?

If udisks2 is being used the action is different, from org.freedesktop.udisks.* to org.freedesktop.udisks2.* (you could even write the ".*" instead of the different actions and forget about it).

Offline

#33 2012-05-09 15:21:48

borndreamer
Member
Registered: 2012-05-09
Posts: 1

Re: /media moved to /run/media after upgrade to gnome 3.4?

arriagga wrote:

now there is no safe eject or eject option on usb, is there any way I can have it again.

thanks

I also have this problem. It's a little bit annoying to unplug external drives while they still spinning.

Offline

#34 2012-05-09 16:37:48

alexcriss
Member
Registered: 2010-05-24
Posts: 121

Re: /media moved to /run/media after upgrade to gnome 3.4?

borndreamer wrote:
arriagga wrote:

now there is no safe eject or eject option on usb, is there any way I can have it again.

thanks

I also have this problem. It's a little bit annoying to unplug external drives while they still spinning.

Adding a me too. Google doesn't seem to find anything useful, I'll try Gnome bugzilla in a short time.

Offline

#35 2012-05-09 17:39:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: /media moved to /run/media after upgrade to gnome 3.4?

merge bump...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#36 2012-05-12 16:09:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: /media moved to /run/media after upgrade to gnome 3.4?

Stupid question: my /etc/fstab defines several mount points to the old /media/mountpoint format.  Where should I move them to comply with this /run/media/$username standard?

/dev/disk/by-uuid/44321d8d-71dc-40af-9c47-781509166094	/media/data	ext4	defaults,relatime	0	1

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#37 2012-05-13 11:01:38

Awebb
Member
Registered: 2010-05-06
Posts: 6,283

Re: /media moved to /run/media after upgrade to gnome 3.4?

I think your fstab should not contain anythying pointing at /media at all. Static mounts go to /mnt.

Online

#38 2012-05-14 11:07:56

ulke
Member
Registered: 2011-04-29
Posts: 50

Re: /media moved to /run/media after upgrade to gnome 3.4?

alexcriss wrote:
borndreamer wrote:
arriagga wrote:

now there is no safe eject or eject option on usb, is there any way I can have it again.

thanks

I also have this problem. It's a little bit annoying to unplug external drives while they still spinning.

Adding a me too. Google doesn't seem to find anything useful, I'll try Gnome bugzilla in a short time.

There's an entry in the Redhat Bugzilla here about this issue, with links to 3 Gnome Bugzilla entries.

Offline

#39 2012-05-14 16:23:26

verbbis
Member
Registered: 2009-09-02
Posts: 26

Re: /media moved to /run/media after upgrade to gnome 3.4?

Awebb wrote:

I think your fstab should not contain anythying pointing at /media at all. Static mounts go to /mnt.

This is what I've done and think it is the most logical approach - haven't had any problems so far. In addition I think there's merit to the way udisks2 handles things now, albeit the reasoning behind it is most certainly for pure desktop users. Since /media is probably going to disappear anyway at some point, I'd avoid referring to it in all situations anyway.

It's interesting to see how the big distros like Fedora can influence where things are going in the Linux ecosystem. Luckily, you always have a choice not to go with the flow though.

Offline

#40 2012-05-15 00:32:35

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: /media moved to /run/media after upgrade to gnome 3.4?

I really like the "Safely Remove Media" option before. Now its gone. What gives?

Offline

#41 2012-06-08 18:26:53

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: /media moved to /run/media after upgrade to gnome 3.4?

rg_arc wrote:

I really like the "Safely Remove Media" option before. Now its gone. What gives?

After upgrading to GNOME 3.4 when it was released into extra, I immediately noticed that the safe removal option was gone. I thought they maybe added it to unmount/the arrow as to reduce the menu items or something like that.

Since I updated my DE I haven't really transfered any files. However, just a few minutes ago, I did exactly that: I copied a lot of files to a flash drive. They were all corrupted!

It seems that I was too quick to unmount the device - and no warning was given. This means that I have to sit and wait for a while (without knowing when the files are written to the drive) and then unmount. Nautilus' progress bar doesn't help either since it shows that the files are copied in an instant and the progress window disappears. (I'm assuming that the data is cached and later on written to the drive?)

This is so incredibly stupid! Why, oh, why...

Offline

#42 2012-06-08 18:31:41

Awebb
Member
Registered: 2010-05-06
Posts: 6,283

Re: /media moved to /run/media after upgrade to gnome 3.4?

verbbis wrote:

It's interesting to see how the big distros like Fedora can influence where things are going in the Linux ecosystem.

It's always a big one introducing news. Debian does this all the time, but since the industry cannot implement anything not packed as rpm, we won't see Debian stuff outside Debian. *cough*

Online

#43 2012-06-08 19:44:54

alexcriss
Member
Registered: 2010-05-24
Posts: 121

Re: /media moved to /run/media after upgrade to gnome 3.4?

Whoever thinks that "Safely remove" was a good idea and misses it in Gnome 3.4, please spam this ->
https://bugzilla.gnome.org/show_bug.cgi?id=676321

Offline

#44 2012-06-08 20:54:01

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: /media moved to /run/media after upgrade to gnome 3.4?

alexcriss wrote:

Whoever thinks that "Safely remove" was a good idea and misses it in Gnome 3.4, please spam this ->
https://bugzilla.gnome.org/show_bug.cgi?id=676321

I think they already have bug reports for this. See:
https://bugzilla.gnome.org/show_bug.cgi?id=670452
https://bugzilla.gnome.org/show_bug.cgi?id=675627
https://bugzilla.gnome.org/show_bug.cgi?id=619665

Fedora apparently used some workaround for current release (not upstream):
https://bugzilla.redhat.com/show_bug.cgi?id=819492

Well, the fact that GNOME developers are aware, doesn't make this situation less idiotic, though. I mean, why remove important functionality without a replacement? GNOME is so GNOME.
Meanwhile, watch the LED on the device itselft, or issue a "sync" command in your terminal and wait for it to complete.

Offline

#45 2012-06-08 23:58:45

alexcriss
Member
Registered: 2010-05-24
Posts: 121

Re: /media moved to /run/media after upgrade to gnome 3.4?

Thanks for links, but my bug also asks for a way of parking the disk's heads. Safely remove did that, unmounting partitions doesn't, which mean that it is possible to unplug a spinning HD. I do not like it!

Offline

#46 2012-06-09 00:21:49

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: /media moved to /run/media after upgrade to gnome 3.4?

alexcriss wrote:

Safely remove did that, unmounting partitions doesn't, which mean that it is possible to unplug a spinning HD. I do not like it!

Modern disks automatically park the heads upon loss of power. I don't use Gnome, but if I had to hazard a guess, it probably issues a power off command to the drive after unmount. The important thing to do is to make sure it's not mounted, otherwise a loss of power can cause unfavorable things to happen to your file system.

Edit: If you look at the manpage for hdparm, it'll give you some options for doing what you want. You could probably script it if need be.

Last edited by Zancarius (2012-06-09 00:24:36)


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#47 2012-06-09 07:53:40

Awebb
Member
Registered: 2010-05-06
Posts: 6,283

Re: /media moved to /run/media after upgrade to gnome 3.4?

Is this just offtopic triggered by the word GNOME, or is there an actual relation between the folder structure and Gnome not safely removing drives?

Online

Board footer

Powered by FluxBB