Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacBH928

macrumors G3
Original poster
May 17, 2008
8,348
3,733
I recently had few power cuts on my macbook because the battery is not giving me correct indications (It shut down while it said there was still %10+ battery)

I wonder if those power shut downs can ruin my computer? I remember I had an iMac (lamp) that got the power cut of few times then it was not able to start. I had to use DiskWarrior to fix it.

My macbook runs fine now but I wonder if there is any procedures I should follow to protect myself
 

Shrink

macrumors G3
Feb 26, 2011
8,929
1,727
New England, USA
I recently had few power cuts on my macbook because the battery is not giving me correct indications (It shut down while it said there was still %10+ battery)

I wonder if those power shut downs can ruin my computer? I remember I had an iMac (lamp) that got the power cut of few times then it was not able to start. I had to use DiskWarrior to fix it.

My macbook runs fine now but I wonder if there is any procedures I should follow to protect myself

It's my understanding that the Mac shuts down automatically at that percentage.

One procedure you might follow is to start charging your computer before it reaches shut down battery level.
 

GGJstudios

macrumors Westmere
May 16, 2008
44,545
943
I recently had few power cuts on my macbook because the battery is not giving me correct indications (It shut down while it said there was still %10+ battery)

I wonder if those power shut downs can ruin my computer? I remember I had an iMac (lamp) that got the power cut of few times then it was not able to start. I had to use DiskWarrior to fix it.

My macbook runs fine now but I wonder if there is any procedures I should follow to protect myself

No, interruptions in AC power don't harm your computer. It's the same as if you unplug it. It simply switches to battery power. The fact that it shuts down while showing 10% charge is attributable to the fact that the battery charge remaining is an ever-changing estimate, based on power demands at any point in time. The reading is not entirely accurate. You didn't mention what exact model MacBook you have, or whether it has a removable or built-in battery.

The link below should answer most, if not all, of your battery/charging questions. If you haven't already done so, I highly recommend you take the time to read it.
 

old-wiz

macrumors G3
Mar 26, 2008
8,331
228
West Suburban Boston Ma
Mains power outages on a desktop (iMac-like) can result in a corrupt disk if the power outage happens during a disk write. For a desktop I use a UPS.

Mains power outages on a laptop aren't as much of a problem as long as battery remains. If the battery indicator is wrong, I would expect the system will do at least some flushing to make sure the disk will be OK when you restore power.
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,348
3,733
My battery died on me while using the macbook , how is that different from power outage on a desktop mac?


I have a late 2008 macbook and the battery is removable last I checked.


Also I am not worried about my battery but I am worried what would happen to my computer if it was cut out of power suddenly.

@old-wiz

how to fix a corrupted disk?
 

GGJstudios

macrumors Westmere
May 16, 2008
44,545
943
I have a late 2008 macbook and the battery is removable last I checked
When is the last time you calibrated your battery? If you haven't calibrated recently, that may improve the accuracy of the readings. Also, how many cycles are on the battery and what is the health (maximum capacity)?

If you're not already doing so, use iStat Pro (free) or iStat Menus ($16) to get accurate readings of battery health and cycles and computer uptime, among many other things. A forum member has posted a copy of iStat Pro that has been "tweaked" to enhance compatibility with Mountain Lion. You can download it here.

For instructions on calibrating, see the CALIBRATION section of the Apple Notebook Battery FAQ I posted earlier.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,386
207
My battery died on me while using the macbook , how is that different from power outage on a desktop mac?
Your laptop is designed to cope with running out of power from the battery. It has systems in place to save what you were doing and power down gracefully.

Your desktop Mac relies on the power cable, and does not expect interruptions to that supply.
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,348
3,733
@GGJStudios

Thanks for your care to reply with help. I do have iStat pro and it says my battery's health is 66% and 198 cycles. I used to calibrate my battery once each month but I didn't do it for few months now. Its a long processes and my computer got old , its already past 4 years of use (Amazing yet very capable like new, even though I did upgrade the RAM from 2 to 6 and the HDD from 160GB->500).


@old-wiz

Ugghh...Disk Warrior is very expensive for a one time use product.


@benwiggy
Thanks for the tip. Apple should build in similar functions in the desktops
 

Big-TDI-Guy

macrumors 68030
Jan 11, 2007
2,606
13
Your laptop is designed to cope with running out of power from the battery. It has systems in place to save what you were doing and power down gracefully.

Not quite.

Assuming the battery health / charge indicator were somewhat accurate - what you said is usually true. However the OP indicated that the power indicator was way off from actual charge levels. In this case, the computer, thinking it has enough time to shut down, will begin, only to have power cut out unexpectedly before it has. This CAN result in corrupted / lost data.

So to the OP - calibrate your battery monitor, and/or replace the battery just in case.
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,348
3,733
@Big-TDI

thanks for the tip. I am more worried about my hard-drive being corrupted than the macbook's battery. I am surprised only DiskWarrior can fix this issue. Its a very expensive fix, a $100 one!
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,348
3,733
to do so would require a battery in the iMac/mini/MacPro, which would add to the cost and weight. Lots of times, losing power does not cause a problem, but it's rare for disk corruption to happen.

If Apple can create something as light as the macbook air I am sure they can find a way to install a light battery into an iMac which sits on the desk for most of its lifetime.
 

ElectricSheep

macrumors 6502
Feb 18, 2004
498
4
Wilmington, DE
@Big-TDI

thanks for the tip. I am more worried about my hard-drive being corrupted than the macbook's battery. I am surprised only DiskWarrior can fix this issue. Its a very expensive fix, a $100 one!

Your old lamp-shade iMac G4 was introduced before journaling was a standard features in HFS+. This made corruption of the filesystem during sudden power-loss much more likely.

These days, there are a few protections measures that prevent catastrophic damage or corruption to the disk.

Journaling features of the filesystem (now on by default in all standard MacOS X installations) log the changes to be made to a filesystem to a special journaling area before actually committing those changes. It is only when the changes are successfully written to disk that the journal is cleared. If, for whatever reason, the write operation is interrupted before it can complete, all the system has to do is replay the journal to guarantee consistency.

Modern hard drives have an emergency retract feature that parks the read/write head in the even of sudden external power loss. This is very important, as one of the worst things that can happen to a disk is physical contact of the head with the surface of the platter.

These two features combined help prevent corruption of the disk in the event of external power loss. However, this will not protect you from other potential disasters, including user error. Always have a backup system in place.
 

old-wiz

macrumors G3
Mar 26, 2008
8,331
228
West Suburban Boston Ma
However, this will not protect you from other potential disasters, including user error. Always have a backup system in place.

I always preach you should have more than one backup of your system. I much prefer clone backups, but Time Machine is a workable option.

It is amazing how many people start threads about "deleted xxxx files..no backup...HELP..." then rant about how their data was super important and they will die without the files, but don't take the time to make a backup, not even just the important files.

Regardless of how power failures occur or how often, the drives, be they mechanical or SSD, can fail, period. Even if the system has code to flush the disk before power is gone, it may still fail.
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,348
3,733
Thanks for clearing that ElectricSheep

I can be wrong but, do power failures over time slowly corrupts data until we get to a point where an HDD will not boot?

because if this is so , then creating a backup from an HDD that had sudden loss of power, will create a partially corrupted back up. Am I correct?



btw, what is a user error?


@Old-wiz

thanks . I backup around once a month. I have a laptop and having to connect the HDD daily and do a back is just not convenient . Plus I am afraid the constant reading and writing from-to HDDs might increase the chances of a failed HDD.
 

Big-TDI-Guy

macrumors 68030
Jan 11, 2007
2,606
13
Funny story here... Just last week someone cut power without shutting down the computers first. One of them happened to be a laptop without a battery - while not entirely sure what aspect of the power failure did this - the computer (upon reboot) dies due to a logic board hardware failure, OS, RAM, and HDD all swapped without any change.

It seems that something in the power management decided enough was enough.

The odd thing here, the computer was on a uninterruptible power supply - which was a professional rack-mount system. It likely kept the laptop going for at least an hour, before the UPS batteries died off. So with the UPS in the loop - a voltage spike seems very unlikely, as it has built in line conditioning / protection for such things. So it was likely the abrupt power-off that caused the hardware failure.
 

PowerPCFan

macrumors 6502
Mar 5, 2022
297
105
I was using my vintage PowerMac g4 in a thunderstorm. This computer is from the early 2000s. The power went out. When it came back on, it booted fine. Not sure if this is helpful, though.
 

TiggrToo

macrumors 601
Aug 24, 2017
4,205
8,838
I was using my vintage PowerMac g4 in a thunderstorm. This computer is from the early 2000s. The power went out. When it came back on, it booted fine. Not sure if this is helpful, though.
To a nearly 9 year old question?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.