S
S
Slightfox2012-08-05 20:24:57
linux
Slightfox, 2012-08-05 20:24:57

What is wrong with davfs2?

Good afternoon, dear habra community.
On hand is a WD MyBook Live 2 TB with Debian Lenny on board. I set out to attach Yandex.Disk to it via Webdav.
I mount the partition under Yandex.Disk:
# mount /dev/sda6 /shares/CloudDrive/
I mount the poison itself:

# mount -t davfs https://webdav.yandex.ru:443 /shares/CloudDrive/YandexDisk

The mount is successful, the output of df -h is:
MyBookLive:/shares/CloudDrive# df -h
Filesystem            Size  Used Avail Use% Mounted on

/dev/md1 1,9G 1,4G 448M 76% /
tmpfs                  50M     0   50M   0% /lib/init/rw

udev 10M 6,7M 3,4M 67% /dev
tmpfs                  50M     0   50M   0% /dev/shm

tmpfs 50M 3,4M 47M 7% /tmp
ramlog-tmpfs           20M  4,4M   16M  22% /var/log

/dev/sda4             1,7T  412G  1,3T  24% /DataVolume

/dev/sda6              17G  172M   16G   2% /shares/CloudDrive

https://webdav.yandex.ru:443
                       10G  377M  9,7G   4% /shares/CloudDrive/YandexDisk

But if we go into the directory and give the ls command, we get:
ls: reading directory .: Недопустимый аргумент
With ls -la:
ls: reading directory .: Недопустимый аргумент
total 0

The folder is empty.
However, if you go to the shared folder and move any file there, after a while it will appear in the web interface, disappearing from the folder.
PS Tried on Ubuntu 10.04, Lubuntu 12.04 - everything works fine there, as it should.
PPS I also tried fusedav - files are seen by ls, but not by Samba, crashes when changing a set of files via the web.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
rich, 2012-08-06
@rich

WD MyBook Live - an extension of the standard functionality
"Reality, as it usually happens, broke another pair of rose-colored glasses. To begin with, inside is still Linux. Debian 5 Lenny (which is already oldstable). It cannot be updated, as support for the SoC hardware on which the device is actually implemented may fall off.
Compare davfs2 package versions on WD MyBook Live and Ubuntu 10.04/Lubuntu 12.04

V
ValdikSS, 2012-08-06
@ValdikSS

And the samba and mounting from the same user happens? And try -o allow_other

S
Slightfox, 2012-08-06
@Slightfox

MyBookLive:~# mount -t davfs https://webdav.yandex.ru:443 /shares/CloudDrive/YandexDisk/ -o allow_other
Unknown option allow_other.
Mounting and samba under root, the mount point itself is in a shared directory.
I also tried options -o rw,users, but the result is the same.

N
Nicholas, 2012-10-31
@pnick

Slightfox , did you end up making WD friends with Yandex.Disk?

T
toyan, 2015-05-29
@toyan

In davfs2.conf, set
buf_size to 66
or more.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question