请输入您要查询的百科知识:

 

词条 Format (command)
释义

  1. Overview

  2. See also

  3. Notes

  4. References

  5. External links

{{lowercase}}{{Infobox Software
| name = format
| logo =
| screenshot = Ms-dosformat.png
| screenshot size =
| caption = The MS-DOS format command
| developer =
| released =
| latest release version =
| latest release date =
| operating system = RT-11, 86-DOS, MS-DOS, PC DOS, OS/2, ISIS-II, TRIPOS, AmigaDOS, OS-9, FlexOS, SpartaDOS X, 4690 OS, FreeDOS, PTS-DOS, Microsoft Windows, ReactOS
| genre = Command
| license =
| website =
}}

In computing, format, a command-line utility included in 86-DOS, MS-DOS, IBM PC DOS and OS/2, Microsoft Windows and ReactOS operating systems, carries out disk formatting.

The command is also available in ISIS-II,[1] TRIPOS[2], AmigaDOS[3], OS-9[4], FlexOS[5], SpartaDOS X,[6] 4690 OS[7], PTS-DOS,[8] and in the DEC RT-11[9] operating system. The FreeDOS version was developed by Brian E. Reifsnyder.[10]

Overview

The command performs the following actions by default on a floppy disk, hard disk drive, solid state (USB), or other magnetic medium (it will not perform these actions on optical media):

  1. clearing the FAT entries by changing them to 0x00
  2. clearing the FAT root directory by changing any values found to 0x00&91;11&93;&91;11&93;&91;12&93;&91;13&93;
  3. checking each cluster to see if it is good or bad and marking it as good or bad in the FAT

Optionally (by adding the /S, for "system" switch), Format can also install a Volume Boot Record. With this option, Format writes bootstrap code to the first sector of the volume (and possibly elsewhere as well). Format always writes a BIOS Parameter Block to the first sector, with or without the /S option.

Another option (/Q) allows for what Microsoft calls "Quick Format". With this option the command will not perform steps 2 and 3 above.{{Citation needed|date=April 2009}} Format /Q does not alter data previously written to the media.

Typing "Format" with no parameters in MS-DOS 3.2 or earlier would automatically, without prompting the user, format the current drive; however in MS-DOS 3.3 and later it would simply produce the error: "required parameter missing".

Any storage device must have its medium structured to be useful. This process is referred to{{by whom|date=August 2014}} as "creating a filesystem" in Unix, Linux, or BSD.[14] Under these systems different commands are used. The commands can create many kinds of file systems, including those used by DOS, Windows, and OS/2.

See also

  • Disk formatting
  • Data recovery
  • convert
  • File Allocation Table
  • Design of the FAT file system
  • fdisk
  • PC DOS 7.10 Format32

Notes

1. ^ISIS II Users Guide
2. ^https://www.pagetable.com/docs/amigados_tripos/tripos_manuals.pdf
3. ^https://archive.org/details/1988-rugheimer-spanik-amigados-quick-reference
4. ^{{cite book|author=Paul S. Dayan|year=1992|title=The OS-9 Guru - 1 : The Facts|publisher=Galactic Industrial Limited|isbn=0-9519228-0-7}}
5. ^http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
6. ^SpartaDOS X 4.48 User Guide
7. ^https://archive.org/details/4690OSV6r2UsersGuide/page/n169
8. ^{{cite web |title=PTS-DOS 2000 Pro User Manual |publisher=Paragon Technology GmbH |location=Buggingen, Germany |date=1999 |url=http://download.paragon-software.com/doc/manual_dos_eng.pdf |access-date=2018-05-12 |dead-url=no |archive-url=https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf |archive-date=2018-05-12}}
9. ^http://paleoferrosaurus.com/beta/documents/rt11help.html#FORMAT
10. ^http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.2/repos/pkg-html/format.html
11. ^{{cite web|first1=Tim|last1=Paterson|authorlink1=Tim Paterson|title=Microsoft DOS V1.1 and V2.0: /msdos/v20source/FORMAT.TXT|url=http://www.computerhistory.org/atchm/microsoft-research-license-agreement-msdos-v1-1-v2-0/|publisher=Computer History Museum, Microsoft|date=2013-12-19|origyear=1983|accessdate=2014-03-25}} (NB. While the publishers claim this would be MS-DOS 1.1 and 2.0, it actually is SCP MS-DOS 1.25 and a mixture of Altos MS-DOS 2.11 and TeleVideo PC DOS 2.11.)
12. ^{{Cite web|url=http://www.computerhistory.org/atchm/microsoft-ms-dos-early-source-code/|title=Microsoft MS-DOS early source code|series=Software Gems: The Computer History Museum Historical Source Code Series|first=Len|last=Shustek|date=2014-03-24|accessdate=2014-03-29}} (NB. While the author claims this would be MS-DOS 1.1 and 2.0, it actually is SCP MS-DOS 1.25 and a mixture of Altos MS-DOS 2.11 and TeleVideo PC DOS 2.11.)
13. ^{{cite web|url=http://blogs.technet.com/b/microsoft_blog/archive/2014/03/25/microsoft-makes-source-code-for-ms-dos-and-word-for-windows-available-to-public.aspx|title=Microsoft makes source code for MS-DOS and Word for Windows available to public|date=2014-03-25|first=Roy|last=Levin|work=Official Microsoft Blog|accessdate=2014-03-29}} (NB. While the author claims this would be MS-DOS 1.1 and 2.0, it actually is SCP MS-DOS 1.25 and a mixture of Altos MS-DOS 2.11 and TeleVideo PC DOS 2.11.)
14. ^{{man|8|newfs|FreeBSD|EXAMPLE section}}
15. ^The directory entries get filled with 0x00 since MS-DOS 1.25 and PC DOS 2.0. If the Format command line option /O is provided, the first byte of each dire entry is set to 0xE5h to create a FAT format useable by PC DOS 1.0-1.1. However, not giving /O will significantly speed up directory searches under MS-DOS 1.25 and PC DOS 2.0 and higher. Older versions of MS-DOS, PC DOS, and 86-DOS only supported the 0xE5 marker.
[15]

References

External links

  • Microsoft Windows XP Professional Product Documentation: "format"
  • MSKB255867: How to Use the Fdisk Tool and the Format Tool to Partition or Repartition a Hard Disk
  • Microsoft DOS format command
  • Recovery Console format command
{{Windows commands}}

4 : External DOS commands|OS/2 commands|Windows commands|Hard disk software

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/14 17:25:52