Unable to Share
Posted: 12. May 2015, 21:48
Hi,
I am running VirtualBox V4.3.26 on a Windows 7 64-bit host. I have successfully installed Debian V8.0.0 32-bit as the guest with guest additions of the same version. I have been trying to setup a share on the host machine that is visible in the guest. This is what I have.
Host directory: d:\VirtualBox\Shared\General
Guest directory: /home/work/shared/general
I have used VirtualBox|Settings|Shared Folders to share the host directory which I have set as Make Permanent. The directory /home/work/shared/general exists on the guest. I log into the guest and type the following command. sudo mount -t vboxsf general /home/work/shared/general
This works as expected and I am able to see the share in Debian. When I use the mount command on its own i get the following entry for this share.
none on /home/work/shared/general type vboxsf (rw,nodev,relatime)
Is this correct (i.e. the "none on" part) even though the share works?
I would like to make this mount at boot up so I modify /etc/fstab as recommended by adding the following line.
general /home/work/shared/general vboxsf defaults 0 0
On reboot Debian fails to startup correctly and switches to Safe Mode. I use the command journalctl -xb to view the startup log and see an entry "Failed to mount /home/work/shared/general". The line I added was then removed from fstab. After a bit of googling I added the following line to /etc/rc.local.
mount -t vboxsf general /home/work/shared/general
This time Debian booted up and I was able to login but was unable to see any of the shared files.
I have been running Debian V7.8.0 and used the fstab modification which worked fine on that version. After lots of googling I still have not been able to successfully setup this share and any help would be appreciated.
Also when I try to unmount the share using the following command.
sudo umount /home/work/shared/general
I get the error "umount nfs: /home/work/shared/general is not an NFS filesystem". What is the correct way to unmount this vboxsf share?
I am running VirtualBox V4.3.26 on a Windows 7 64-bit host. I have successfully installed Debian V8.0.0 32-bit as the guest with guest additions of the same version. I have been trying to setup a share on the host machine that is visible in the guest. This is what I have.
Host directory: d:\VirtualBox\Shared\General
Guest directory: /home/work/shared/general
I have used VirtualBox|Settings|Shared Folders to share the host directory which I have set as Make Permanent. The directory /home/work/shared/general exists on the guest. I log into the guest and type the following command. sudo mount -t vboxsf general /home/work/shared/general
This works as expected and I am able to see the share in Debian. When I use the mount command on its own i get the following entry for this share.
none on /home/work/shared/general type vboxsf (rw,nodev,relatime)
Is this correct (i.e. the "none on" part) even though the share works?
I would like to make this mount at boot up so I modify /etc/fstab as recommended by adding the following line.
general /home/work/shared/general vboxsf defaults 0 0
On reboot Debian fails to startup correctly and switches to Safe Mode. I use the command journalctl -xb to view the startup log and see an entry "Failed to mount /home/work/shared/general". The line I added was then removed from fstab. After a bit of googling I added the following line to /etc/rc.local.
mount -t vboxsf general /home/work/shared/general
This time Debian booted up and I was able to login but was unable to see any of the shared files.
I have been running Debian V7.8.0 and used the fstab modification which worked fine on that version. After lots of googling I still have not been able to successfully setup this share and any help would be appreciated.
Also when I try to unmount the share using the following command.
sudo umount /home/work/shared/general
I get the error "umount nfs: /home/work/shared/general is not an NFS filesystem". What is the correct way to unmount this vboxsf share?