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: http://pastebin.com/pJ7qebQR
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.
mv ~/.config/nautilus ~/.config/nautilus-bak
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.Tested on Ubuntu 12.10 and 13.
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.
If there is no access control list, just delete the directory and it will recreate it with the correct permissions.
Or add the ACL:
Problem appears to have gone away
This is a 5 y/o question on short term release Ubuntu 12.10. The
dmesg
link is no longer available in the OP's question. But if I plug in a Ubuntu 18.04 Live USB with persistent storagedmesg
reveals:Unlike OP implies, there is no warning for read-only. Notice the line:
Apparently whatever the problem was 5 years ago, it no longer exists today under Ubuntu 16.04 LTS. Also for the only other LTS version today, 14.04 I can't remember this being a problem either. Only SD RAM cards come to mind as being read only, which is a different problem altogether.
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.
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.
I hit this problem too, in my case it was a fat32 corruption problem allowing to read it but not to write.
Then if your usb key is a fat32, it might be that your filesyste is corrupted.
To verify do a sudo dmesg
then unmout it, sudo fsck.vfat your_device_partition it then mount it again.
in my specific case :