Virtualbox "/sbin/mount. vboxsf: mounting failed with the error: invalid argument" SOLUTION

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.