Linux Mount Protocol Error
Contents |
Opened 9 years ago Last modified 2 months ago Mounting share directory on Linux host result in Protocol error if default share name is used Reported by: paulsiu Owned by: Priority: minor Component: guest additions Version: VirtualBox 1.5.2 Keywords: Cc: Guest type: Linux Host type: other Description (last modified /sbin/mount.vboxsf mounting failed with the error protocol error ubuntu by michael) (diff) Host is Ubuntu 7.10. Guest is Linux Mint 4.0 I created a virtualbox shared folder protocol error writing new shared directory using the GUI in a machine's setting. The GUI will prompt me to select a host directory for the /sbin/mount.vboxsf: mounting failed with the error: protocol error centos shared directory. When I select the share directory, a share name is automatically generated. So if I select the directory "/home/paulsiu/vshare", the share name "vshare" is created. If I attempt to mount the vshare using the following sf_read_super_aux err=-71 command in the Linux Guest I get the following error: sudo mount -t vboxsf vshare /home/paulsiu/share /sbin/mount.vboxsf: mounting failed with the error: Protocol error The syslog will have the error: Oct 8 18:27:09 wxbuilder kernel: vboxvfs: sf_glob_alloc: vboxCallMapFolder failed rc=-102 Oct 8 18:27:09 wxbuilder kernel: sf_read_super_aux err=-71 Now suppose I go back into the GUI and change the "vshare" to "vshare2". The following mount command will work: sudo mount -t vboxsf vshare2 /home/paulsiu/share For
Mount.vboxsf Mounting Failed With The Error No Such Device
some reason, whatever Virtualbox select as the default share name will always fail to mount. If you pick something else, it will work. Change History comment:1 in reply to: ↑ description ; follow-up: ↓ 2 Changed 9 years ago by allentiak Replying to paulsiu: Host is Ubuntu 7.10. Guest is Linux Mint 4.0 It also happened to me. My host is a Debian stable/testing; the guest is Ubuntu 7.10. VirtualBox is also version 1.5.2. I followed your advise and it worked. Thank you for reporting the bug. comment:2 in reply to: ↑ 1 Changed 9 years ago by abitgroggy I followed your advise and it worked. Works okay if you use the mount command directly or fstab to mount. I still have the problem on 1.5.6 with Ubuntu 7.10 when using autofs to mount in /misc. Works fine with Fedora 8. I found in Fedora 8 that fstab would not work as the vboxsf was not loaded yet, so switched to autofs. comment:3 follow-ups: ↓ 4 ↓ 9 Changed 8 years ago by frank I don't think this is a bug in VirtualBox. There is a known issue with Linux mount: If there exists are directory or file of the same name as your host share then mount expands the full path of that file/directory and passed this expanded name as network share to the mount.vboxs
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of
/sbin/mount.vboxsf: Mounting Failed With The Error: No Such File Or Directory
this site About Us Learn more about Stack Overflow the company Business Learn virtualbox symlink protocol error more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask virtualbox unmount shared folder Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can https://www.virtualbox.org/ticket/928 answer The best answers are voted up and rise to the top Error mounting VirtualBox shared folders in an Ubuntu guest up vote 37 down vote favorite 25 I have Ubuntu 10 as the guest OS on a Windows 7 machine. I have been trying to setup shares through VirtualBox, but nothing is working. First, I create the share in VirtualBox and point it to http://askubuntu.com/questions/30396/error-mounting-virtualbox-shared-folders-in-an-ubuntu-guest a Windows folder. Then I try to mount the drive in Linux, but I keep getting /sbin/mount.vboxsf: mounting failed with the error: Protocol error I have read so many solutions to this, but none seem to work. I have tried: Using the mount.vboxsf syntax Reinstalling VBox additions Rebooting Enabling and trying as root account I made a share called "Test" in VBox Shared folders. Then I made a directory in ubuntu named "test2". Then I tried to execute this command: sudo mount -t vboxsf Test /mnt/test2 Any other ideas? mount virtualbox share|improve this question edited Jan 3 '14 at 18:00 Braiam 39.1k1693154 asked Mar 14 '11 at 23:18 skaz 4131714 add a comment| 6 Answers 6 active oldest votes up vote 45 down vote accepted In order to use shared folder functionality few prerequisites need to be met: Make sure that Guest Additions are properly installed on the guest OS. Users in a guest Ubuntu must be in the group vboxsf to be able to access shares. Define a directory on the host that will be used in the virtual machine using the settings dialogue of Virtual Box. Do not share personal folders l
failed with the error: Protocol error [Solution] I use Oracle's virtual machine, Virtualbox to run the Linux operating system from my Windows machine. It's the most simple way to have two operating system in your laptop or PC. Since I run most http://javarevisited.blogspot.com/2015/12/sbinmountvboxsf-mounting-failed-with-error-protocol-virtual-box-error.html of Java program in Linux, VirtualBox gives me a nice interface to run UNIX commands https://help.ubuntu.com/community/VirtualBox/SharedFolders right from Windows box. This blog post is about the mountingof shared folder failed error in Oracle's Virtualbox VM. It was working fine day before yesterday and now, after I restarted my virtual box and tried to mount my shared folder, I was greeted by this error: "/sbin/mount.vboxsf: mounting failed with the error: Protocol error". I was using the following protocol error command to mount my shared folder on VirtualBox: $ mount -t vboxsf mountfolder /home/devInHost/mountfolder I was running Oracle's VirtualBox 4.1 version with the guest operating system as RedHat Linux and host OS as Windows 8. Solving /sbin/mount.vboxsf: mounting failed with the error: Protocol error VirtualBox There was nothing different I was trying, I had run this command successfully numerous times, but it was not working today. I looked all over the internet for a mounting failed with solution and tried things like running this command after doing $ cd / or $ cd ~ but with no luck. After a bit of struggle, I found that my virtual box has no shared folder. I went to Settings -> Shared Folders and there was nothing on it, even though I had specified shared folder in the previous run. I later realized that I had not made it permanent, that's why when I restarted my VirtualBox, there was no shared folder. Once I specified the shared folder the command ran fine, even without restarting the virtual box. Summary Here is the summary of what happened, what was the root cause of the error and how I fixed it. What I was trying to do: mounting shared folder on Linux guest OS inside Oracle VirtualBox. Command: $ mount -t vboxsf mountfolder /home/devInHost/mountfolder Error: "/sbin/mount.vboxsf: mounting failed with the error: Protocol error" Cause: There was no shared folder. I had before last run but it wasn't permanent so when I restarted the Virtual box, it got reset. You can check this by going to Settings -> Shared Folders Solution: Specify the new shared folder and re-run the command$ mount -tvboxsfmountfolder/home/devInHost/mountfolder again. It will work fine, no need to restart the Virtual box again. Thanks, I hope this can save some time for you
shared folder Prepare the folder Linux Windows Troubleshooting The name was not valid Ubuntu 10.04 host Introduction This explains how to share files and folders (directories) between host and guest. (Files are shared over a network, in other words, you access remote files. For virtual machines, the network between host and guest is virtual since they are on the same real machine. But the steps you take are similar to setting up file sharing over real networks.) Required: Virtualbox Guest Additions Before sharing folders, you must install Guest Additions. For instructions on how to do this, see Guest Additions. Creating a shared folder Create a folder on the Host computer (ubuntu) that you would like to share, for example ~/share Boot the Guest operating system in VirtualBox. Select Devices -> Shared Folders... Choose the 'Add' button. Select ~/share Optionally select the 'Make permanent' option Prepare the folder Linux With a shared folder named share, as above, the folder can be mounted as the directory ~/host with the command sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/host Windows On the Windows Guest, run net use x: \\vboxsvr\shareNow anything placed in this folder should be visible from the host in the ~/share folder. Troubleshooting This can be done more generically with the following: sharename="whatever.you.want.to.call.it"; sudo mkdir /mnt/$sharename sudo chmod 777 /mnt/$sharename sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename ln -s /mnt/$sharename $HOME/Desktop/$sharenameFor the above command if you get the following error: mount: unknown filesystem type 'vboxsf'Then just change the vboxsf to vboxfs If you want to have it mount automatically upon each boot, put the mount command in /etc/rc.local Debian distros (e.g. Ubuntu 10.04 and later) HOWTO Use Shared Folders See Section 4.4 "Folder Sharing" in the VirtualBox documentation. Note: if you want to mount the directory as owned and writable only by root, omit the -ouid=1000,gid=1000 option to the mount command /sbin/mount.vboxsf: mounting failed with the error: Protocol errorThe above error could be one of the following. The name was not valid Make sure you specified the right name on the bash commands. If the guest machine is expecting "share" (as we did in the Prepare Host section) and you wrote sharename="donotshare" sudo mkdir /mnt/$sharename sudo chmod 777 /mnt/$sharename sudo mount -t vboxsf -o uid=1000,gid=1000 $sharename /mnt/$sharename ln -s /mnt/$sharename $HOME/Desktop/$sharenameit will