Annoyances.org
Home » Windows XP Discussion Forum » Message 1106707388 Search | Help | Home
  
Tip: Run a free scan for common Windows errors ad

re:
Tuesday, January 25, 2005 at 6:43 pm
Windows XP Annoyances Discussion Forum
Posted by Tong Narak (3 messages posted)


NTFS Directory Corruption with Frequent File Creation
Article ID : 169404 
Last Review : July 14, 2004 
Revision : 1.0 

SYMPTOMS
A directory in which files are repeatedly created and deleted eventually becomes 
corrupt. Subsequent attempts to access files in the directory or to create or delete 
files in the directory yield pop-up window indicating that the directory is corrupt 
and instructing the user to run CHKDSK. 

When CHKDSK is run, it generates output like the following (although the specific 
file record segments affected will vary): 
   Deleting corrupt attribute record (16, "")
   from file record segment 286.
   Deleting corrupt attribute record (32, "")
   from file record segment 286.
   Deleting corrupt attribute record (48, "")
   from file record segment 286.
   Deleting corrupt attribute record (80, "")
   from file record segment 286.
   Deleting corrupt attribute record (144, $I30)
   from file record segment 286.
   Deleting corrupt file record segment 286.
   Deleting orphan file record segment 8628.
   Deleting index entry DirectoryName in index $I30 of file 244.
   CHKDSK is recovering lost files.
				
CAUSE
Multiple attributes associated with a given file have the same attribute instance 
tag value. This is only likely to happen in directories where many files are repeatedly 
added and deleted in an "unbalanced" way. 
RESOLUTION
To resolve this problem, you can do one of the following: • Run CHKDSK /f. By running 
CHKDSK /f, all files contained in a directory that is corrupted in this way should 
be recovered. CHKDSK is also capable of detecting when instance counts are exceptionally 
large and will proactively renumber attribute instance values. Specifically, if an 
attribute instance tag is larger than 0xF000, CHKDSK will send the following message 
(file number will vary): 
      Adjusting instance tags to prevent rollover on file 252.
						

Thus, by periodically running read-only CHKDSK, it is possible to detect problem 
directories before they become corrupt. If the above message is encountered while 
running CHKDSK in read-only mode, you should schedule a full CHKDSK to correct the 
problem. 

-or- 

 
• To resolve this problem, obtain the latest service pack for Windows NT 4.0 or Windows 
NT Server 4.0, Terminal Server Edition. For additional information, click the following 
article number to view the article in the Microsoft Knowledge Base: 
152734 How to Obtain the Latest Windows NT 4.0 Service Pack 
 

STATUS
Microsoft has confirmed this to be a problem in Windows NT version 3.51. A supported 
fix is now available, but has not been fully regression tested and should be applied 
only to systems experiencing this specific problem. Unless you are severely impacted 
by this specific problem, Microsoft recommends that you wait for the next Service 
Pack that contains this fix. Contact Microsoft Technical Support for more information. 

Microsoft has confirmed that this is a problem in Windows NT 4.0 and Windows NT Server 
4.0, Terminal Server Edition. This problem was first corrected in Windows NT 4.0 
Service Pack 4.0 and Windows NT Server 4.0, Terminal Server Edition Service Pack 
4.

MORE INFORMATION
Attribute entries within an NTFS File Record Segment (FRS) are labeled with an "instance 
tag" that must be unique for the attributes in a given FRS. The value for an attribute 
instance tag is generated when an attribute is created. Thus, typical instance tag 
values range from 0 to about 10 on most files. 

If an attribute is deleted and recreated, it receives a new instance tag. Each time 
a new instance tag is needed, NTFS increments a counter associated with the FRS in 
question and uses the next previously unused value. Thus, instance tags can grow 
without bound if attributes are repeatedly destroyed and recreated. 

For the vast majority of files and directories, the scheme described above does not 
result in any problems because, once created, FRS attributes tend not to be deleted 
and recreated. There is one scenario that is known to be an exception. If many files 
are repeatedly added to a directory and then deleted from the directory in such a 
way that the "binary tree" that indexes the directory becomes unbalanced, the "index 
root" attribute for the directory is repeatedly destroyed and re-created. Because 
instance tags are only 16 bits in size, this means that instance tags can be duplicated 
after a directory index has been rebalanced 65,535 times. Note that even if instance 
tags are duplicated, the directory will not be considered corrupt unless, at some 
point, it contained a sufficiently large enough number of files. Therefore this problem 
may be difficult to reproduce except in directories containing large numbers of files. 





Written in response to:
Question about 'Prevent file corruption problems' (Paul: Friday, October 4, 2002 at 10:02 pm)

There are presently no replies to this message.

All messages in this thread [show all]
-Question about 'Prevent file corruption problems' (Paul: Fri, Oct 4, 2002, 10:02 pm)
-re: Question about 'Prevent file corruption problems' (Mike: Tue, Oct 22, 2002, 8:10 am)
*re: Question about 'Prevent file corruption problems' (Paul: Thu, Oct 24, 2002, 3:43 am)
-re: Question about 'Prevent file corruption problems' (rainmanp7: Wed, Nov 27, 2002, 9:53 am)
*re: Question about 'Prevent file corruption problems' (rainmanp7: Thu, Nov 20, 2003, 9:20 am)
*re: Question about 'Prevent file corruption problems' (wrenched: Sat, May 15, 2004, 8:31 pm)
*re: Question about 'Prevent file corruption problems' (Tom: Fri, Nov 15, 2002, 2:06 am)
-re: Question about 'Prevent file corruption problems' (John Blackmore: Thu, Nov 28, 2002, 10:24 am)
-re: Question about 'Prevent file corruption problems' (Paul: Thu, Nov 28, 2002, 11:45 pm)
*re: Question about 'Prevent file corruption problems' (John Blackmore: Sat, Nov 30, 2002, 10:25 am)
-re: Question about 'Prevent file corruption problems' (Ken: Tue, Dec 10, 2002, 2:44 am)
-re: Question about 'Prevent file corruption problems' (Michael Lees: Mon, Dec 16, 2002, 9:15 am)
*re: Question about 'Prevent file corruption problems' (Michael Lees: Mon, Dec 16, 2002, 9:41 am)
-re: Question about 'Prevent file corruption problems' (Ken: Mon, Dec 16, 2002, 1:43 pm)
-re: Question about 'Prevent file corruption problems' (Dan: Tue, Dec 24, 2002, 5:31 am)
*re: Question about 'Prevent file corruption problems' (praziquantum: Thu, Apr 24, 2003, 1:46 am)
*re: Question about 'Prevent file corruption problems' (Yusuf Abrahams: Tue, May 20, 2003, 11:16 am)
-re: Question about 'Prevent file corruption problems' (Peter Shkabara: Sat, Jan 4, 2003, 9:47 am)
-re: Question about 'Prevent file corruption problems' (Robot: Sun, Jan 5, 2003, 5:18 pm)
-re: Question about 'Prevent file corruption problems' (Peter Shkabara: Sun, Jan 5, 2003, 7:33 pm)
-re: Question about 'Prevent file corruption problems' (Randy J. Anderson: Mon, Jan 6, 2003, 12:44 pm)
*re: Question about 'Prevent file corruption problems' (Michael Kraft: Tue, Jan 7, 2003, 10:23 am)
*re: Question about 'Prevent file corruption problems' (Joe: Wed, Jun 28, 2006, 9:56 pm)
-re: Question about 'Prevent file corruption problems' (JJstecchino: Tue, Apr 1, 2003, 6:48 am)
*re: Question about 'Prevent file corruption problems' (Peter Shkabara: Tue, Apr 1, 2003, 7:31 am)
-re: Question about 'Prevent file corruption problems' (Kass: Mon, Jan 27, 2003, 9:26 pm)
*re: Question about 'Prevent file corruption problems' (Kass: Mon, Jan 27, 2003, 9:46 pm)
-re: Question about 'Prevent file corruption problems' (Peter Shkabara: Tue, Jan 28, 2003, 8:09 am)
-re: Question about 'Prevent file corruption problems' (esmithz: Tue, Mar 25, 2003, 10:12 am)
-re: Question about 'Prevent file corruption problems' (Peter Shkabara: Tue, Mar 25, 2003, 1:06 pm)
-re: Question about 'Prevent file corruption problems' (Antonio Giner: Thu, Apr 10, 2003, 2:42 pm)
*re: Question about 'Prevent file corruption problems' (El Chino: Tue, Sep 9, 2003, 11:30 pm)
*re: Question about 'Prevent file corruption problems' (Martin Kaminer: Fri, Apr 18, 2003, 11:59 am)
*re: Question about 'Prevent file corruption problems' (Peter Shkabara: Mon, Oct 20, 2003, 7:55 am)
-re: Question about 'Prevent file corruption problems' (fran: Thu, Feb 27, 2003, 8:26 am)
-re: Question about 'Prevent file corruption problems' (Allan: Sun, Mar 16, 2003, 9:29 pm)
*re: Question about 'Prevent file corruption problems' (fran: Mon, Mar 17, 2003, 6:43 am)
-re: Question about 'Prevent file corruption problems' (ML: Wed, Mar 26, 2003, 9:46 am)
-re: Question about 'Prevent file corruption problems' (bagtagsell: Tue, Apr 1, 2003, 4:23 pm)
*re: Question about 'Prevent file corruption problems' (Marcus: Sun, Apr 6, 2003, 7:55 am)
*re: Question about 'Prevent file corruption problems' (praziquantum: Thu, Apr 24, 2003, 2:04 am)
-re: Question about 'Prevent file corruption problems' (James: Sat, May 3, 2003, 8:45 am)
-re: Question about 'Prevent file corruption problems' (Paul: Tue, Jun 3, 2003, 2:03 pm)
*re: Question about 'Prevent file corruption problems' (ChoGGi: Fri, Jun 13, 2003, 8:19 pm)
-re: Question about 'Prevent file corruption problems' (William Smith: Tue, Jan 13, 2004, 3:14 pm)
-re: Question about 'Prevent file corruption problems' (Bob Smith: Mon, Mar 22, 2004, 9:32 pm)
*re: Question about 'Prevent file corruption problems' (bradley: Wed, Mar 31, 2004, 8:23 pm)
*re: Question about 'Prevent file corruption problems' (kumar: Fri, Mar 28, 2008, 11:37 pm)
-re: Question about 'Prevent file corruption problems' (Keith: Wed, Jul 9, 2003, 6:28 pm)
-re: Question about 'Prevent file corruption problems' (Gordon: Thu, Jul 10, 2003, 6:36 pm)
-re: Question about 'Prevent file corruption problems' (Cindi: Thu, Jul 17, 2003, 11:55 am)
-re: Question about 'Prevent file corruption problems' (Fernando Salas: Sat, Jul 26, 2003, 9:48 pm)
-re: Question about 'Prevent file corruption problems' (Bill: Thu, Aug 7, 2003, 1:43 pm)
*re: Question about 'Prevent file corruption problems' (Fernando Salas: Thu, Aug 7, 2003, 2:26 pm)
-Problem solved - System Restore causing false chkdsk errors! (Jeet Sukumaran: Wed, Dec 22, 2004, 2:36 pm)
-re: Problem solved - System Restore causing false chkdsk errors! (thegigglerx: Mon, Jun 27, 2005, 10:01 am)
-NTFS Dynamic Disk problems (JASC^: Mon, Aug 15, 2005, 8:41 am)
*re: NTFS Dynamic Disk problems (thegigglerx: Mon, Aug 15, 2005, 3:45 pm)
-re: Question about 'Prevent file corruption problems' (Bill: Tue, Aug 12, 2003, 2:51 pm)
-re: Question about 'Prevent file corruption problems' (Rui: Thu, Aug 14, 2003, 4:36 am)
-re: Question about 'Prevent file corruption problems' (VolTrdr: Sun, Aug 17, 2003, 9:14 am)
*re: Question about 'Prevent file corruption problems' (Bill: Tue, Aug 26, 2003, 2:22 pm)
-re: Question about 'Prevent file corruption problems' (Zippy: Sat, Sep 6, 2003, 3:21 pm)
*re: Question about 'Prevent file corruption problems' (DeeGee: Mon, Sep 15, 2003, 2:23 am)
-re: Question about 'Prevent file corruption problems' (James Tuvix: Thu, Oct 2, 2003, 4:23 am)
*re: Question about 'Prevent file corruption problems' (Jason: Wed, Mar 17, 2004, 4:51 am)
*re: Question about 'Prevent file corruption problems' (Jim: Mon, Oct 13, 2003, 10:45 am)
-re: Question about 'Prevent file corruption problems' (James S.: Mon, Sep 15, 2003, 3:04 pm)
-re: Question about 'Prevent file corruption problems' (Jim: Tue, Sep 23, 2003, 10:27 am)
-re: Question about 'Prevent file corruption problems' (James S.: Tue, Sep 23, 2003, 9:34 pm)
-re: Question about 'Prevent file corruption problems' (Jim: Wed, Sep 24, 2003, 7:37 am)
-re: Question about 'Prevent file corruption problems' (James S.: Wed, Sep 24, 2003, 10:06 am)
-re: Question about 'Prevent file corruption problems' (Jim: Thu, Sep 25, 2003, 7:29 am)
-re: Question about 'Prevent file corruption problems' (James S.: Thu, Sep 25, 2003, 11:23 am)
-re: Question about 'Prevent file corruption problems' (Jim: Mon, Sep 29, 2003, 1:22 pm)
-re: Question about 'Prevent file corruption problems' (James S.: Mon, Sep 29, 2003, 5:28 pm)
-re: Question about 'Prevent file corruption problems' (Jim: Tue, Sep 30, 2003, 8:53 am)
-re: Question about 'Prevent file corruption problems' (James S.: Tue, Sep 30, 2003, 10:19 am)
-re: Question about 'Prevent file corruption problems' (Jim: Sun, Nov 23, 2003, 7:25 am)
*re: Question about 'Prevent file corruption problems' (James S.: Sun, Nov 23, 2003, 2:48 pm)
-re: Question about 'Prevent file corruption problems' (Grant: Tue, Nov 4, 2003, 11:24 pm)
-re: Question about 'Prevent file corruption problems' (nonsence: Wed, Nov 12, 2003, 9:42 am)
-re: Question about 'Prevent file corruption problems' (VM: Wed, Nov 19, 2003, 6:54 pm)
-re: Question about 'Prevent file corruption problems' (ChoGGi: Fri, Nov 21, 2003, 2:34 am)
-re: Question about 'Prevent file corruption problems' (kiwibank: Tue, Nov 25, 2003, 12:55 pm)
*re: Question about 'Prevent file corruption problems' (mike: Thu, Dec 4, 2003, 12:21 pm)
*re: Question about 'Prevent file corruption problems' (poslek: Sun, Dec 28, 2003, 5:51 pm)
*re: Question about 'Prevent file corruption problems' (Darren Brothers: Mon, Jan 19, 2004, 1:02 am)
-re: Question about 'Prevent file corruption problems' (Zatoichi: Wed, Jan 21, 2004, 8:58 pm)
-Sins of NTFS (Down For The Count: Thu, Jan 22, 2004, 8:22 pm)
*Inner System Peace (Down For The Count: Tue, Feb 3, 2004, 9:25 am)
*re: Sins of NTFS (Brian B: Tue, May 30, 2006, 7:48 am)
*Zatoichi Update: The Solution To My Problems...Maybe? (Zatoichi: Tue, Feb 24, 2004, 6:49 pm)
-re: Question about 'Prevent file corruption problems' (Linden Arden: Wed, Feb 2, 2005, 11:25 am)
*re: Question about 'Prevent file corruption problems' (Mitch: Wed, Feb 23, 2005, 11:52 pm)
-My Xperience ! (ZeVs: Mon, Jan 26, 2004, 12:17 am)
-re: My Xperience ! (Down For The Count: Tue, Jan 27, 2004, 9:10 pm)
-Win2000 BSOD on chkdsk (Philip Sargent (Klebos): Thu, Jan 29, 2004, 1:11 pm)
-Missing file/ Run chkdsk (Flywolf: Sat, Jan 31, 2004, 7:28 am)
*I Think I Got It - Inner Peace (Down For The Count: Mon, Feb 2, 2004, 10:04 am)
-re: Missing file/ Run chkdsk (Chris Martin: Sat, May 29, 2004, 4:24 pm)
-re: Missing file/ Run chkdsk (Jal: Mon, May 31, 2004, 9:03 am)
*HD in External Case Experiencing Chkdsk Errors (Ed: Wed, Jun 2, 2004, 12:15 am)
-re: Win2000 BSOD on chkdsk (Philip Sargent (Klebos): Sun, Jun 13, 2004, 2:46 pm)
-Persistant File ystem Corruption (garbage: Sun, Jun 20, 2004, 7:49 pm)
*re: Persistant File ystem Corruption (Liam O'Donnell: Thu, Apr 6, 2006, 4:21 am)
-re: Win2000 BSOD on chkdsk (Philip Sargent (Klebos): Tue, Oct 19, 2004, 4:13 am)
*re: Win2000 BSOD on chkdsk (Philip Sargent (Klebos): Thu, Oct 21, 2004, 4:13 pm)
-If you have overclocked your system (Jonathan: Sat, Feb 7, 2004, 12:23 am)
-I found the problem :) (ZeVs: Sat, Feb 7, 2004, 6:36 am)
*re: I found the problem :) (Hopeless: Mon, Feb 16, 2004, 10:15 am)
-Zatoichi Update: The Solution To My Problems...Maybe? (Zatoichi: Tue, Feb 24, 2004, 6:54 pm)
*re: Zatoichi Update: The Solution To My Problems...Maybe? (Ronald: Mon, Mar 8, 2004, 4:22 am)
-re: Question about 'Prevent file corruption problems' (Matthew: Sun, Mar 21, 2004, 7:29 pm)
*re: Question about 'Prevent file corruption problems' (voirin: Mon, Mar 22, 2004, 8:08 am)
*re: Question about 'Prevent file corruption problems' (RYAN TOMLINSON: Tue, May 25, 2004, 12:34 pm)
*re: Question about 'Prevent file corruption problems' (hanspeter: Sun, Nov 21, 2004, 10:13 pm)
-re: Question about 'Prevent file corruption problems' (kmgv25a: Mon, Jan 3, 2005, 7:58 am)
*Missing or corrupted FAT32 files? (lanegs1: Sat, Jan 15, 2005, 2:13 pm)
*re: (Tong Narak: Tue, Jan 25, 2005, 6:43 pm)
-re: Question about 'Prevent file corruption problems' (XmadXsickXp:?: Mon, Feb 28, 2005, 4:10 pm)
-re: Question about 'Prevent file corruption problems' (Eric Hunsader: Fri, Apr 22, 2005, 8:00 am)
*re: Question about 'Prevent file corruption problems' (B. Wright: Wed, Jun 1, 2005, 6:41 pm)
-re: Question about 'Prevent file corruption problems' (Eileen Goodall: Thu, Oct 13, 2005, 1:08 am)
-re: Question about 'Prevent file corruption problems' (Alien: Thu, Feb 23, 2006, 6:39 am)
*re: Question about 'Prevent file corruption problems' (Joe: Wed, Jun 28, 2006, 10:14 pm)
*re: Question about 'Prevent file corruption problems' (Arlette: Sat, Mar 24, 2007, 3:00 pm)
-Fix the USN Journal (Arthur L. Zamora: Mon, Mar 19, 2007, 10:48 am)
*re: Fix the USN Journal (FeniX: Tue, Jul 17, 2007, 11:39 am)
Return to the Windows XP Discussion Forum


All content at Annoyances.org is Copyright ©1995-2012 Creative Elementtm All rights reserved.
Please do not plagiarize; redistributing these pages without permission is strictly prohibited.