|
From: | Christian Franke |
Subject: | Re: [Bug-ddrescue] Re: ddrescue patch for unsigned/signed compiler warnings |
Date: | Tue, 02 Mar 2010 23:27:19 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100104 SeaMonkey/2.0.2 |
Hi Martin,
Hi Antonio,Martin Koeppe wrote: > Unfortunately gddrescue is not available for Windows. There is at least a cygwin port of ddrescue. Just search for "ddrescue cygwin".yes, but I prefer a native Windows build because I need it on many different boxes and only occasionally on one particular box. And all of the boxes don't have cygwin installed.
The Cygwin version of ddrescue does not require a Cygwin install. It requires only cygwin1.dll is in same directory or in the PATH. I have successfully run this ddrescue.exe also from a UBCD4Win Live CD without a Cygwin install.
I've done a quick build of a native Windows ddrescue.exe with MinGW g++. Required only few hacks (attached).
to build on MSYS: $ ./configure $ make to build on Cygwin: $ ./configure CXX=g++-3 CPPFLAGS=-mno-cygwin LDFLAGS=-mno-cygwin $ make (Or: cross-compile it on Linux :-)But this version does not work with raw devices (e.g. '\\.\PhysicalDrive1') because lseek(., 0, SEEK_END) fails. The lseeki64() from MSVCRT.dll apparently cannot be used to determine the size of a raw device.
Did you actually try your code with a raw disk or CD/DVD device? Which MSVC version did you use?
Regards, Christian
ddrescue-mingw.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |