Monday, June 20, 2011

Running CHKDSK on a Junction

Here's a simple trick for running CHKDSK on a junction. Let's say that you have a junction called "JUNCTION" which is mounted under the I: drive in the "JUNCTION" sub-folder.  The easiest way to run CHKDSK on this volume is to change to that drive and sub-folder, then run "CHKDSK ."  Note that the period (".") is the reference to the current working directory.  Windows will interpret this as referring to the current volume, i.e., the junction.  Running CHKDSK without this reference will result in CHKDSK running against the parent volume, in this case I:.


Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


C:\Users\john>i:


I:\>dir
 Volume in drive I is MOUNT
 Volume Serial Number is 54B6-259A


 Directory of I:\


01/28/2011  03:00 PM         JUNCTION [\??\Volume{f8dd7e69-206a-11e0
-8a1e-f4ce46b4d754}\]
               0 File(s)              0 bytes
              14 Dir(s)   1,019,138,048 bytes free


I:\>cd JUNCTION


I:\IORDATA-14>chkdsk .
The type of the file system is NTFS.
Volume label is JUNCTION.


WARNING!  F parameter not specified.
Running CHKDSK in read-only mode.


CHKDSK is verifying files (stage 1 of 3)...
  17013760 file records processed.
File verification completed.
  13850 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)...
  17047814 index entries processed.
Index verification completed.
  0 unindexed files scanned.
  0 unindexed files recovered.
CHKDSK is verifying security descriptors (stage 3 of 3)...
  17013760 file SDs/SIDs processed.
Security descriptor verification completed.
  17027 data files processed.
Windows has checked the file system and found no problems.


 524286911 KB total disk space.
 426813404 KB in 16982659 files.
   5354736 KB in 17029 indexes.
         0 KB in bad sectors.
  17097803 KB in use by the system.
     65536 KB occupied by the log file.
  75020968 KB available on disk.


      4096 bytes in each allocation unit.
 131071727 total allocation units on disk.
  18755242 allocation units available on disk.


I:\JUNCTION>

No comments:

Post a Comment