Page 1 of 1
NTFS Junction points doesn't work with Shared folder
Posted: 12. Jul 2013, 16:10
by Sharkodlak
My host is Windows 7. I want to share folder D:\www with NTFS junction points in it.
On my guest Debian Wheezy I see:
lrwxrwx--- 1 root vboxsf 0 Jul 12 16:05 link
And I'm unable to see anything of that directory.
Re: NTFS Junction points doesn't work with Shared folder
Posted: 12. Jul 2013, 16:13
by Perryg
What is the mount statement you use?
Re: NTFS Junction points doesn't work with Shared folder
Posted: 15. Jul 2013, 16:55
by Sharkodlak
I'm using Auto-Mount, so it's automatically mounted in /media/sf_www.
Re: NTFS Junction points doesn't work with Shared folder
Posted: 15. Jul 2013, 17:13
by Perryg
I am not a strong believer in the auto-mount feature. Permission are flaky, Etc.
Remove the auto-mount and create a manual (permanent) mount with options and see if it works better for you.
Example for mount:
Code: Select all
sudo mount -t vboxsf -o rw,udi=<user uid>,gid=<user gid> <share name> <mount point>
Permanent mount can be achieved by placing the statement in the /etc/rc.local file.
Re: NTFS Junction points doesn't work with Shared folder
Posted: 17. Jul 2013, 09:08
by Sharkodlak
Even if I mount it from command line, result is same.
mount -t vboxsf -o rw,uid=33,gid=33 www /mnt/www
ls -la /mnt/www/
drwxrwxrwx 1 www-data www-data 4096 Jul 15 17:00 .
drwxr-xr-x 6 root root 4096 Jul 12 16:46 ..
lrwxrwxrwx 1 www-data www-data 0 Jun 13 15:44 link
drwxrwxrwx 1 www-data www-data 0 Jul 12 16:06 target
ls -la /mnt/www/link
ls: cannot read symbolic link /mnt/www/link: Protocol error
lrwxrwxrwx 1 www-data www-data 0 Jun 13 15:44 /mnt/www/link
Re: NTFS Junction points doesn't work with Shared folder
Posted: 17. Jul 2013, 11:30
by noteirak
I am not convinced that Shared Folder would handle something like a directory junction well....
Re: NTFS Junction points doesn't work with Shared folder
Posted: 18. Jul 2013, 16:24
by Sharkodlak
Why not? Is it a bug?
I think those junctions shall be handled on host side and guest shall see just target's directory content.
Re: NTFS Junction points doesn't work with Shared folder
Posted: 18. Jul 2013, 16:54
by noteirak
Well shared folder is not meant to be a full implementation of network share or the like, simply an easy way to share files between guest & host.
Re: NTFS Junction points doesn't work with Shared folder
Posted: 2. Dec 2013, 22:54
by frickenate
Yeah, vboxsf does not work with windows junctions (created for example with mklink /J). They *do* work with cifs mounts though. With the CIFS utilities package ( sudo apt-get install cifs-utils ), you can mount a windows share located on the host machine inside the guest machine. The exact details of how to do this depend on your setup and can be a little complicated, so I can't really walk you through it. Search online for "cifs mount" and you should be able to figure out how to mount a windows share from within linux.