First Steps in DOS File Recovery
The first three steps in file recovery are quite easy and require no specific knowledge:-
1)Don't panic! Your information is still there, and safe.
2)Don't touch the keyboard! Your information is safe...until your operating system writes over it.
3)Don't switch off! A lot of temporary files are created during start up, and you don't want them to be created over the top of your accidentally deleted files.
File Recovery Levels in DOS
Later versions of DOS (DOS 5.* and onwards) have three possible levels of file recovery, Delete Sentry, Delete Tracker, and the basic Undelete.
Delete Sentry offers the highest degree of protection, and works in a similar fashion to Recycle Bin in that it keeps copies of all your deleted files in a hidden file. This protects them from being overwritten and more or less guarantees file recovery will be possible. The down side is that the file can end up being huge. In DOS 5 the maximum size is 7% of your hard drive capacity, in DOS 6 it can go to 20%!
Those values can be changed by fiddling with UNDELETE.INI but it is quite a tedious job, as is the purging routine to get rid of all those files permanently.
The next level of file recovery is Delete Tracking, which stores the location of deleted files in a file called PCTRACKR.DEL. This uses less disk space, but the price you pay is that the stored locations may be overwritten if you don't act promptly, and then your files will be impossible to recover.
The third level of file recovery is the standard UNDELETE method. This is the one where DOS brings back a list of your deleted files, all with the first letter of their names replaced by #. It then asks you to supply the missing first letter. Fortunately it doesn't matter if you can't remember it, just type any letter at random and DOS will go ahead and tell you that your file has been successfully recovered, even if it does have some unpronounceable name.
Using DOS File Recovery
In theory, to use DOS file recovery all that is required is for you to type in 'UNDELETE' at the DOS prompt, but when you do don't be too surprised if nothing happens or your efforts are rewarded by nothing more than a reply saying something like '38 files can be recovered', but with none of the promised file recovery actually taking place.
If this happens, it is because you have those three levels of file recovery to choose from. The level of file recovery protection is configured by editing the AUTOEXEC.BAT file so only one level can be enabled at a time, and the UNDELETE command requires the relevant switch to run it.
Luckily this is not as horribly complex as it sounds; the UNDELETE switches are fairly simple. If you have the basic level enabled, just use UNDELETE with no switch. If you have specified Delete Tracker the switch is /DT, and logically enough for Delete Sentry it is /DS.
Andrew Whitehead is a contributor at Free-backup.info -- the home of the popular Amazon S3 based tool for online file backup -- Back2zip. This article can be found at http://free-backup.info/file-recovery-using-dos-undelete.html


Send page to a Friend! »
Bookmark this Site! »
All Podcast »