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.
NTFS Junction points doesn't work with Shared folder
-
Sharkodlak
- Posts: 4
- Joined: 12. Jul 2013, 16:03
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: NTFS Junction points doesn't work with Shared folder
What is the mount statement you use?
-
Sharkodlak
- Posts: 4
- Joined: 12. Jul 2013, 16:03
Re: NTFS Junction points doesn't work with Shared folder
I'm using Auto-Mount, so it's automatically mounted in /media/sf_www.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: NTFS Junction points doesn't work with Shared folder
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:
Permanent mount can be achieved by placing the statement in the /etc/rc.local file.
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>-
Sharkodlak
- Posts: 4
- Joined: 12. Jul 2013, 16:03
Re: NTFS Junction points doesn't work with Shared folder
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
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
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: NTFS Junction points doesn't work with Shared folder
I am not convinced that Shared Folder would handle something like a directory junction well....
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
Sharkodlak
- Posts: 4
- Joined: 12. Jul 2013, 16:03
Re: NTFS Junction points doesn't work with Shared folder
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.
I think those junctions shall be handled on host side and guest shall see just target's directory content.
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: NTFS Junction points doesn't work with Shared folder
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.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
-
frickenate
- Posts: 1
- Joined: 2. Dec 2013, 22:45
Re: NTFS Junction points doesn't work with Shared folder
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.