Resolves sector problems on a damaged file or a defective disk. (Beginning with v6.0, this program is no longer available; in v6.0 and later, use the ScanDisk utility.)
Defective disk:
RECOVER drive:
Damaged file:
RECOVER [drive:][path]filename
none.
Check Disk - check and repair disk problems:
CHKDSK command.
Equivalent Linux BASH commands:
cksum - Print CRC checksum and byte counts (can detect problems
but not fix them)
If a disk develops problems, you can use this command to attempt to fix sector problems. You can recover either the file containing that sector (but without the bad sector) or the entire disk (if there were sector problems in the disk directory area).
Recover is designed to help in the case of hardware failure. When a drive fails the failure is not always total, in other words you may be able to read some of the files but not others, and some files will be only partly readable.
The data on a disk is stored in tracks and sectors in an almost random manner. Data stored in a bad sectors cannot be read.
RECOVER reads a file sector by sector and recovers data from the good sectors.
Recover will not allow you to undelete a file.
Recover files one at a time; move each file to a good disk before editing to re-enter missing information. In the case of complex documents you will probably lose formatting/graphics but will retain raw text.
To recover the file NEWFILES.TXT, enter:
RECOVER NEWFILES.TXT
The program will read the file, sector by sector, skipping the bad sectors. When a bad sector is found, the sector is marked and DOS will no longer allocate your data to that sector. To recover the disk in drive A, enter:
RECOVER A:
Each recovered file will be listed in the directory in the form FILEnnnn.REC, where nnnn is a sequential number starting with 0001.
If there is not enough room in the root directory, a message will be printed and the program will store information about the extra files in the file allocation table. You can run RECOVER later to regain these files (after you have removed files to make more room in the root directory).
none.