问题
I am running a linux (ubuntu) system within a virtual box container. I used symlinks in the shared directory, which needed some extra work as described here: https://www.virtualbox.org/ticket/10085
This worked very well for my requirements running a Windows 8 host. Now, I switched to Windows 10 and the symlinks do not work any more. I am still able to create symlinks, but the correct path cannot be resolved.
Using readlink, I can see that the created symlink is wrong. If I create a symlink with
ln -s /media/data/jquery.js /media/data/test.js
the returned value with readlink is
\media\data\jquery.js
Obviously, the directory separator is incorrect. If I create a symlink outside the shared directory (to the same file on the shared directory), the path is correct.
Does anyone have an idea how to fix the incorrect directory separator?
Mathias
来源:https://stackoverflow.com/questions/31830915/symlinks-in-shared-folder-of-virtual-box-with-windows-10-host