M HYPE SPLASH
// general

Copying files of Windows partition using rsync gives readlink_stat(...) Input/output error (5)

By Sarah Scott

I want to copy all files of a Windows 10 system partition (NTFS) to another partition (NTFS).

I am using rsync under Ubuntu like this:

sudo rsync -axHAWXS --numeric-ids /media/windows /mnt/windows-backup

The problem is that several thousand files cannot be read.

rsync: readlink_stat("/media/windows/Program Files (x86)/Reference Assemblies/Microsoft/Framework/v3.0/de/PresentationFramework.resources.dll") failed: Input/output error (5)
rsync: readlink_stat("/media/windows/Program Files (x86)/Reference Assemblies/Microsoft/Framework/v3.0/de/ReachFramework.resources.dll") failed: Input/output error (5) ...

Upon listing the contents of a directory with those files using

sudo ls -l "/media/windows/Program Files (x86)/Reference Assemblies/Microsoft/Framework/v3.0/de/"

I get the following output:

ls: cannot access '/media/windows/Program Files (x86)/Reference Assemblies/Microsoft/Framework/v3.0/de/PresentationFramework.resources.dll': Input/output error
ls: cannot access '/media/windows/Program Files (x86)/Reference Assemblies/Microsoft/Framework/v3.0/de/ReachFramework.resources.dll': Input/output error
...
-????????? ? ? ? ? ? PresentationFramework.resources.dll
-????????? ? ? ? ? ? ReachFramework.resources.dll
...

I listing a few of those files under Windows 10 without any problems fine (file explorer and shell).

I checked the filesystem, it is undamaged. The Windows system is running without any problems.

What is the problem? How can I copy those files?

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy