Page 1 of 1
Cannot write to shared folders
Posted: 13. Jun 2010, 18:12
by tsv
Hi,
I know this problem has come up before but I simply cannot find a solution that helps me out. I have multiple shared folders, made permanent but not read-only, and when I mount them in Ubuntu they mount fine, but I cannot write to them.
I have tried mounting it manually with the following command:
Code: Select all
sudo mount -t vboxsf -o uid=1000,gid=1000 Video video
And adding this line to my fstab:
Code: Select all
Video /home/trevor/Videos vboxsf defaults,rw,uid=1000,gid=1000 0 0
My UID and GID are both definitely 1000.
Help appreciated!
Re: Cannot write to shared folders
Posted: 13. Jun 2010, 18:19
by Perryg
Re: Cannot write to shared folders
Posted: 13. Jun 2010, 19:04
by tsv
Which part? As far as I can see it tells you to do what I have already tried.
Re: Cannot write to shared folders
Posted: 13. Jun 2010, 19:32
by Perryg
First this part cannot be right. Where did you create your mount point? The complete path please
Code: Select all
sudo mount -t vboxsf -o uid=1000,gid=1000 Video video
This looks promising but in the wrong file. fstab gets loaded before the vboxsf so you need this in the /etc/rc.local and the syntax needs to be different (see below)
Code: Select all
Video /home/trevor/Videos vboxsf defaults,rw,uid=1000,gid=1000 0 0
I assume that the mount point is /home/trevor/Videos and the share was called video (notice the case. Linux is case sensitive)
then the mount would be
Code: Select all
mount -t vboxsf -o rw,uid=1000,gid=1000 video /home/trevor/Videos
Add this to the /etc/rc.local and make the rc.local executable. Of course this is all done as sudo. Easy way to do this is start the terminal then type sudo -i <enter> password <enter> then you will stay in sudo as long as that terminal is open.
Here is a copy of my rc.local so you can see where to put the command.
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
mount -t vboxsf -o rw,uid=1000,gid=1000 Transfer /mnt/Transfer
exit 0
Oh and one more piece of information for you. Windows is really stubborn about sharing things. The share should not be in your Windows home folder. Best to create a folder yourself and make it available to everyone before you share it.
Re: Cannot write to shared folders
Posted: 13. Jun 2010, 21:59
by Sasquatch
Added note to Perry's note: The 'special' folders in your Windows user profile, like Downloads, Documents, Videos, Music, etc. are all bound by the same sharing limitations. Either create a new folder to share in your user profile or on a different drive where you have full access/control on.