Your host is Windows 7, and the virtual machine is centos5x. After the shared directory "share" is set on virtualbox, use the command in the Virtual Machine
Sudo Mount-T vboxsf-O uid = <uid>, gid = <GID>, dmode = 0755, fmode = 0755 share/shareYou can mount the shared directory to the Virtual Machine System, but after installing centos6 today and setting the same shared directory "share", the following errors always occur when running the above commands
/Sbin/mount. vboxsf: mounting failed with the error: invalid argumentThe shared directory name ("share" Here) cannot be the same as the final Mount name of Mount "/Share"), So there is no way. In the shared directory settings of virtualbox, replace share with another alias" 2017123 ", and then run the command.
Sudo Mount-T vboxsf-O uid = <uid>, gid = <GID>, dmode = 0755, fmode = 0755 running 123/shareThe directory has been mounted successfully, but the specific reason is unknown.
Update
If it is too troublesome to change it, you can run umount and then mount the directory. For example, if the directory shared by Windows is share, you can use mount on Linux to check the directory, there should be rows similar to the following
... <Br/> share on/Media/sf_share type vboxsf (gid = 1001, RW) <br/>...At this point, you can first umount the/Media/sf_share, ignore the prompt content (no matter what error message), and then run the mount command, similar to the following steps
#! /Bin/sh </P> <p> sudo umount-F/Media/sf_share <br/> sudo Mount-T vboxsf-o "uid = kongxx, gid = kongxx, dmode = 0755, fmode = 0755 "Share/home/kongxx/share <br/>At this time, the above error message will not appear again.