Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Disk formatting
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Formatting == === DOS, OS/2 and Windows === [[Image:Unformat.gif|thumb|MS-DOS 6.22a FORMAT /U switch failing to overwrite content of partition]] ''format command'': Under [[MS-DOS]], [[PC DOS]], [[OS/2]] and [[Microsoft Windows]], disk formatting can be performed by the <code>[[format (command)|format]]</code> [[command (computing)|command]]. The <code>format</code> program usually asks for confirmation beforehand to prevent accidental removal of data, but some versions of DOS have an undocumented <code>/AUTOTEST</code> option; if used, the usual confirmation is skipped and the format begins right away. The WM/FormatC [[Macro virus (computing)|macro virus]] uses this command to format drive C: as soon as a document is opened. ''Unconditional format'': There is also the <code>/U</code> parameter that performs an ''unconditional'' format which under most circumstances overwrites the entire partition,<ref>{{cite web |url = http://www.mdgx.com/secrets.htm#FORMAT-U |title = AXCEL216 / MDGx MS-DOS Undocumented + Hidden Secrets |access-date = 2008-06-07}}</ref> preventing the recovery of data through software. Note however that the <code>/U</code> switch only works reliably with floppy diskettes (see image to the right). Technically because unless <code>/Q</code> is used, floppies are always low level formatted in addition to high-level formatted. Under certain circumstances with hard drive partitions, however, the <code>/U</code> switch merely prevents the creation of <code>[[unformat (command)|unformat]]</code> information in the partition to be formatted while otherwise leaving the partition's contents entirely intact (still on disk but marked deleted). In such cases, the user's data remain ripe for recovery with specialist tools such as [[EnCase]] or [[disk editor]]s. Reliance upon <code>/U</code> for secure overwriting of hard drive partitions is therefore inadvisable, and purpose-built tools such as [[DBAN]] should be considered instead. ''Overwriting'': In Windows Vista and upwards the non-quick format will overwrite as it goes. Not the case in Windows XP and below.<ref> {{cite web | url = http://support.microsoft.com/kb/941961 | title = MSKB941961: Change in the behavior of the format command in Windows Vista | publisher = [[Microsoft Corporation]] | quote = The format command behavior has changed in Windows Vista. By default in Windows Vista, the format command writes zeros to the whole disk when a full format is performed. In Windows XP and in earlier versions of the Windows operating system, the format command does not write zeros to the whole disk when a full format is performed. | date = 2009-02-23 | access-date = 2012-10-24 }} </ref> ''OS/2'': Under OS/2, format will overwrite the entire partition or logical drive if the <code>/L</code> parameter is used, which specifies a ''long'' format. Doing so enhances the ability of [[CHKDSK]] to recover files. === Unix-like operating systems === High-level formatting of disks on these systems is traditionally done using the <code>[[mkfs]]</code> command. On Linux (and potentially other systems as well) <code>mkfs</code> is typically a wrapper around filesystem-specific commands which have the name <code>mkfs''.fsname''</code>, where ''fsname'' is the name of the filesystem with which to format the disk.<ref>{{cite web |url = http://linux.die.net/man/8/mkfs |title = mkfs(8) - Linux man page |access-date = 2010-04-25}}</ref> Some filesystems which are not supported by certain implementations of <code>mkfs</code> have their own manipulation tools; for example [[Ntfsprogs]] provides a format utility for the [[NTFS]] filesystem. Some Unix and Unix-like operating systems have higher-level formatting tools, usually for the purpose of making disk formatting easier and/or allowing the user to partition the disk with the same tool. Examples include [[GNU Parted]] (and its various GUI frontends such as [[GParted]] and the [[KDE Partition Manager]]) and the [[Disk Utility]] application on [[Mac OS X]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)