Shared Folder "protocol error" when rm files or us

Discussions about using Linux guests in VirtualBox.
Post Reply
ggeisen
Posts: 15
Joined: 17. Dec 2008, 18:46

Shared Folder "protocol error" when rm files or us

Post by ggeisen »

Share folder is mounted rw and I can browse, create and delete files, but some operations fail with a "protocol error". Specifically the commands `rm ~*`, `rm *.o` and `ar <library>`.

WinVista host with folder shared (all firewalls off)
RedHat 7, CentOS, Ubuntu guests (all exhibit same problem)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Do you get the same error if you do it from a file manager like Nautilus? If you want to remove a file that starts with a tilde (~), you need to tell it that it's the current folder, as ~ is also referred to your home folder.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ggeisen
Posts: 15
Joined: 17. Dec 2008, 18:46

Post by ggeisen »

`rm *.o` fails also, as root

interesting though ... if no .o files exist I get the error (which I can probably live with) but `rm *.o` works silently if at least one .o file exists.

Now I just have to figure out what's going on with the `ar` command
ile
Posts: 4
Joined: 9. May 2010, 22:20
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux

Re: Shared Folder "protocol error" when rm files or us

Post by ile »

I get a lot of these when compiling stuff.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Shared Folder "protocol error" when rm files or us

Post by Sasquatch »

Did you check the small FAQ in my Shared Folders guide (Howto: Use Shared Folders)? If that doesn't work, then it appears that shared folders isn't really made for compiling source code. I've read other replies of Windows users unable to run their Visual Studio projects from a shared folder. I know it is an additional step in compiling software, but copy the sources to the local drive of the VM and compile it from there.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ile
Posts: 4
Joined: 9. May 2010, 22:20
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux

Re: Shared Folder "protocol error" when rm files or us

Post by ile »

Yes, I did. I have a Win7 host and a Linux guest, and get these "rm: protocol errors", also there was some other problems with compiling, but the cause may be similar as for the protocol errors.

Well, I will try a FAT32 filesystem next for the shared folder id it makes any difference...
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Shared Folder "protocol error" when rm files or us

Post by Sasquatch »

It's not the Host file system that's the problem, it's either the shared folder name and mount point on the Linux Guest. With copying it to a local drive, I mean you copy the files you want to compile to the VM drive itself. I'm sure that it will compile properly after that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
ile
Posts: 4
Joined: 9. May 2010, 22:20
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux

Re: Shared Folder "protocol error" when rm files or us

Post by ile »

Yes, I'm sure copying will work, but that would defeat some benefits of the shared folder - I would like to use editor in Windows and compile in Linux...
marriealen
Posts: 1
Joined: 21. Nov 2010, 15:05
Primary OS: MS Windows 7
VBox Version: OSE Mandriva
Guest OSses: windows 7

Re: Shared Folder "protocol error" when rm files or us

Post by marriealen »

These errors are mainly due to locked long paths,to do it efficiently i had used a tool available at http://pathtoodeep.com ,it will surely help you resolve this problem
Post Reply