[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Da /media/$USB_DISK a /media/$USER/$USB_DISK



On 07/15/2013 07:46 AM, Davide G. wrote:
Io uso Mate, ma a occhio penso i colpevoli da controllare siano udisks2 o gvfs.
Mettendo insieme le due cose potrebbe essere un parametro che gli passa il DE.


Se la versione di udisks2 è > 2.0.91:
c'è un parametro apposito di udisks2 che si puo' passare tramite una regola udev.

"you can tell udisks2 to automount in /media/ instead of /media/[username]/ by adding a udev rule that sets the environment var UDISKS_FILESYSTEM_SHARED. You can do this by adding a file called (eg) /etc/udev/rules.d/99-udisks2.rules that contains:

ENV{ID_FS_USAGE}=="filesystem", ENV{UDISKS_FILESYSTEM_SHARED}="1"

I think udev monitors the /etc/udev/rules.d folder to detect changes, but if not, you can force it to reload its rules with "sudo udevadm control --reload". Note though that the new mount location doesn't seem to take effect until you physically remove and plug the external drive back in."

Fonte: http://askubuntu.com/questions/214646/how-to-configure-the-default-automount-location

Ciao,
N


--
+---------------------+
| Linux User  #554252 |
+---------------------+


Reply to: