From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andries Brouwer Subject: Re: clean unmount? Date: Tue, 11 Mar 2003 00:48:00 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20030310234800.GA4357@win.tue.nl> References: <20030307052645.9851.qmail@webmail29.rediffmail.com> <20030310232322.GB21234@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Bryan Henderson , anil vijarnia , linux-fsdevel@vger.kernel.org Return-path: To: Matthew Wilcox Content-Disposition: inline In-Reply-To: <20030310232322.GB21234@parcelfarce.linux.theplanet.co.uk> List-Id: linux-fsdevel.vger.kernel.org On Mon, Mar 10, 2003 at 11:23:22PM +0000, Matthew Wilcox wrote: > > I don't know how the "clean unmount" information is represented in FAT. > > OSR2 includes versions of the Io.sys and Win.com files that check the > Clean Shutdown and Hard Disk Error bits in the Virtual File Allocation > Table (VFAT) during startup. If either of these bits is turned on (that > is, cleared to 0) on any drive present in real mode, you are prompted to > run ScanDisk. > > The Clean Shutdown and Hard Disk Error bits are the two low-order bits of > the FAT entry for cluster 1. If bit 0 is 0, it indicates an unclean > shutdown; if bit 1 is 0, it indicates that a hard disk error occurred on > that drive. These bits are turned on by VFAT; they are turned off only by > ScanDisk. The Clean Shutdown bit is turned off upon completion of a > standard run. The Hard Disk Error bit is turned off upon completion of a > surface scan (regardless of whether errors were repaired). My docs say "high-order" instead of "low-order". Are there people with a Windows system so that they can check? Andries http://www.win.tue.nl/~aeb/linux/fs/fat/fat-1.html#ss1.3.1