After updating to OpenSUSE 12.3 x64 from 12.2 x64, when an flash memory card is inserted in the reader, it mounts in a location such as:
/var/run/media/user/disk
Instead of simply:
/media/disk
Not that this is serious but an annoyance nonetheless and I suspect the upgrade changed some config somewhere but I have no idea.
In case it matters, I am using an ATech PRO-35U flash reader mounted via USB 2.0.
If someone knows how to fix this globally, please let me know. It may be doable on a card-by-card basis but since I easily use over 100
cards per year, it would be even more annoying to patch things for each one.
On 2013-03-17 16:46, idanan wrote:
>
> After updating to OpenSUSE 12.3 x64 from 12.2 x64, when an flash memory
> card is inserted in the reader, it mounts in a location such as:
>
> /var/run/media/user/disk
>
> Instead of simply:
>
> /media/disk
>
> Not that this is serious but an annoyance nonetheless and I suspect the
> upgrade changed some config somewhere but I have no idea.
There is no fix, as it is intentional. The powers that be, that is, the
developpers upstream (not even openSUSE) decided that.
Some do a symlink from /media to /var/run/media/user/, but you have to
redo on every boot as it is volatile.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
As these mounts are done on behalf of the (at that moment active on the desktop) end-user, they are intended to be used by that end-user using his file manager (like Dolphin) where the device shows up as such. The end-user does not have to have any knowledge about mounting, let alone where it is mounted in the directory tree.
The place(s) that were used earlier were in fact the same. It was never documented in end-user documentation that (s)he should care about a mount point.
Take care, that is what I think is the idea behind it. Please, do not shoot the messanger.
When you (as system manager, maybe after the end-user asked you so) want to have influence about that mount happening, you can make an entry in /etc/fstab (using the device-id or device label to uniquely identify the deevice). It shouldn’t then be mounted “by the desktop”, but by root (which caa of cource build a means so thatthe end-user can do this). But, there are reports that ignoring desktop mounting when in fstab is not working as intended atm.
Intentional? Well, I expected this but what I am surprised is that this is simply not an intentional config somewhere
that I can change
A symlink will work for me as I do not even have to put in in media. Anywhere easy to reach since it is to get there
fast for applications that use paths as so many do!
Sorry to contradict but the user does need to know This is why it took me a while to find out. Many applications still require paths
On KDE apps, yes I just see the label of the media. Dolphin is the one that gave me the path because if you click on the media name it turns into an entry field with the path.
As I said originally, its not a big issue but if there is a config somewhere I’d like to fix it there.
I am not sure, but it could be that on 12.2 it is different for KDE and for Gnome. It could BTW be that it still differs for different DEs on 12.3. In any case it is different from 12.1 and earlier. And there were (minor) differences with still earlier versions.
It has never been that “fixed”: what the mountpoint was. And in all cases it was hard coded (unconofigurable) in HAL already.
For what it is worth, I personaly see improvements in the whole afair. Earlier (when HAL was used and maybe even later) it was very uncertain who was the owner of a spontanious connected storage device. When several people were loged in on several logical screens it was not realy clear who was the owner of the fingers that pushed the USB connector in place. We had several threads about this a few years ago. As it is now, there is a clear definition that asumes that the fingers belong to the “active display user” (the real wording might be different), this being the userid that is loged in localy (vs. remote) and who’s session’s logical terminal is active on the screen (can only be one at the time). It is also not illogical that the username is used in the path of the mountpoint. The label may not be unique enough because many people have a lack of imagination and the number of labels “test” or “data” must be numerious. Earlier, the escape was to add numbers (like data-1) to the label, but that led also to confusion. And because some people simply removed the device without properly do a “save removal” sometimes these mountpoints still existed after a long time, this numbering could go rather high, leading to more confusion. The fact that this is now on a tmpfs in any case cleans it up at every shutdown. And the mount in a username defined path keeps any irrigularities with a users area. There is progress IMHO.
On 2013-03-17, idanan <idanan@no-mx.forums.opensuse.org> wrote:
>
> After updating to OpenSUSE 12.3 x64 from 12.2 x64, when an flash memory
> card is inserted in the reader, it mounts in a location such as:
>
> /var/run/media/user/disk
>
> Instead of simply:
>
> /media/disk
I too noticed the change of the mount point (although I never saw it in 12.2 - perhaps I upgraded to 12.3 before the
change). If you’re using the same flash disk every time (as I do), you can save yourself a lot a typing by creating a
symbolic link in your /home/user/ to the mount point
e.g.
user@linux:~> ln -sf /var/run/media/user/disk
… then just use to ~/disk/* whenever you need it. The link will be dead while the flash disk isn’t mounted (by KDE)
but it’s there when you need it rather than having to type deep paths.
I have no idea why the change was made, and it seems strange (at least to me) to have a mount point in /var/. You will
notice other media (e.g. DVDs) also mount inside /var/ now. So I wonder why the directory /media/ exists at all in the
default openSUSE KDE install.
On 2013-03-18 10:21, flymail wrote:
> I have no idea why the change was made, and it seems strange (at least to me) to have a mount point in /var/. You will
> notice other media (e.g. DVDs) also mount inside /var/ now. So I wonder why the directory /media/ exists at all in the
> default openSUSE KDE install.
According to a developer that wrote in the mail list, “/var/run is a
symlink to /run… which is provided as stop-gap backward compatibility
kludge. some applications and standards expect /var/run to exist.”
“/run is the official new location, yet some apps still have not been
updated to reflect this fact.”
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
Strange. It was NOT the case with my 12.2 which was up to date until last week. I use memory cards every day
but given the comments I realize this is also the case of USB keys which I use much less often, so maybe there
was a discrepancy which I did not know about.
Awesome! Looks like I’m not the only one to find this change ridiculous. I am sure it solves some problem for someone but as a
software designer I know that passing on a problem the the user is never a good idea.
Just a question but the udisks link… I see the new config option but I have no idea where to enable it?
Where should this go: UDISKS_FILESYSTEM_SHARED=1 ?
And where to put the / in front of the user-name?
**
**Sorry, this is probably trivial to some in-the-know but this exludes myself at this time
> I am not sure, but it could be that on 12.2 it is different for KDE and
> for Gnome. It could BTW be that it still differs for different DEs on
> 12.3. In any case it is different from 12.1 and earlier. And there were
> (minor) differences with still earlier versions.
I know in 12.2 GNOME, it used to be under /media, but it changed fairly
recently with an update.
I would be surprised if it weren’t configurable, though.
> Strange. It was NOT the case with my 12.2 which was up to date until
> last week. I use memory cards every day but given the comments I realize
> this is also the case of USB keys which I use much less often, so maybe
> there was a discrepancy which I did not know about.
Which DE were you using? Maybe there is something DE-specific as hcvv
suggested.
On 2013-03-18 16:42, Jim Henderson wrote:
> I know in 12.2 GNOME, it used to be under /media, but it changed fairly
> recently with an update.
>
> I would be surprised if it weren’t configurable, though.
Not me, as the change is intentional. The devs that say something say
that the desktop utilities (nautilus, dolphin, etc) are aware of the
change and just display the external media transparently, no matter
where it now resides. So there is no problem in their eyes.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
On 2013-03-18 15:56, idanan wrote:
> Just a question but the udisks link… I see the new config option but
> I have no idea where to enable it?
>
> Where should this go: UDISKS_FILESYSTEM_SHARED=1 ?
That’s a very interesting question.
I assume it needs a patch for that to work, and it has to be accepted
upstream and/or included by openSUSE.
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)
On 2013-03-18 16:26, hcvv wrote:
>
> nrickert;2537282 Wrote:
>>
>> That should be easy to find in future.
> Only as long as the future does not bring a change in the mount point
> again
(grumble… grumble…) (me)
–
Cheers / Saludos,
Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)