None


Resolve Input/Output error when trying to write to WebDAV (davfs2) mount like box.net on Linux

(0 votes, average 0 out of 5)

These instructions assume that you already configured the WebDAV filesystem by following this article.

If you are mounting a WebDAV folder on Linux using the davfs2 FUSE filesystem, you may encounter the following error when trying to write a file to the WebDAV filesystem:

cp: cannot create regular file `test.txt': Input/output error

This is caused by the WebDAV filesystem not supporting file locks. The solution is to disable file locks in the davfs2 configuration file, located at /etc/davfs2/davfs2.conf. Add (or uncomment) the following line:

use_locks      	0

Unmount and remount the WebDAV filesystem and writes should now work.

Partner Links:
Last Updated on Sunday, 20 November 2011 06:15