Ask Leo! #687 – Can I Just Unplug My Computer to Shut It Down?

[raw]

This Week’s Newsletter

More Spectre and Meltdown fallout: protecting your machine from a bricking — by the patches.

Also this week: CPU privilege, setting up your home network, and the dangers of pulling the plug.

Can I Just Unplug My Computer to Shut It Down?

(skip)


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.

Shutdown in XP

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 icon at the top), the familiar word reappears.

Windows 10 Start Menu

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 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

Power Button

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.

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 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 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 of information to the hard disk media. That could result in CRC errors for that sector and nearby information in other files. This may require a CHKDSK /R 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.

Related Links & Comments: Can I Just Unplug My Computer to Shut It Down?
https://askleo.com/5345

The Ask Leo! Tip Of The Day!

An emailed tip six days a week to help you use your computer, and your technology, more effectively and with more confidence. Includes online access to all previous tips, as well as Ad-Free Ask Leo!

There’s something for everyone, from beginner to the experienced computer user.

By popular demand: now available as a monthly or annual subscription.

Support Ask Leo! by purchasing a subscription to The Ask Leo! Tip Of The Day.

Thanks!

-Leo

No Ads

How Should I Set Up My Home Network?


You just bought your second computer. Perhaps you purchased a new laptop, a tablet, a new machine for your spouse, or another machine for yourself. Maybe you want to connect your smartphone via Wi-Fi when you’re at home to reduce the usage of your mobile data plan. Perhaps you got a smart TV, light switch, video-streaming box, or Echo or Echo-like device.

Whatever the device, you want to connect it to the internet. It would also be nice to share things, like printers or extra disk space, among compatible devices.

You, my friend, need a LAN, or Local Area Network. There are lots of ways to set one up; I’ll review the basic setup for the most common case.

Already have a network, but not sure how to grow it? I’ll look at that, too.

First, let’s look at the two types of networks: wired and wireless.

Continue Reading: How Should I Set Up My Home Network?
https://askleo.com/1908

What Is “Privilege Escalation” on a CPU?


It’s a term you hear frequently of late, usually in the context of newly-discovered vulnerabilities in operating system software: “privilege escalation”. Recently we’ve even heard it in the context of a newly-discovered hardware issue.

On the surface, the term seems fairly simple, but as we know by now, when it comes to computers, it’s rare that anything is truly simple.

In this article, I’m going to look at one type of privilege: the privilege model used by your operating system to allow software to do useful things while simultaneously restricting what it can do, so as to keep you safe.

Continue Reading: What Is “Privilege Escalation” on a CPU?
https://askleo.com/32898

Managing Brick Risk


Continue Reading: Managing Brick Risk
https://askleo.com/33341

The Ask Leo! Tip of the Day

A feature exclusively available to Ask Leo! Patrons Bronze level & above.

More Ask Leo!

Become a Patron
Books
Business
Glossary
Facebook
YouTube
More..

Leo’s Other Projects….

HeroicStories Since 1999, HeroicStories brings diverse, international voices to the world ‘ reminding us that people are good, that individuals and individual action matter. Stories – new and old – are published twice a week.

Not All News Is Bad – Each day I look for one story in the current news of the day with a positive bent. Just one. And I share it.

leo.notenboom.org – My personal blog. Part writing exercise, part ranting platform, it’s where I write about anything and everything and nothing at all.



Help Ask Leo! Just forward this message, in its entirety
(but without your unsubscribe link below) to your friends. Or, just point them
at https://newsletter.askleo.com
for their own FREE subscription!

Newsletter contents Copyright © 2018,
Leo A. Notenboom & Puget Sound Software, LLC.
Ask Leo! is a registered trademark ® of Puget Sound Software,
LLC


[raw]

Posted: January 16, 2018 in: 2018
Shortlink: https://newsletter.askleo.com/7809
« Previous post:
Next post: »

New Here?

Let me suggest my collection of best and most important articles to get you started.

Of course I strongly recommend you search the site -- there's a ton of information just waiting for you.

Finally, if you just can't find what you're looking for, ask me!

Confident Computing

Confident Computing is the weekly newsletter from Ask Leo!. Each week I give you tools, tips, tricks, answers, and solutions to help you navigate today’s complex world of technology and do so in a way that protects your privacy, your time, and your money, and even help you better connect with the people around you.

The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition

Subscribe for FREE today and claim your copy of The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition. Culled from the articles published on Ask Leo! this FREE downloadable PDF will help you identify the most important steps you can take to keep your computer, and yourself, safe as you navigate today’s digital landscape.



My Privacy Pledge

Leo Who?

I'm Leo Notenboom and I've been playing with computers since I took a required programming class in 1976. I spent over 18 years as a software engineer at Microsoft, and after "retiring" in 2001 I started Ask Leo! in 2003 as a place to help you find answers and become more confident using this amazing technology at our fingertips. More about Leo.