Page 1 of 1

Shared Folders

Posted: 13. Apr 2009, 14:26
by redshark313
Hi all,

Got Win_XP host with CentOS 5.2 Linux guest and I have done the folllowing to set up a shared folder:

1. open vbox
2. create “share” folder in C: local drive as shared folder
3. boot into virtual CentOS
4. login as root
5. mkdir /mnt/share_xp
6. vi /etc/sudoers
7. change root line to:
a. root ALL = NOPASSWD : ALL
8. cd /root
9. mkdir scripts
10. chmod 777 scripts
11. nano scripts/shared-folders
12. #!/bin/sh
13. sudo mount –t vboxsf share /mnt/share_xp
14. chmod 777 share-folders
15. ctrl+O to output, then return
16. ctrl+X to exit
17. Add the script to Gnome startup programs:
Desktop > Preferences > Sessions > Startup Programs

Unfortunately, the system doesn't auto share the folder, if I run the script manually then the share works, so I'm wondering if anyone could suggest another method to point 17. above, thanks in advance.

Re: Shared Folders

Posted: 13. Apr 2009, 16:00
by Sasquatch
Check my howto in the Linux Guests forum.

Re: Shared Folders

Posted: 13. Apr 2009, 17:12
by redshark313
Got it, didn't see that section first time round. Worked, thanks.

Re: Shared Folders

Posted: 14. Apr 2009, 15:34
by Sasquatch
Great, then I'm locking this one.