Shared Folders
Posted: 13. Apr 2009, 14:26
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.
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.