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

 

词条 CHKDSK
释义

  1. Implementations

     Microsoft Windows  The alleged Windows 7 bug  MS-DOS 

  2. See also

  3. References

  4. External links

{{Infobox Software
| name = chkdsk
| logo =
| screenshot = CHKDSK WIN10.PNG
| screenshot size =
| caption = Chkdsk.exe in action on drive C: in Windows 10
| developer = Digital Research, Microsoft, IBM
| released =
| latest release version =
| latest release date =
| operating system = DOS, FlexOS, 4690 OS, OS/2, Microsoft Windows
| genre = Command
| license =
| website = n/a
}}

CHKDSK (short for "check disk") is a system tool in DOS, FlexOS[1], 4690 OS[2], OS/2 and Microsoft Windows. It verifies the file system integrity of a volume and fixes logical file system errors. It is similar to the fsck command in Unix and similar to Microsoft ScanDisk which co-existed with CHKDSK in Windows 9x and MS-DOS 6.x.

Implementations

{{Expand section|date=February 2019}}

Microsoft Windows

CHKDSK can be run from DOS prompt, Windows Explorer, Windows Command Prompt, Windows PowerShell or Recovery Console.[3]

On Windows NT operating systems, CHKDSK can also check the disk surface for bad sectors and mark them (in MS-DOS 6.x and Windows 9x, this is a task done by Microsoft ScanDisk). The Windows Server version of CHKDSK is RAID-aware and can fully recover data in bad sectors of a disk in a RAID-1 or RAID-5 array if other disks in the set are intact.[4]

On Windows NT family, a standard CHKDSK scan consists of three phases of testing file metadata. It looks for errors but does not fix them unless it is explicitly ordered to do so. Same applies to surface scan: This test, which could be extremely time-consuming on large or low-performance disks, is not carried out unless explicitly requested. CHKDSK requires exclusive write access to the volume to perform repairs.[5][6]

Because of the exclusive access requirement and the time-consuming nature of CHKDSK operation, Windows Vista implemented a new file system health model in which the operating system fixes errors on the volumes as it encounters them. In the event that the problem is grave and a full scan is required, Action Center notifies the user to take the volume offline at the first convenience.[7]

Windows Vista and Windows Server 2008 added self-healing ability, turned on by default, in addition to providing the CHKDSK command. It detects physical file system errors and silently fixes them on the fly. Thus, many problems previously discovered on running CHKDSK never appear. It is administered by fsutil repair command.[8][9]

The alleged Windows 7 bug

Before the release of Windows 7, InfoWorld reported an alleged memory leak in CHKDSK; according to the report, the chkdsk /r command would cause the memory consumption to reach the maximum and the system to crash. Randall C. Kennedy of InfoWorld attributed the original report to "various Web sources" and said that in his tests, the memory consumption reached above 90%, although he did not experience a crash. Nevertheless, Kennedy took the memory consumption for a critical bug that would derail Windows 7's launch and cynically chastised Microsoft.[10] Tom Warren of Neowin dismissed Kennedy's assessment of the alleged leak's significance.[11] Steven Sinofsky of Microsoft also responded that Microsoft could not reproduce a crash either but that the massive memory consumption was by design, to improve performance, and not a leak. Ed Bott of ZDNet also reviewed the claim with his own tests and observed that no crash would occur. Noting that chkdsk /r, by design, does not work on the system drive while Windows is online, Bott concluded "it’s arguably a feature, not a bug, and the likelihood that you’ll ever crash a system this way is very, very small and completely avoidable."[12]

MS-DOS

CHKDSK and UNDELETE in MS-DOS 5.0 have a bug which can corrupt data: If the file allocation table of a disk uses 256 sectors, running CHKDSK /F can cause data loss and running UNDELETE can cause unpredictable results. This normally affects disks with a capacity of approximately a multiple of 128 MB. This applies to CHKDSK.EXE and UNDELETE.EXE bearing a datestamp of April 9, 1991. This bug was fixed in MS-DOS 5.0a.[13]

See also

  • Defragmentation

References

1. ^http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
2. ^https://archive.org/details/4690OSV6r2UsersGuide/page/n169
3. ^{{Cite web|url = http://support.microsoft.com/kb/314058|title = Description of the Windows XP Recovery Console for advanced users|date = 11 July 2013|accessdate = 4 September 2014|website = Support|publisher = Microsoft|last = |first = |edition = 8.0}}
4. ^{{Cite book |title=Managing and Maintaining a Microsoft Windows Server 2003 Environment |first=Dan |last=Holm |first2=Orin |last2=Thomas |publisher=Microsoft Press |isbn=9780735614376 |year=2003 |chapter=11-3: Maintaining Disk Storage Volumes |page=11.25}}
5. ^{{cite web |title=An explanation of the new /C and /I Switches that are available to use with Chkdsk.exe |url=http://support2.microsoft.com/kb/314835 |website=Microsoft Support |publisher=Microsoft |accessdate=25 January 2019 |archiveurl=https://web.archive.org/web/20141024211818/http://support2.microsoft.com/kb/314835 |archivedate=24 October 2014 |date=1 December 2007}}
6. ^{{Cite web|url = https://technet.microsoft.com/en-us/library/bb457122.aspx|title = Troubleshooting Disks and File Systems|date = 3 November 2005|accessdate = 4 September 2014|website = Windows XP Professional Resource Kit|publisher = Microsoft|last = |first = }}
7. ^{{Cite web|url = http://blogs.msdn.com/b/b8/archive/2012/05/09/redesigning-chkdsk-and-the-new-ntfs-health-model.aspx|title = Redesigning chkdsk and the new NTFS health model|date = 10 May 2012|accessdate = |website = Building Windows 8|publisher = Microsoft|last = Bangalore|first = Kiran|editor-first = Steven|editor-last = Sinofsky}}
8. ^{{Cite web|last1=Chen|first1=Ken|title=NTFS Self-Healing is An Overlooked but Useful Feature in Windows 7|url=http://www.nextofwindows.com/ntfs-self-healing-is-an-overlooked-but-useful-feature-in-windows-7/|website=Next of Windows|date=4 August 2014}}
9. ^{{Cite web|last1=Pawar|first1=Amit|title=Self-healing NTFS in Windows Server 2008 and Windows Vista|url=http://blogs.technet.com/b/apawar/archive/2008/02/14/self-healing-ntfs-in-windows-server-2008-and-windows-vista.aspx|website=Amit Pawar - Infrastructure blog|publisher=Microsoft|date=13 February 2008}}
10. ^{{cite web|last1=Kennedy|first1=Randall C.|title=Critical Windows 7 bug risks derailing product launch|url=http://www.infoworld.com/article/2631567/microsoft-windows/critical-windows-7-bug-risks-derailing-product-launch.html|website=Infoworld|publisher=IDG|accessdate=19 February 2015|date=5 August 2009}}
11. ^{{cite web|last1=Warren|first1=Tom|title=Windows 7 RTM contains a rather nasty chkdsk bug|url=http://www.neowin.net/news/windows-7-rtm-contains-a-rather-nasty-chkdsk-bug|website=Neowin|accessdate=19 February 2015|date=5 August 2009}}
12. ^{{cite web|last1=Bott|first1=Ed|title=A killer Windows 7 bug? Sorry, no|url=http://www.zdnet.com/article/a-killer-windows-7-bug-sorry-no/|website=ZDNet|publisher=CBS Interactive|date=5 August 2009}}
13. ^{{Cite web|url = http://support.microsoft.com/kb/80496|title = When Not to Use MS-DOS 5.0 CHKDSK and UNDELETE Commands|date = 16 November 2006|accessdate = |website = Support|publisher = Microsoft|last = |first = |edition = 1.1}}
{{Commons category|Screenshots of CHKDSK}}

External links

  • [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chkdsk Official documentation about Microsoft CHKDSK]

{{Windows commands}}

{{DEFAULTSORT:Chkdsk}}

3 : External DOS commands|Hard disk software|OS/2 commands

随便看

 

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

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 22:24:46