Format (command)

Format (command)

Format, in a DOS or Windows system, is a command line utility that performs the following actions on magnetic media:

#The boot record is placed in the location specified by the partition table.
#The FAT entries are cleared by changing them to 0x00.
#The root directory is cleared out by changing any values found to 0x00.
#Format then checks each cluster to see if it is good or bad and marks it in the FAT.

Unless you are using this command on a floppy disk and are using the /U switch, the data area is untouched. Data previously written to the media is still intact until it is overwritten when the cluster is reassigned to new data.

The format command must also be used in order to change a disk file system, as many operating systems will allow users to select the file system to format in.

On early versions of MS-DOS, the default location was usually the first floppy drive (DRIVE A:); on later versions that supported hard disk drives, that was changed to the hard disk (DRIVE C:).

These new versions of DOS had unexpected consequences; occasionally a user would learn the hard way that the command:

FORMAT [no options]

formatted the hard disk (DRIVE C:) by default. This could be disconcerting to a user who has just inserted a floppy disk, listed its directory (DIR), and been informed that no directory existed. The default had been the first floppy drive in earlier versions of MS-DOS, but the designers of MS-DOS had found it convenient to change the default to the most-used drive when hard disk drives were supported. For the developers, deleting the operating system would not have been a major problem, because they could easily replace it, but for a customer, losing the operating system—and several months' work—could be catastrophic.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Format — For information on Wikipedia article format, see Wikipedia:Manual of Style. Format may refer to: File format, layout for electronic files Text formatting, typesetting of text elements Format (command), a command line utility in many computer… …   Wikipedia

  • COMMAND.COM — Developer(s) Seattle Computer Products, Microsoft Corporation, IBM, Novell and several others. Operating system DR DOS, FreeDOS, MS DOS, Novell DOS, OpenDOS, PC DOS, PTS DOS, ROM DOS, 86 DOS, Microsoft Windows (Windows 95 Wi …   Wikipedia

  • Command.com — Saltar a navegación, búsqueda command.com es el nombre del intérprete de comandos para DOS y versiones de Windows de 16/32bits (95/98/98 SE/Me). Al ser el primer programa que se ejecuta después del inicio, posee también el rol de la configuración …   Wikipedia Español

  • command.com — Desarrollador Seattle Computer Products, Microsoft Corporation, IBM, Novell y otros Información general Género Shell …   Wikipedia Español

  • Command & Conquer: Generals — Command Conquer Generals cover art Developer(s) EA Pacific (Windows) Aspyr Media (Mac OS) …   Wikipedia

  • Command.com — Le programme COMMAND.COM est l interpréteur de commandes du système MS DOS. On ne le confondra pas avec cmd.exe, qui est l interpréteur de commande de Windows NT (Windows 2000, Windows XP...) et d OS/2. Les commandes de cmd.exe sont inspirées,… …   Wikipédia en Français

  • Command Prompt — For other uses, see Command prompt (disambiguation). CMD redirects here. For other uses, see CMD (disambiguation). Command Prompt A component of Microsoft Windows …   Wikipedia

  • Command-line interface — Screenshot of a sample Bash session. GNOME Terminal 3, Fedora 15 …   Wikipedia

  • Command and Control Research Program — For other uses, see CCRP (disambiguation). The Command and Control Research Program (CCRP) within the Office of the Assistant Secretary of Defense (NII) focuses upon (1) improving both the state of the art and the state of the practice of command …   Wikipedia

  • Command-line argument — In computer command line interfaces, a command line argument is an argument sent to a program being called. In general, a program can take any number of command line arguments, which may be necessary for the program to run, or may even be ignored …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”