Ask Leo! - Friday, January 12, 2018 at 11:00 AM
Can I Just Unplug My Computer to Shut It Down?
//
I have been having problems with the Power button on my computer turning itself
on and off. I have stopped shutting down my computer because I have difficulty
turning it back on. I just restart it every morning, but I really don’t like
leaving the computer on all the time. If I were to cut the power to the
computer and then plug it back in the next morning, would I need to use the
on/off button and would I be damaging anything?
You may damage your computer.
By pulling the plug or forcing a power-off by holding down the power button,
you risk corrupting data on your hard drive and damaging hardware.
I’m not sure what kinds of problems you’re having with the power button, but
even that needs to be used correctly, or you could end up with the very
problems you’re seeing.
Use Start to stop
One of the earliest jokes about Windows was the fact that you use the Start
menu to stop the computer.
The problem is, it’s no joke.
<p></p>
Turning off or shutting down a computer is not at all like turning off a light
bulb, or even a moderately complex piece of electronics.
Turning off a computer is a process. You start the shutdown process using the
Start button.
Even though we still refer to it as the “Start” button, Microsoft changed it to
have a more generic look after XP. Even so, in Windows 10, if you expand the
left-most column of icons in the Start menu (by clicking on the
hamburger<https://askleo.com/glossary/hamburger/> icon at the top), the
familiar word reappears.
<p></p>
The process of shutting down
What happens between clicking on Shut Down and the power going off?
The short answer is: a lot of geeky magic. In fact, a lot of important geeky
magic.
Programs are closed, files are saved, information that was kept in
memory<https://askleo.com/glossary/memory/> is written to disk, hardware is
turned off in the proper sequence, and more. A lot of important bookkeeping and
clean-up work happens as part of the process of shutting down …
… important bookkeeping and cleanup work you want to happen.
Sometimes the power button is OK
<p></p>
Here’s where it gets confusing: sometimes, it’s OK to use the Power button.
On most systems, pressing the Power button briefly is more or less equivalent
to using the Start menu to shut down your computer.
What’s important is that you hold it down no longer than one second. If you’re
holding it down longer, you’re doing something else, which I’ll talk about next.
But if you press the Power button briefly and see the system begin its process
of shutting down, then you’re probably OK to continue to do that.
One caveat: the Power button may shut down your computer properly, or it may
put it into hibernate or sleep. Check the Power button settings in the Control
Panel to adjust that setting.
Finally, if it shuts down immediately — in the blink of an eye — don’t do that
again. That’s the same as pulling the plug, which is bad.
When it’s NOT OK (but you may have to anyway)
If you hold the Power button down for five or 10 seconds until the computer
turns off, this is not OK.
<https://go.askleo.com/patreonb>
That’s like just pulling the power plug.
It completely bypasses the process of shutting down and can result in serious
problems. If you shut down your computer this way regularly, stop it because
you are almost begging your computer to corrupt the data stored on its hard
drive.
The long-hold power-off functionality present in most computers is actually
something implemented in hardware, and is meant only as a last resort. In the
hardware, it’s almost identical to pulling the plug or removing the battery.
If you find this is the only way you can turn off your computer, something is
wrong. The Start menu approach should always work. If it does not — if, for
example, your computer never shuts down — that’s a problem that should be
resolved, rather than risk data loss every time you force your computer to turn
off.
Why unplugging a running computer is bad
When you unplug your desktop computer, remove the battery and power cord from
your laptop, or long-hold the Power button to force a computer to stop, you’re
taking action outside of the operating system’s control. I was tempted to say
“outside of Windows’ control”, but this applies no matter what operating system
you’re running.
Even when you’re doing nothing with your computer, it’s always doing something.
In fact, it’s often doing quite a lot.
Files are open, programs are running, the disk may be being accessed, and more
might be happening. It’s almost impossible to predict exactly what is running,
and therein lies the problem.
Let’s say a program is updating something on disk. It doesn’t have to be
something you’re doing; it could be some other program, like your
anti-malware<https://askleo.com/glossary/anti-malware/> tools, system indexing
tools, or something else running on your machine. If you suddenly remove the
power in the middle of that operation, any of the following may happen:
* Nothing. You got lucky and the writing actually completed, because it’s
so darned quick. This is probably the most common case, but it leads to a false
sense of safety.
* The file that was being written is incomplete. Depending on the program
writing the file, this can be completely benign, or show up as a major problem
the next time that program tries to access that file.
* The file system<https://askleo.com/glossary/file-system/> directory entry
that locates that file on disk could be incorrectly or partially updated, if
that’s what the computer was writing when you pulled the plug. This can be
benign, but in the extreme case, it can actually render the file system corrupt
and you can lose not only the file that was being written, but large numbers of
other files on the disk. This is bad: very bad.
* The disk drive could be interrupted in the middle of writing a
sector<https://askleo.com/glossary/sector/> of information to the hard
disk<https://askleo.com/glossary/hdd/> media. That could result in
CRC<https://askleo.com/glossary/crc/> errors for that sector and nearby
information in other files. This may require a CHKDSK
/R<https://askleo.com/chkdsk_what_is_it_and_how_do_i_run_it/> to repair, or, in
the worst case, more advanced disk recovery and maintenance. Fortunately, with
modern drives, this is rare.
Hopefully, by now you get the idea: just pulling the plug or forcing a shutdown
is a bad idea, and should be used only as a last resort, immediately prior to
resolving the underlying problem that required it.
<http://audio.ask-leo.com/2018/5345.mp3>
<http://audio.ask-leo.com/2018/5345.mp3>Download<https://askleo.com/glossary/download/>
(right-click, Save-As) (Duration: 7:05 — 3.3MB)
Subscribe: Apple
Podcasts<https://itunes.apple.com/us/podcast/the-ask-leo!-podcast/id933458901?mt=2&ls=1#episodeGuid=http%3A%2F%2Fask-leo.com%2Fcan_i_just_unplug_my_computer_to_shut_it_down.html>
| Android<https://subscribeonandroid.com/askleo.com/feed/podcast/> |
RSS<https://askleo.com/feed/podcast/>
This is an update to an article originally posted May 16, 2012
https://askleo.com/can-just-unplug-computer-shut/
David Goldfield
Assistive Technology Specialist
Feel free to visit my Web site
WWW.DavidGoldfield.info<http://WWW.DavidGoldfield.info>