[英]Copy files from corrupted HD using a powershell script
I am trying to use a script that ignores I/O errors on a HD, to copy whatever is good there into another HD. 我正在尝试使用一个脚本,该脚本忽略HD上的I / O错误,将其中的任何内容复制到另一个HD中。 I found this script here : http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
( https://raw.github.com/DavorJ/PS-ForceCopy/master/Force-Copy.ps1 ) that does just that...but i cant get it to work. 我在这里找到此脚本: http: http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
: http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
/ http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
/ http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
/06/02/ http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
/ http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/
/ ( https:/ /raw.github.com/DavorJ/PS-ForceCopy/master/Force-Copy.ps1 )就是这样做的...但是我无法使它工作。
I am trying with command : 我正在尝试使用命令:
.\Force-Copy.ps1 -SourceFilePath "I:\Downloads\" -DestinationFilePath "H:\Downloads" -MaxRetries 6
but it gives me this weird error: 但这给了我这个奇怪的错误:
F:\SSDU\Desktop\Force-Copy.ps1 : Cannot validate argument on parameter 'SourceFilePath'. The "Test-Path -LiteralPath $_ -Type Leaf" validation script for the argument with value "I:\Downloads\" did not return true. Determine why the validation script failed and then try the command again.
At line:1 char:34
+ .\Force-Copy.ps1 -SourceFilePath "I:\Downloads\" -DestinationFilePath
"H:\Downlo ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Force-Copy.ps1], ParameterBind
ingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Force-Copy.ps1
Anyone knows how to use this in win-8 64-bit ? 有谁知道如何在Win-8 64位中使用它? -Thanks -谢谢
So, it's not a PowerShell solution, but for getting whatever you can off a dying drive I recommend using Roadkil's Unstoppable Copier. 因此,这不是PowerShell解决方案,但是为了获得可以从即将死机的驱动器中获得的一切,我建议使用Roadkil的Unstoppable Copier。 You can download it from the author at: 您可以从以下位置从作者那里下载它:
http://www.roadkil.net/program.php/P29/Unstoppable%20Copier http://www.roadkil.net/program.php/P29/Unstoppable%20复印机
I have had good success with that one. 我在那件事上取得了成功。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.