Why has Ubuntu moved the default mount points?
Solution 1:
In fact, Ubuntu as many other Linux distributions have switched to udisks2 which is used for the auto mount feature.
In the new version of udisks, the default mount point is /run/media/$USER
, but it has been patched by Ubuntu (and some other distributions) to be /media/$USER
(See this answer from Florian Diesch for more details).
udisks version 2.0.0, which is included in Ubuntu 12.10 doesn't allow you to change the default behaviour which is mounting a file system as non-shared (only accessible by $USER).
Since udisks 2.0.91, it is possible to change the default behaviour so that mounting a file system as shared can be done as before [/media
] (See this answer from rocko for more details).
The root cause for this change of default behaviour in udisks2 seems clear : the security. It is safer to restrict access to a file system to one particular user instead of giving access to it to all the users of the system.
Solution 2:
In Ubuntu this has been changed once with Quantal (12.10) release. The reason seems to be quite simple and logic:
First of all, in Linux like systems
/media
is a directory for mounting files systems on removable media like CD-ROM drives, floppy disks, and Zip drives. So, this is a rule.Now, if you plug an USB drive for example, normally is that only you to have access to that USB drive - from here the reason of per-user mounting. In your example if you check with
ls -l /media/z
you will see that you are the owner ofEXT4-250GB-USB
and only (aka z user) you have permissions to read, write and executeEXT4-250GB-USB
. The same thing is true for all the files from insideEXT4-250GB-USB
.In this way, a system administrator (root) can see quickly what each user has mounted.
Anyway, if you wish, you can manually mount something almost where you want (of course, where you will be granted access). For example, you will not be able to mount to /media/<anotheruser>
.
You may be also interested by:
- How do I let other users access my /media/[username]/HARDDRIVE with Ubuntu 12.10?
- How to configure the default automount location?