candera / hobocopy

An open source backup tool for Windows
http://candera.github.com/hobocopy/
MIT License
176 stars 52 forks source link

Can not work in Sector-to-Sector mode. #44

Closed andywang0804 closed 12 years ago

andywang0804 commented 12 years ago

I have read your great article http://craigandera.blogspot.jp/2006_09_01_archive.html a few weeks ago and downloaded the source code. I am trying to develop a program to backup my system. In my opinion, I would like to copy all the data sector by sector. Because my C drive contains a lots of file. If copy the files recursively, it will take a very long long time.

Finally, I write a function CreateShadowCopy base on your codes. This function will create a shadow for me and returns a path "\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\", I try to open the path "\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1" (without the final "\") using CreateFile as a device. In my program, it reads all the data sector by sector and write them to another partition.

But unfortunately, the cloned partition is corrupted and contains a lot of errors. Does it meas that VSS does not support coping data sector by sector?

Best wishes

andywang0804 commented 12 years ago

Oh~ In addition, my system is Win7 64bit.

candera commented 12 years ago

That's an interesting question, but I'm afraid I have no idea of the answer. Sounds like it would be a better question for the VSS team at Microsoft. I wish you the best of luck!