Disk2vhd : error during copy. The error could not be performed due to an I/O error

13,221

Its stupid, but running chkdisk first (yes, even when you are getting no error messages or problems anywhere else) before running hd2vhd again has fixed this for us too many times.

Share:
13,221

Related videos on Youtube

DomBat
Author by

DomBat

Updated on September 18, 2022

Comments

  • DomBat
    DomBat over 1 year

    I'm trying to convert a fully patched, Windows Server2008 R2 system disk into a VHD by using disk2vhd from Microsoft Sysinternals.

    Every time, the conversion fails with error during copy. The error could not be performed due to an I/O error, regardless of whether I sue the vhd or vhdx format, or whetehr I use the Volume Shadow Copy option.

    I am a local administrator, running disk2vhd as administrator and have disabled the anti-virus on the server, but it makes no difference.

    I see this event in the eventlog around the same time as the error, so I suspect they're related.

    Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005, Access is denied. This is often caused by incorrect security settings in either the writer or requestor process.

    Operation: Gathering Writer Data

    Context: Writer Class Id: {GUID} Writer Name: System Writer

    Writer Instance ID: {GUID}

    disk2vhd io error screenshot

    What's the problem here, and why can't I get this disk converted?

  • DomBat
    DomBat about 9 years
    VMware Converter didn't work, we tried that first. Originally just did C and that had the same issue too.
  • DomBat
    DomBat about 9 years
    possibly, but it just said it was corrupt and no other messages. I prefer Microsoft tools and so this thread is about disk2vhd.
  • Spooler
    Spooler over 7 years
    I would never call it stupid to check the integrity of a system before converting it to an entirely new platform. This is sound advice, even if it does nothing to fix this particular issue.
  • djdomi
    djdomi almost 3 years
    @DomBat Then add this, in case of next time, to your question that you dont want to get suggests from third party tools.