On Fri, 18 Oct 2013 23:24, Felix Miata <mrmazda@...> wrote:
On 2013-10-18 23:04 (GMT+0200) Yamaban composed:
Felix Miata wrote:
A system capable of determining to put a device in /var/run/media/<username> is surely capable of appending [2,3,*] or <username> or bus## if and when another device with an identical label is being mounted to a different USB bus ID. /var/run/ is not a place where mere mortal users should be looking for anything, much less files on a stick just plugged. If <username> is going to be part of the mountpoint name, why not /home/<username>/media/<label>?
+1 for this idea,
interim solution: crate a link in the form: "ln -s /var/run/media/$USER /home/$USER/media"
That would at least show what a (inexperienced) user expects, and can be done NOW, without upstream hassle.
Idea for a place for this solution would be the (xdg-)tool that handles the 'User Desktop Directory Name Translation' (e.g. for German: Documents -> Dokumente, Public -> Öffentlich)
What if root plugs it, intending for its rw access by multiple or all users?
If device has generic label and user wants to apply a better one, would it allowed without problem(s)?
If you take this argument about "for all" to it's logical conclusion then the whole /var/run/media/<username>/ part is borked. User "root" handling media is a extra chapter, as he is NOT a "User", but a "Administator" and should NEVER EVER be used as a "User". ATM udev rules do NOT reflect this. "Label Changing", how nice of you to bring this up. Fact is, the kernel it self uses device-nodes (e.g. /dev/sdb1) everything else, including labels is not needed for the kernel. The whole 'by-label', 'by-id', or 'by-path' huddle is just placed on top of that, and AFAIK handled by "udev" To me "Changing" a label is part of the filesystem-tools and udev-tools, just HOW that is presented to the users is a extra beast. Normal way would be: - un-mount <old label> - <fs-tool> <dev-node> <new label> - <re-detect device to let udev know about change> - mount <new label> Note: some filesystems allow to change label while mounted. Pack that in a app with a (G)UI, and you will have fans for it. - Yamaban