hello everybody
I want to know that where in the the volume boot sector or in the
metadata of the ntfs file system the information regarding running of
chkdsk on restart is stored.
Because if i get chkdsk running on win xp and if i skip it and Next
time i start the machine with win 2k it also detects that chkdsk has
to be run on the os drive of win xp.
So i think that their is some portion on the volume where the
information to run chkdsk is stored. Do anybody have any about the
location ?
Thanks in advance
santosh k
AFAIK, this information is not kept in the file system metadata, but it is
kept in the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\BootExecute. But if the file systems remain marked as dirty (for eg
because of a crash), then chkdsk will run and check the fs consistency. Also
if I am not mistaken, chkdsk always run when the system comes up. But it
checks the fs consistency only if the volumes are dirty.
-Kiran
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of santosh katvate
Sent: Thursday, June 30, 2005 4:54 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] about windows chkdsk
hello everybody
I want to know that where in the the volume boot sector or in the metadata
of the ntfs file system the information regarding running of chkdsk on
restart is stored.
Because if i get chkdsk running on win xp and if i skip it and Next time i
start the machine with win 2k it also detects that chkdsk has to be run on
the os drive of win xp.
So i think that their is some portion on the volume where the information to
run chkdsk is stored. Do anybody have any about the location ?
Thanks in advance
santosh k
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hi kiran
If the information to run chkdsk is stored in registry of an
OS(suppose win xp) then how the information to run chkdsk still is
known to other OS (suppose win 2k) whose registry is different.
i have read on link http://support.microsoft.com/kb/q140418/
for fat32 following lines so is their something similar for ntfs case
“extended BIOS Parameter Block contains.”
Current Head: This is another field typically used when doing INT13
BIOS calls. The value would originally have been used to store the
track on which the boot record was located, but the value stored on
disk is not currently used as such. Therefore, Windows NT uses this
field to store two flags:
? The low order bit is a “dirty” flag, used to indicate that autochk
should run chkdsk against the volume at boot time.
? The second lowest bit is a flag indicating that a surface scan
should also be run.
And do you have any idea that what parameters are checked for marking
the volume dirty or non dirty.
Thanking in advance
santosh k
On 6/30/05, Kiran Joshi wrote:
> AFAIK, this information is not kept in the file system metadata, but it is
> kept in the registry
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
> Manager\BootExecute. But if the file systems remain marked as dirty (for eg
> because of a crash), then chkdsk will run and check the fs consistency. Also
> if I am not mistaken, chkdsk always run when the system comes up. But it
> checks the fs consistency only if the volumes are dirty.
> -Kiran
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of santosh katvate
> Sent: Thursday, June 30, 2005 4:54 PM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] about windows chkdsk
>
> hello everybody
>
>
> I want to know that where in the the volume boot sector or in the metadata
> of the ntfs file system the information regarding running of chkdsk on
> restart is stored.
>
> Because if i get chkdsk running on win xp and if i skip it and Next time i
> start the machine with win 2k it also detects that chkdsk has to be run on
> the os drive of win xp.
>
> So i think that their is some portion on the volume where the information to
> run chkdsk is stored. Do anybody have any about the location ?
>
> Thanks in advance
>
> santosh k
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
In the first sector somewhere, the exact location depends on the
filesystem.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “santosh katvate”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 30, 2005 3:24 PM
Subject: [ntfsd] about windows chkdsk
hello everybody
I want to know that where in the the volume boot sector or in the
metadata of the ntfs file system the information regarding running of
chkdsk on restart is stored.
Because if i get chkdsk running on win xp and if i skip it and Next
time i start the machine with win 2k it also detects that chkdsk has
to be run on the os drive of win xp.
So i think that their is some portion on the volume where the
information to run chkdsk is stored. Do anybody have any about the
location ?
Thanks in advance
santosh k
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hello Max,
The first sector(depends on FS type) contains the information of whether the
volume is dirty or not and this information has no direct relation to
chkdsk. Is this statement correct ?
Thanks
-Kiran
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Saturday, July 02, 2005 3:02 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] about windows chkdsk
In the first sector somewhere, the exact location depends on the
filesystem.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “santosh katvate”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, June 30, 2005 3:24 PM
Subject: [ntfsd] about windows chkdsk
hello everybody
I want to know that where in the the volume boot sector or in the
metadata of the ntfs file system the information regarding running of
chkdsk on restart is stored.
Because if i get chkdsk running on win xp and if i skip it and Next
time i start the machine with win 2k it also detects that chkdsk has
to be run on the os drive of win xp.
So i think that their is some portion on the volume where the
information to run chkdsk is stored. Do anybody have any about the
location ?
Thanks in advance
santosh k
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@calsoftinc.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
CHKDSK sets this flag to “clean”.
AUTOCHK (which is not CHKDSK) checks this flag on boot, and only does
something if the flag is “dirty”.
There is also FSCTL_MARK_VOLUME_DIRTY (see the FASTFAT source from the IFS
Kit) available for apps.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Kiran Joshi”
To: “Windows File Systems Devs Interest List”
Sent: Saturday, July 02, 2005 2:03 PM
Subject: RE: [ntfsd] about windows chkdsk
> Hello Max,
> The first sector(depends on FS type) contains the information of whether the
> volume is dirty or not and this information has no direct relation to
> chkdsk. Is this statement correct ?
> Thanks
> -Kiran
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
> Sent: Saturday, July 02, 2005 3:02 AM
> To: Windows File Systems Devs Interest List
> Subject: Re: [ntfsd] about windows chkdsk
>
> In the first sector somewhere, the exact location depends on the
> filesystem.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
> ----- Original Message -----
> From: “santosh katvate”
> To: “Windows File Systems Devs Interest List”
> Sent: Thursday, June 30, 2005 3:24 PM
> Subject: [ntfsd] about windows chkdsk
>
>
> hello everybody
>
>
> I want to know that where in the the volume boot sector or in the
> metadata of the ntfs file system the information regarding running of
> chkdsk on restart is stored.
>
> Because if i get chkdsk running on win xp and if i skip it and Next
> time i start the machine with win 2k it also detects that chkdsk has
> to be run on the os drive of win xp.
>
> So i think that their is some portion on the volume where the
> information to run chkdsk is stored. Do anybody have any about the
> location ?
>
> Thanks in advance
>
> santosh k
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@calsoftinc.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com