Board index » cppbuilder » Data recovery tools (was .nativeapi "Re: Need help with where to start")
Andrue Cope [TeamB]
![]() CBuilder Developer |
Data recovery tools (was .nativeapi "Re: Need help with where to start")2005-06-23 06:17:12 PM cppbuilder21 Hmmm. There is a danger of this post reading like a rant and/or criticism of Mark. It isn't intended to be either but I've been recovering data and writing tools to do that for over 13 years now and I have seen the negative consequences of DiY recovery all too often. When it works it's good. When it doesn't work it mostly screws things up good and proper. I probably have some emotional attachment to this subject despite my best endeavours :) Mark Jacobs wrote: QuoteWhy re-invent the wheel, when the best disk recovery tool is Spinrite tool does and be able to make adjustments and add features as and when I need to. Data recovery is not like fixing a car. Data recovery is more like bug fixing. All you can do is work the problem until you locate the fault then determine a solution. The concept of an ideal data recovery tool is like proposing an ideal bug fixing tool. Would you just let someone else' software loose on your source trusting it to find all the bugs and letting it modify the source to fix them? Before going into a more lengthy explanation I want to reiterate rule number one where data recovery is concerned: *Never*, ever, work on the affected drive. A tool that allows (or God forbid, encourages you) to dig around a failed drive or corrupt file system should be kept out of the hands of amateurs and has only limited use to professionals (see later). If you don't have a backup then that failed drive/file system is last remaining place in the known universe that contains your data. Do you really think Mr. Joe Average should start piddling around with it? Going back to the mythical bug fixing tool:Would you run it without backing up your source code first? Lengthy explanation: Most publicly available tools are intended to allow you to fix a filesystem. Some (Spinrite for one) even claim to allow you to fix a physical fault. In order to fix a filesystem you need to: * Fully understand the nature of the problem. * Fully understand all the changes that need to be made to rectify the problem. * Be able to make all the required changes with a guarantee that the result will be exactly what the operating system expects to find. None of these stages are easy and if you get the last two wrong you are /by definition/ making things worse. Not only could the act of changing file system meta data destroy useful evidence but operating systems can be crashed by corrupt filesystems, or led into running rampant over the disk. Who do you trust to recognise misleading information - a human or a computer program? Even assuming you are in full control of the tool I still question the wisdom of attempting to repair the damage. Here's an analogy. Your house becomes unfit to live in. What do you do about it? Solution 1: Remove all your possessions (those that you can safely get to anyway). Remove whatever construction materials are unsafe (shoring up as needed). Install new construction materials making sure that the building is up to code. Reinstall all your possessions. Solution 2: Remove all your possessions (those that you can safely get to anyway). Buy a new house. Reinstall all your possessions. Which would you do? Of course some people might be keen and skilled builders so might enjoy the challenge of solution 1. But I think that most people (particularly if you consider that buying a new hard disk costs next to nothing) would opt for solution 2. As for fixing the hard disk:That depends on the nature of the fault. Certainl electronic faults (EEPROMs getting corrupt etc) can certainly be done through software. To this I would say that as long the recovery tool presents the fix as being a temporary reprieve and encourages you to take the opportunity to get your files off while you still can then I have /slightly/ fewer objections. Nonetheless rule number one is of such overriding importance that I don't think the general public should have access to such tools. If the drive has a physical fault then it probably has a very limited remaining lifetime. The time wasted by the recovery tool trying to figure out what's going on or trying half a dozen different tricks could be using up time better spent salvaging data. And there you have it:Andrue's rant on commercial data recovery tools. next week:World peace - is it the lifestyle choice of the 21st century? :) -- Andrue Cope [TeamB] [Bicester, Uk] info.borland.com/newsgroups/guide.html |