How to automatically mount a shared folder

Asked by eyekhay@hotmail.co.uk

Please can someone read through my steps and tell me what i need to do next

1. I have installed guest additions
2. I have defined the folder to be shared and the name is "folders"
3. sudo mkdir /media/windows-share
4. sudo mount -t vboxsf folders /media/windows-share
5. ls /media/windows-share (It listed the contents of the folder to be shared and which also means it was mounted successfully)

What do i need to do at this stage to make the folders mount automatically from start up?

(Host = Windows 7, Guest Ubuntu 10.4, Virtual Machine = VirtualBox).

Please a clear description will be greatly appreciated.
Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox-ose Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Stewart
Solved:
Last query:
Last reply:
Revision history for this message
Best Marc Stewart (marc.stewart) said :
#1

All the automatic mounts are stored in fstab, so you'll need to add another line to that file. In your guest terminal, type:
gksudo gedit /etc/fstab
And type in your password at the prompt.

The text editor (gedit) will open fstab. You should see a list of mount points for things like proc and root (/). At the bottom, on a new line, add:
folders /media/windows-share vboxsf

Save the file, close, and restart the guest system. The shared folder should be mounted automatically.

Revision history for this message
eyekhay@hotmail.co.uk (eyekhay) said :
#2

Thanks Marc Stewart, that solved my question.