[SOLVED] Default mount point for removable media

This forum is for general chat between members about Mageia.

Technical questions are supposed to be posted in support forums. Not here !

[SOLVED] Default mount point for removable media

Postby linuxero » Dec 25th, '13, 00:13

Hi Mageians;

Happy Holidays for everybody..

I noticed that removable media are being mounted under the /run/media/USER_LOGIN/SOME_MEDIA. This is a bit confusing for some new-comers especially when they wish to use some cool stuff like the copy to from a context menu in Dolphin..they just cannot seem to find their recently plugged usb.

I would suggest to keep the defualt mount point /media as it would make life easier for this scenario.

What do you think?
Last edited by linuxero on Dec 25th, '13, 16:20, edited 1 time in total.
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: Default mount point for removable media

Postby doktor5000 » Dec 25th, '13, 10:37

Comes a bit late. Also this is the default on all newer distributions, so keeping /media as default is definitely the wrong question.

If you really want that you could try to change it: https://wiki.archlinux.org/index.php/ud ... o_.2Fmedia
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Default mount point for removable media

Postby linuxero » Dec 25th, '13, 16:12

doktor5000 wrote:Comes a bit late. Also this is the default on all newer distributions, so keeping /media as default is definitely the wrong question.

If you really want that you could try to change it: https://wiki.archlinux.org/index.php/ud ... o_.2Fmedia



:) I don't understand why a bit late, though!! Actually I never minded it until a few of the people I installed Mageia for started complaining, so I thought this could be easier for them.

Thanks for the hint anyway :P
linuxero
 
Posts: 345
Joined: Oct 7th, '11, 15:50

Re: [SOLVED] Default mount point for removable media

Postby jiml8 » Dec 25th, '13, 16:43

You could always write a script to symlink the actual mountpoint to /media. Have it look once a second or so for new devices mounted...
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: [SOLVED] Default mount point for removable media

Postby artois2stella » Jul 16th, '15, 09:03

It is quite simple:
1. change path to "/etc/udev/rules.d/" (krusader/mc/konsole)
2. inside "rules.d" directory create file named "99-udisks2.rules" (needs root; or similar name with .rules extension)
3. edit mentioned file, adding lines:
Code: Select all
# UDISKS_FILESYSTEM_SHARED
# ==1: mount filesystem to a shared directory (/media/VolumeName)
# ==0: mount filesystem to a private directory (/run/media/$USER/VolumeName)
# See udisks(8)
ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1"

**************** do not add this line *****************
Udev automatically detects changes to rules files, so changes take effect immediately without requiring udev to be restarted. However, the rules are not re-triggered automatically on already existing devices. Hot-pluggable devices, such as USB devices, will probably have to be reconnected for the new rules to take effect.
If rules fail to reload automatically
4. Load created rules (use root shell in konsole) : # udevadm control --reload
or reboot system
Thats all! Changes becames permanent.
Last edited by doktor5000 on Jul 16th, '15, 20:52, edited 1 time in total.
Reason: added code tags
artois2stella
 
Posts: 3
Joined: Jul 16th, '15, 08:47

Re: [SOLVED] Default mount point for removable media

Postby doktor5000 » Jul 16th, '15, 20:53

Please next time use code tags as explained in ftp://ftp5.gwdg.de/pub/linux/mandriva/m ... e_tags.ogv
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to General discussions about Mageia

Who is online

Users browsing this forum: No registered users and 1 guest

cron