Draft for Information Only
ContentMS DOS Command: UNFORMAT.COM
MS DOS Command: UNFORMAT.COMReference from Microsoft MS-DOS cmd help DescriptionRestores a disk that was erased by using the FORMAT command. UNFORMAT restores only local hard disk drives and floppy disk drives; it cannot be used on network drives. The UNFORMAT command can also rebuild a corrupted disk partition table on a hard disk drive. SyntaxUNFORMAT drive: [/L] [/TEST] [/P]
Parameters
Switches
Related CommandFor information about formatting a disk, see the FORMAT command. RemarksLimitation on the UNFORMAT commandIf the FORMAT command was used with the /U switch, UNFORMAT cannot restore the disk to its previous condition. Unformatting a diskThe UNFORMAT command can restore your disk by using information in the root directory and file allocation table on the disk. As UNFORMAT rebuilds the disk, it displays how many subdirectories it has found; if you specified the /L switch, it also shows you all files in each subdirectory. If UNFORMAT finds a file that appears to be fragmented (that is, stored in separate places on the disk), it cannot recover the file because it cannot locate the remaining portions of the file. In this case, the UNFORMAT command prompts you to confirm whether you want UNFORMAT to truncate the file (that is, recover only the first part of the file that it can locate) or delete the file altogether. If UNFORMAT does not prompt you for a specific file, that file is most likely intact. In certain circumstances, however, UNFORMAT may not recognize that a file is fragmented, even though it has located only a portion of the file. If this happens to a program file, the program does not run properly. If this happens to a data file, information is lost and the program that created the data file may not be able to read it. In these cases, your only recourse is to restore the files from your original floppy disks or backup files. Sector size of the hard diskThe sectors on your hard disk must be 512, 1024, or 2048 bytes. ExamplesTo determine whether UNFORMAT can restore a formatted disk in drive A, type the following command: unformat a: /test To restore a formatted disk in drive A, listing all files and subdirectories, type the following command: unformat a: /l ©sideway ID: 110700275 Last Updated: 7/30/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019