Safe Mode Fix?

  • Thread starter Thread starter geezer
  • Start date Start date
G

geezer

Sometimes due to an improper shutdown (even outage), or sometimes due
to causes unknown, when I boot up cold, I am forced into Safe Mode.
And, of course, if I then shutdown to full restart, it will then boot
up in normal mode just fine.

But I am curious - what is actually happening here? Why does this
procedure do the trick? I can guess that certain things need repair
in order for a boot to work correctly, but that is pretty vague.

Thanks
 
Hi,

It's a "fail safe". By design, if the system is not shut down properly, it
will go to Safe mode and bypass the normal startup group and drivers on the
pretense that one of them may be the cause of the system failure. This is to
give the user the opportunity to correct whatever is wrong before restarting
normally. If it didn't do this, and the cause was indeed in there, then you
may not be able to get the system running at all (many do not know how to
force a safe mode boot).

Simply booting to Safe mode first does not correct anything, it just gives
you the chance to. One other point worth noting: As sometimes problems are
due to faulty hardware, this procedure "seems" to help as it allows the
faulty component to warm up during the first boot before it is put into use
after the restart to normal mode. It doesn't fix anything, but appears to.
Once warm, the component may act normally, only when run from a cold boot
does it malfunction.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org
 
Rick, that must explain my situation too (as posted in perform_maintain)
"This morning when I turned on my PC I got a screen I've never seen before,
similar to the Safe Mode Screen saying "Windows cannot initialize do you
wish to continue in Safe Mode?" I did, did all virus/spyware checks, of
which I have many, nothing found. I haven't fiddled with the registry and
haven't been downloading anything risqué, and I have all kinds of protection
anyway plus a good firewall.
After a system restore all is normal.
Anyone else ever got this?"
 
Thanks...it's OK now, but I'll keep that reference just in case.

--
Peter.
Toronto, Canada.
XP Home SP2.
P4 @ 3.0ghz, 160gb HDD, 1.0gb DDR.
Rick "Nutcase" Rogers said:
Hi Peter,

If it boots in Safe mode, then you can figure out what's causing the
problem. Use the steps here:

How to Troubleshoot By Using the Msconfig Utility in Windows XP [Q310560]
http://support.microsoft.com/?kbid=310560

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP

Associate Expert - WindowsXP Expert Zone

Windows help - www.rickrogers.org

Peter said:
Rick, that must explain my situation too (as posted in perform_maintain)
"This morning when I turned on my PC I got a screen I've never seen
before,
similar to the Safe Mode Screen saying "Windows cannot initialize do you
wish to continue in Safe Mode?" I did, did all virus/spyware checks,
of
which I have many, nothing found. I haven't fiddled with the registry
and
haven't been downloading anything risqué, and I have all kinds of
protection
anyway plus a good firewall.
After a system restore all is normal.
Anyone else ever got this?"


--
Peter.
Toronto, Canada.
XP Home SP2.
P4 @ 3.0ghz, 160gb HDD, 1.0gb DDR.
 
Sometimes due to an improper shutdown (even outage), or sometimes due
to causes unknown, when I boot up cold, I am forced into Safe Mode.
And, of course, if I then shutdown to full restart, it will then boot
up in normal mode just fine.

Windows usually offers and defaults to Safe Mode, if the previous
attempt to boot Windows failed to complete. The reasoning is sound;
that if it's likely extra software or drivers caused the boot process
to fail, then Safe Mode (which reduces this load) will more likely
work, so the user can fix the problem from there.
But I am curious - what is actually happening here? Why does this
procedure do the trick? I can guess that certain things need repair
in order for a boot to work correctly, but that is pretty vague.

What is also happening, is that files damaged by the bad exit are
"fixed" by AutoChk (similar to the ChkDsk you use electively).
Unfortunately, "fixed" files are usually broken, and once fixed, you
can't tell which of the thousands of files on the system were damaged.

More unfortunately, AutoChk doesn't ask for permission before "fixing"
broken files, and doesn't really list them so you can see which ones
they were. Even more unfortunately, the only logging it does is deep
in the bowels of Event Viewer, filed under some non-intuitive name
like "WinLogon", and these logs can only be read from within XP. So
if XP is so barfed it can't boot, you can't read the logs to see why.

There are other automagical things going on, such as resetting of the
Last Known Good state, and there may (or damn well should be!) backups
of both system and oper-user registry files being maintained.

You can make life easier for yourself in several ways:

1) Shutdown properly, always

Any crashes that prevent you from being able tio shut down, must be
fixed - whether it's protecting against mains outages or cleaning up
bad software that destabalizes the system

2) Stop the PC from restarting on errors

Somewhere within Control Panel, System, there's a checkbox to
"automatically restart on system errors" that's checked by duhfault.
UNcheck that, so that at least you can see what the error was! If XP
had more sense, it would keep this setting implicitly off until boot
is complete, because even for unattended systems, there's no point in
continuously rebooting a PC if it never reaches a state of
functionality or visibility to remote administration.

3) Stop the PC from restarting on RPC service failures

It's impossible to avoid using the Remote Procedure Call services,
which has already been used as a malware battleground. XP SP2, and
earlier versions if patched, have known exploitable RPC defects
patched, and any firewall should help protect this too. You can and
IMO should stop RPC failures from restarting the system by setting the
Properties of the service to "Restart the Service" instead.

4) Minimize the impact of AutoChk

C: is always in use, and will thus always have files open when a bad
exit occurs. Typically these will be disposable; .LOG files, System
Restore data, temp files, .PF prefetch info, etc. but can also affect
your data files. So after every bad exit, the PC is likely to grind
away at AutoChk to "fix" C:'s damaged file system.

A way to reduce the impact of this, is to keep C: small, and keep your
data off C: so that it's no exposed to corruption from the constant
(interrupted?) writes to C:. That means the checking of C: will be
quicker, and you'd be less likely to skip this when in a hurry :-)

Also, it's possible to suppress AutoChk on a per-volume basis. So you
could allow AutoChk to "fix" C: automatically, knowing your data is
not at risk there, but suppress it for the volume (e.g. D:) where your
data is stored. You could then avoid use of the data volume until you
did an elective ChkDsk of that volume; once you know what ChkDsk would
have done if allowed to run wild off the leash, you could ChkDsk /F

My own practice is to use DOS mode boot instead, and do a Scandisk
from there. Scandisk is a better fixer than AutoChk and ChkDsk in
that it is interactive; it tells you what it's found, how it will
"fix", and *asks* before "fixing" things. It also saves the log as
C:\SCANDISK.LOG, which is far easier to read if the OS can't boot.

But Scandisk only runs in DOS mode, and cannot work on NTFS volumes.
So I avoid NTFS. One might mix NTFS and FATxx volumes to taste, based
on how you see their relative strengths as relevant to contents.


--------------- ----- ---- --- -- - - -
Tech Support: The guys who follow the
'Parade of New Products' with a shovel.
 
Back
Top