Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Since I upgraded to Ubuntu 12.10 the automout of USB devices does not work as expected. When I plug in a storage device it is recognized correctly but I do not have write privileges on it. I thought, that maybe the permissions of /media are not correctly set, but I don't know, how they have to be. They are like this:

drwxr-xr-x  14 root  root   4096 Jan 13 19:37 media

I also checked whether my user is a member of the group plugdev and he definitely is.

What else could be the cause of that problem?

Update: Here is the dmesg output after plugging in an USB storage device:

share|improve this question
Could you paste/link the relevant part of dmesg output from when you plug in or mount the drive? – onik Jan 25 '13 at 14:02
How do I do this? – user5950 Jan 25 '13 at 14:03
Open a terminal and type dmesg right after plugging in the drive, and a few of the last lines should have information on the device detection. Or you can copy/paste the whole output (censor if needed) on Pastebin and share the link here. – onik Jan 25 '13 at 14:06
Added the output to the post above. – user5950 Jan 25 '13 at 14:33
Could you paste/ link the output of cat /etc/fstab and mount (pls ignore the above commend as i can't edit or delete from my phone) – totti Feb 3 '13 at 6:39

4 Answers 4

sudo mount -o remount,rw /media/MonterFolderName

This shall solve the issue. I am not sure how to make it permanent. I am not sure if chmod would work if in case the USB is not mounted in readwrite mode in the first place.

share|improve this answer
may I suggest sudo mount -o remount,rw /media/$USER/* – mchid Nov 28 '14 at 7:03
Thanks. Worked on my Cubox with Geexbox – fedmich Aug 1 at 3:07

I think you are suffering the bug #1021375

You can workaround it by renaming the folder ~/.config/nautilus and then logout and log back in.
1. mv ~/.config/nautilus ~/.config/nautilus-bak
2. Logout.
3. Login.

share|improve this answer
I don't know if there are multiple possible causes of this problem, but I don't know why this answer hasn't gotten more upvotes. This was exactly my problem, with the exception of the fact that I was using the nemo file manager rather than nautilus. But I confirmed that I could create/edit/delete files using an alternative file manager (PCManFM), the terminal, and the application Save File dialog of gedit and LibreOffice, so the problem only affects nautilus/nemo. Your proposed workaround also seems to have done the trick. – Lee Hachadoorian Jan 28 at 17:47
This answer is what solved my problem. Thanks ! – David V. Jun 24 at 5:39
killall nautilus is enough, no need for logging out. :) – isset Jul 19 at 16:33

When the USB is inserted it's mounted on /media/<username> that you should have permissions through an access control list.

You can check what the permissions are e.g.

bcbc@23:34:50:~$ getfacl /media/bcbc
# file: media/bcbc
# owner: root
# group: root

If there is no access control list, just delete the directory and it will recreate it with the correct permissions.

sudo rmdir /media/<username>

Or add the ACL:

sudo setfacl -m u:<username>:rx /media/<username>
share|improve this answer

Nothing is wrong with the mounting options and fstab file, as far as my knowledge, you just have to use below command to get the Required right permissions on the media folder. and I will explain you why.

1) your current permissions on the folder as you mentioned are as below. (Apologize if you know this and I'm bothering you with it.)

drwxr-xr-x 14 root root 4096 Jan 13 19:37 media in this d stands for directory, first group of rwx stands for the rights of the user who owns that object, which is in your case root.

second group of rwx stands for the rights of the group who owns that object & here you have only r-x which means even if you are in the sudoers file or in the admin group you do not have rights to write in it.

Third group of rwx is or other users, who are not owner of that object nor in the group who has ownership rights of that object. if your case it is again r-x only. so that is why you do not have write permissions on it.

2) So you need to change permissions of the media folder. (I am going to consider that you are in admin group or sudoers file, because this will work only in that case). so this is what you need to do.

$ sudo chmod -R 775 /media

3) This will give you required write permissions on the all auto mounted drives.

Please check and let me know if this does not work will tell you what else can be done to fix this issue.

share|improve this answer
One more thing... About ACL does not come automatically installed with OS ... so unless you have installed it.. it stays out of Question in your case. if you have installed it pleas let me know. – Rishee Feb 5 '13 at 20:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.