Find the answer to your Linux question:
Results 1 to 6 of 6
I'd like to know how to access a shared folder, let's say the /home/myname/shared I'm using Mandriva Linux as host OS, and have installed Gutsy as a guest. I would ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556

    Shared folders in VirtualBox


    I'd like to know how to access a shared folder, let's say the
    /home/myname/shared

    I'm using Mandriva Linux as host OS, and have installed Gutsy as a guest. I would like to use a shared folder for application's development. Unfortunatelly the Unix commands has different kind of outputs in the two Linuxes so I need to work paralelly in two OS's.

    I have installed VirtualBox Guest Additions, but don't know how to reach the folder from within Gutsy.

    thanks!
    If you need a CD/DVD catalogizer, give a try to my program:
    http://www.kde-apps.org/content/show...content=100682
    Linux Usert#430188

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    Did you try ...
    mount -t vboxsf [-o OPTIONS] sharename mountpoint
    given in the VirtualBox help?

    Steps should be ...
    1. create folder to share (lets say its /home/your-name/share-folder)
    2. select virtual machine and setup share folder (folder path is /home/your-name/share-folder ... and you set folder name to my-share)
    3. start vm and create folder in vm to mount share to (lets say its /media/shared-stuff then
    Code:
    sudo mkdir /media/shared-stuff
    )
    4. then mount the shared folder in the vm
    Code:
    sudo mount -t vboxsf my-share /media/shared-stuff
    ... note its vboxsf not vboxfs in the mount command.
    If that does not work what errors do you get ?

  3. #3
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556
    O.K. I've succeeded to mount the folder, but I still cannot write into the shared folder from the guest OS. I can list its content, eventually open it, but not change it. How could I gain write access?
    If you need a CD/DVD catalogizer, give a try to my program:
    http://www.kde-apps.org/content/show...content=100682
    Linux Usert#430188

  4. #4
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    You can make the share read only in vbox setup ... so I'd check that first ... what does the guest OS return for mount? is it listing rw or ro access? what permissions does your shared folder have in the host OS?

  5. #5
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556
    Basically under the guest it is owned by root. It mounts normally, I've tried to mount with defaults option, but it won't give me write access. In VirtualBox full access is enabled. I'll try to use mc for copy as root.
    If you need a CD/DVD catalogizer, give a try to my program:
    http://www.kde-apps.org/content/show...content=100682
    Linux Usert#430188

  6. #6
    Linux Enthusiast minthaka's Avatar
    Join Date
    May 2006
    Location
    Mol, Vojvodina
    Posts
    556
    Yes, it works with mc.
    If you need a CD/DVD catalogizer, give a try to my program:
    http://www.kde-apps.org/content/show...content=100682
    Linux Usert#430188

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •