No automatic chkdsk run...

  • Thread starter Thomas Johansen
  • Start date
T

Thomas Johansen

Hi

I have some USB-Key's with bad partion. When my Win2k PC is restarted with
on of them in, automatic chkdsk is run at boot, at repairs the partition as
is should.

But when booting from my WindowsXP embedded image, no chkdsk is run. I do
not use EWF and the switch /NOGUIBOOT isn't anabled in my boot.ini.

If I run "chkntfs c: /c" in XPe to mark the volume as dirty, XPe still don't
run chkdsk at boot.
If I right click and select to run chkdsk on the the volume from the chkdsk
gui (With auto repair), chkdsk in run at boot.

So why can't my XPe image run chkdsk automatically on volumes that are dirty
? ....but it can, when selected by the GUI ??

Thomas
 
K

KM

Thomas,

How do you verify the chkdsk or chkntfs ran well? Check the multi-string
reg.value "BootExecute" under
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager] key.
If should be set to something like "autocheck autochk /i
\??\C: autocheck autochk *" if the tool ran properly.

Also, how do you reboot/shutdown your XPe device? You haven't mentioned what
shell or logon scheme you implemented. Try using xpepm (if minLogon) or
shutdown.exe (if Winlogon used) to gracefully shutdown. Check the registry
value offline (just load the runtime image system hive in regedit on a XP
Pro machine) to verify that the autocheck is set.
 
T

Thomas Johansen

I forgot to ask what happens if you have dirty bit set on HDD partition?

Nothing. After restart, no chkdsk is run and the bit is cleared again
 
T

Thomas Johansen

How do you verify the chkdsk or chkntfs ran well? Check the multi-string
reg.value "BootExecute" under
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager] key.
If should be set to something like "autocheck autochk /i
\??\C: autocheck autochk *" if the tool ran properly.

I verifyed visual, by seeing if the tool was run at boot and checked the
dirty bit after.
Also, how do you reboot/shutdown your XPe device? You haven't mentioned
what

I reboot
shell or logon scheme you implemented. Try using xpepm (if minLogon) or

using Winlogon
 
K

KM

Thomas,

How do you reboot? (shutdown.exe/ExWindowsEx,etc.?)
Also, could you access the HDD offline (just before the next boot) and see
if the registry system hive got the right settings under "Session Manager"
key, "BootExecute" value? This way you will know where (if) the actual error
happens.
--
KM,
BSquare Corporation
How do you verify the chkdsk or chkntfs ran well? Check the multi-string
reg.value "BootExecute" under
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager] key.
If should be set to something like "autocheck autochk /i
\??\C: autocheck autochk *" if the tool ran properly.

I verifyed visual, by seeing if the tool was run at boot and checked the
dirty bit after.
Also, how do you reboot/shutdown your XPe device? You haven't mentioned
what

I reboot
shell or logon scheme you implemented. Try using xpepm (if minLogon) or

using Winlogon
shutdown.exe (if Winlogon used) to gracefully shutdown. Check the registry
value offline (just load the runtime image system hive in regedit on a XP
Pro machine) to verify that the autocheck is set.

--
KM,
BSquare Corporation
partition
as
 
T

Thomas Johansen

How do you reboot? (shutdown.exe/ExWindowsEx,etc.?)

Start -> Shur down -> restart (Like you close down any other PC)
Also, could you access the HDD offline (just before the next boot) and see
if the registry system hive got the right settings under "Session Manager"
key, "BootExecute" value? This way you will know where (if) the actual error
happens.
--
KM,
BSquare Corporation
How do you verify the chkdsk or chkntfs ran well? Check the multi-string
reg.value "BootExecute" under
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager] key.
If should be set to something like "autocheck autochk /i
\??\C: autocheck autochk *" if the tool ran properly.

I verifyed visual, by seeing if the tool was run at boot and checked the
dirty bit after.
Also, how do you reboot/shutdown your XPe device? You haven't
mentioned
what

I reboot
shell or logon scheme you implemented. Try using xpepm (if minLogon)
or

using Winlogon
shutdown.exe (if Winlogon used) to gracefully shutdown. Check the registry
value offline (just load the runtime image system hive in regedit on a XP
Pro machine) to verify that the autocheck is set.

--
KM,
BSquare Corporation

Hi

I have some USB-Key's with bad partion. When my Win2k PC is
restarted
with
on of them in, automatic chkdsk is run at boot, at repairs the partition
as
is should.

But when booting from my WindowsXP embedded image, no chkdsk is run.
I
do
not use EWF and the switch /NOGUIBOOT isn't anabled in my boot.ini.

If I run "chkntfs c: /c" in XPe to mark the volume as dirty, XPe still
don't
run chkdsk at boot.
If I right click and select to run chkdsk on the the volume from the
chkdsk
gui (With auto repair), chkdsk in run at boot.

So why can't my XPe image run chkdsk automatically on volumes that are
dirty
? ....but it can, when selected by the GUI ??

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top