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 00:15  
Related Articles

» How to Make Fonts on Ubuntu Linux Look Crisp Like on Microsoft Windows

Have you noticed that fonts on Linux distributions (like Ubuntu) appear fuzzy compared to Microsoft Windows? This is because Ubuntu is using a font display technique called "hinting" which draws the fonts more accurately but can appear blurry to users used to Windows. Below is an example of the difference between Polished Fonts (the Ubuntu default) and Sharp Fonts (the Windows default):Thanks to for the screenshot.InstallationIt is possible to make Ubuntu (and other Linux distributions) render...

» How to Install an Updated Driver For NVIDIA Graphics Cards

Whether you are putting a new graphics card into your computer or just want to update the driver, it is recommended that you visit the Manufacturers website. Here you will receive the latest update that will include many enhancements and improvements. Follow these steps to install the latest driver on your computer:Make sure your graphics card is installed or recognized by the system.Open up a web browser, like Internet Explorer, Mozilla Firefox, or Google Chrome, and visit...

» How to Enable Playback of MKV Files in Windows 7 Media Center

Back up your registry and create a system restore point. This is in case any problems arise in the process. the Windows 7 version of the codec pack. (The actual download is hosted by Major Geeks). When the download completes, install the codec pack.If you are running the 64-bit version of Windows 7, download and install those components as well. the MKV Registry Hack for your version of Windows 7 (32 or 64 bit).Double click the downloaded .reg file and allow the process to complete. This will...