You are not logged in.

#1 2020-10-28 12:33:59

dj pixus
Member
Registered: 2019-04-09
Posts: 10

[SOLVED] Can't copy certain files from a CIFS share

Hello!
I just reinstalled my Arch system and trying to copy the saved files from a D-link DNS-320l back to the local machine. I mount the CIFS share with "vers=1.0" option because that's the only one the NAS supports. Some files can be copied no problem, but some of them gives the following error:

[user@asdfg ~]$ cp /mnt/sharecenter/user/test.pdf .
cp: error reading '/mnt/sharecenter/user/test.pdf': Input/output error

Couldn't discover any consistency in the affected files' name / size / contents, it just happens randomly.
A 120 MB video file with a name containing spaces and national characters, copies perfectly. But a 2 MB "test.pdf" does not.
If somebody knows how to solve this, please help me. Thanks.

Last edited by dj pixus (2020-12-28 15:12:12)

Offline

#2 2020-12-28 15:11:44

dj pixus
Member
Registered: 2019-04-09
Posts: 10

Re: [SOLVED] Can't copy certain files from a CIFS share

Ok, I finally managed to fix this myself. If anyone else has this problem, the solution is to enable Oplocks on the server. Now it works perfectly.

Offline

Board footer

Powered by FluxBB