How do I mount to /media/username/mountpoint?

Asked by David

I am using Ubuntu 13.10. I would like to mount my EncFS folders to /media/username/mountpointname. However, when I try this, I get an error "The mount folder is not empty." (It works if the mountpoint is in the ~ folder.)

Notes:

 * I tried this with a non-existent mountpoint folder, and it failed
 * I tried this by creating the mountpoint folder first, and it failed
 * In Ubuntu 13.10 media mountpoints are located at /media/username/mountpoint (rather than /media/mountpoint as in Ubuntu 12.04 - I'm not sure in exactly which version this changed)
 * Also asked at http://askubuntu.com/questions/392063/why-cant-i-mount-an-encfs-volume-at-media-username-mountpoint
 * File permissions:

The files in /media are:

$ ls -la
total 12
drwxr-xr-x 3 root root 4096 Dec 11 09:47 .
drwxr-xr-x 23 root root 4096 Dec 11 10:26 ..
drwxr-x---+ 5 root root 4096 Dec 17 10:29 username

The files in /media/username are:

$ ls -la
total 17
drwxr-x---+ 5 root root 4096 Dec 17 10:29 .
drwxr-xr-x 3 root root 4096 Dec 11 09:47 ..
drwxr-xr-x 2 username username 4096 Dec 11 09:49 attemptedmountpoint
drwxr-xr-x 19 username username 4096 Nov 22 11:52 workingmountpoint

Question information

Language:
English Edit question
Status:
Solved
For:
Gnome Encfs Manager Edit question
Assignee:
No assignee Edit question
Solved by:
Moritz Molch
Solved:
Last query:
Last reply:
Revision history for this message
Best Moritz Molch (mmolch) said :
#1

The message is misleading here. As you can see, you don't have write permissions in /media/username. That means that GEncfsM can't create the mount-points. To fix this use:
$ sudo chown username /media/username

It will then read:
drwxr-x---+ 5 username root 4096 Dec 17 10:29 username

Regards, Moritz

PS: If you want to put all mount-points per default there, you can then adjust the variable mount_dir_base in the advanced preferences to /media/$USER. GEncfsM has to be restarted after the change.

PPS: The change from /media to /media/username was in 12.10

Revision history for this message
David (lofidevops) said :
#2

Thanks LibertyZero, that solved my question.