Microsoft
Software
Hardware
Network
Question : chkdsk on XP returns with value 2, what does that mean?
I am writing tests cases for our disk drive solution and our disk is getting into a state that fails chkdsk. The value returned from chkdsk is a 2. I know from searching the web that a 2 means the following:
2 - Disk cleanup, such as garbage collection, was performed, or cleanup was not performed because /f was not specified.
I don't want to clean the disk because I need to know what the cleanup that is needed is. I want to understand if this is something that should have been prevented by the driver and was not. By the way this is an NTFS partition.
Is there a utility or something that I can use to see exactly what is causing chkdsk to return a 2? Here is an output of the chkdsk information and I don't see any indications of an error in it:
C:\hgclones\leptontools\sc
ripts>pyth
on
Python 2.6.4 (r264:75708, Oct 26 2009, 07:36:50) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system('chkdsk T:')
The type of the file system is NTFS.
WARNING! F parameter not specified.
Running CHKDSK in read-only mode.
CHKDSK is verifying files (stage 1 of 3)...
48 file records processed.
File verification completed.
0 large file records processed.
0 bad file records processed.
0 EA records processed.
0 reparse records processed.
CHKDSK is verifying indexes (stage 2 of 3)...
129 index entries processed.
Index verification completed.
5 unindexed files processed.
CHKDSK is verifying security descriptors (stage 3 of 3)...
48 security descriptors processed.
Security descriptor verification completed.
11 data files processed.
78440670 KB total disk space.
1049604 KB in 3 files.
12 KB in 13 indexes.
0 KB in bad sectors.
68398 KB in use by the system.
65536 KB occupied by the log file.
77322656 KB available on disk.
4096 bytes in each allocation unit.
19610167 total allocation units on disk.
19330664 allocation units available on disk.
2
>>>
I did this in python so you could see that indeed it is returning an error code of 2.
Answer : chkdsk on XP returns with value 2, what does that mean?
Have you tried running it with the /v flag? That flag is supposed to tell you the cleanup messages. Without the /f, it may not actually get you anything but it's worth a try. It may tell you what it would clean up had you used /f.
chkdsk /v T:
Random Solutions
vSphere - Hard Disk Size will not go above 256G
Exchange 2010 refusing SMTP port 25 connections
compareTo() - JavaScript example needed
Iphone Can't get Exchange mail on LAN but ok on 3G.
how do I let users access OWA by exchange.domain.com vs. exchange.domain.com/exchan
ge
Nested forms asp.net IE8
How do you access a ssh-secured SMB share from a Windows 7 client?
What does it mean if I am receiving output errors on all of my Cisco Aironet 1130AG?
Convert image to 8bit transparent png in dot net
Built-In Webcam Stopped Working on Lenovo ThinkPad