Workarounds for file system type errors in Linux shared files in VirtualBox

Source: Internet
Author: User
Tags syslog system log

Transferred from: http://blog.csdn.net/ls1160/article/details/24913391

Recently in the study of Linux under the Android source code compilation, encountered some problems, on the virtual machine shared files.

Because the network download Android source code is too slow, if according to Lao Luo's method, so he downloaded the package offline, intends to directly share to the Linux virtual machine inside the use.

Shared directly in the lab, but compiled, because Linux is 32-bit, has produced some errors do not know how to solve. So I wanted to change to 64, but this time sharing the file is a problem.

The back of the data still solved.

"Steps to share files online"

sudo mkdir/mnt/shared

sudo mount-t vboxsf baidu/mnt/shared

where "Baidu" is the name of the previously created shared folder. OK, now Ubuntu and host can transfer files.

My error message will appear:

Mount: File system type error, option error, Baidu has bad super block, missing code page or helper program, or other error (for some file systems (such as NFS, CIFS) You may need a/sbin/mount.< Type > Helper program) in some cases Some useful information can be found in the syslog-please try DMESG | Tail such a command to see.

However, you can view the mounted files in/media/sf_baidu (my shared folder name is Baidu)

(But I'm showing no permissions to open Sf_baidu here.) So I began to look for other ways. )

===========================================================================

Errors were found by viewing the system log/var/log/syslog

Sf_read_super_aux err=-22.

The following workarounds are found:

Cd/sbin

sudo rm mount.vboxsf

sudo ln-s/opt/vboxguestadditions-4.3.10/lib/vboxguestadditions/mount.vboxsf

Thought should be found in the sbin below the mount.vboxsf broken, so reinstall one on it. The location of the mount.vboxsf of the re-installed discs may be a little different, and the corresponding adjustments will be possible. Corresponding configuration host Os:windows 7 bitguest os:linux Kylin-bitvirtualbox 4.3.10-virtualbox Guest Additions 4.3.10

===========================================================================

"Other steps on the Web"


If you do not want to manually mount each time, you can add an item to the/etc/fstab

Games/mnt/share vboxsf Rw,gid=100,uid=1000,auto 0 0

This will automatically be mounted.

4. Use the following command when uninstalling:

sudo umount-f/mnt/share

Attention:

The name of the shared folder must not be the same as the name of the mount point. For example, the above mount point is/mnt/shared, if the name of the shared folder is shared, the following error message will appear when the mount is mounted (see HTTP://WWW.VIRTUALBOX.ORG/TICKET/2265):

/sbin/mount.vboxsf:mounting failed with the Error:protocol error

Workarounds for file system type errors in Linux shared files in VirtualBox

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.