To mount a shared folder in VirtualBox one can run
mount -t vboxsf [share name] [mountpoint]. Ever since ArchLinux integrated some VirtualBox things into the kernel I noticed that if
[share name] and the directory name of
[mountpoint] coincide, then the mount operation will always fail with
File or directory not found.
cd ~ mkdir test mount -t vboxsf test test # "mount failed: File or directory not found" mv test test2 mount -t vboxsf test test2 # success
I tested this with and without
virtualbox-guest-utils. Why is this happening? Is there any way to fix this?
I am using
Linux Arch 5.7.7-arch1-1 x86_64 GNU/Linux in
VirtualBox 6.1.8 x64 on a
Windows 10 v1903 x64 host.