shared folders are empty

This is for discussing general topics about how to use VirtualBox.
Locked
drkirkby
Posts: 17
Joined: 4. Aug 2009, 19:15
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: Windows XP, Solaris 10

shared folders are empty

Post by drkirkby »

I tried asking on the OpenSolaris hosts forum, but have got no response, so I thought I'd try here.

I've got the following setup

Sun Ultra 27 running OpenSolaris 06/2009 as host operating system
Virtualbox 3.0.12 r54655
Solaris 10 update 8 as a guest operating system.
Virtualbox additions installed.
XP virtual machine.

I've shared a couple of directories from the host. When I look at the window where the Solaris 10 host runs, I can see the two shared folders listed. One is the /export/home/drkirkby ZFS file system (my home-directory) from the host machine, which has 75 GB of data in it. I called the share 'homedirectory'. When I mount the share in the Solaris 10 virtual machine, the file system mounts, but the directory appears empty. The OpenSolaris host shows there is a 1.4 TB of space free, and 75 GB used, which is the same as what the guest operating system shows.

Code: Select all

bash-3.00$ su
Password:
# /usr/sbin/mount -F vboxfs  homedirectory /mnt
# ls /mnt
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0         58G   3.6G    53G     7%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   2.2G   968K   2.2G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        58G   3.6G    53G     7%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   2.2G    80K   2.2G     1%    /tmp
swap                   2.2G    24K   2.2G     1%    /var/run
/dev/dsk/c0d0s7        137G    64M   136G     1%    /export/home
/vol/dev/dsk/c1t0d0/vboxadditions_3.0.12_54655
                        31M    31M     0K   100%    /cdrom/vboxadditions_3.0.12_54655
homedirectory          1.4T    75G   1.4T     6%    /mnt
Has anyone got any ideas? It seems odd that the guest knows the size of the folder, knows how much space is used, but can't see any of the files.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: shared folders are empty

Post by Sasquatch »

Please don't cross-post. Stick to one topic. If someone knows the answer, he or she will find your topic. Please continue in your first one. Do note there if your XP VM works properly or not.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Locked