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,318
3,716
Hello,

I used to have a 2002 iMac that after facing several electric outages while it was on sleep mode it was unable to start up. I believe I could get up to the white screen with an apple and thats it. I used DiskWarrior which some how fixed the file system and that computer worked well again. I was running Tiger.


Now on my Macbook running Mavericks, I am facing outages because of the battery drying out of power. Is it possible that my files are get damaged and I need some maintenance to keep my laptop working in tip top shape?
 

53kyle

macrumors 65816
Mar 27, 2012
1,282
111
Sebastopol, CA
Usually, the mac will go to sleep, save the state of the computer, then shut off. This is called safesleep. When you turn on the computer after plugging it in, it will show a blurred out screen. Once it loads, it will be exactly how it was when the battery died, no data loss, etc. just like waking it up from sleep.
 

SandboxGeneral

Moderator emeritus
Sep 8, 2010
26,482
10,051
Detroit
If there is a sudden and complete power outage to a computer, especially if it's in the middle of writing files, then yes, an outage could damage files.

It's always a good idea to use a UPS if you can and keep a fair amount of charge in a battery of a laptop to help prevent corruption of files.
 

Sital

macrumors 68020
May 31, 2012
2,098
843
New England
I'm not clear from your OP, but if you are losing electrical power you could also be experiencing power surges, which can definitely damage your computer.
 

SandboxGeneral

Moderator emeritus
Sep 8, 2010
26,482
10,051
Detroit
Yeah, I forgot about the surges. You guys are right, when the power comes back, surges can and do occur. Plus there are brown outs which, probably, are the worst form of "outages" because the power is surging up and down, and giving low voltage to devices and appliances.

If one knows they're in a brown out condition, it's best to manually cut the power to your entire home at the breaker box and leave it that way until full power is restored.
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,318
3,716
My macbook battery would usually die while I am using it because it gives me false charge readings (10%) but then it shuts down.

If files are damaged, how can I fix them?



Usually, the mac will go to sleep, save the state of the computer, then shut off. This is called safesleep. When you turn on the computer after plugging it in, it will show a blurred out screen. Once it loads, it will be exactly how it was when the battery died, no data loss, etc. just like waking it up from sleep.

I have experienced this before, but I am not sure when it happens. There were other times when the macbook simply cold boot.

Something weird happens sometimes. When the battery dies, I plug my charger in, I try to click few keyboard buttons but nothing happens. Naturally I hit the power button, but the reaction I get from the computer as if it was running all the time and now it has shut down (I kind of can hear it spin down) if I hit the power button again it cold boots.
 

SandboxGeneral

Moderator emeritus
Sep 8, 2010
26,482
10,051
Detroit
The best thing is to get that battery replaced and make sure you have current backups to restore from should you get corrupted files.
 

Shrink

macrumors G3
Feb 26, 2011
8,929
1,727
New England, USA
Yeah, I forgot about the surges. You guys are right, when the power comes back, surges can and do occur. Plus there are brown outs which, probably, are the worst form of "outages" because the power is surging up and down, and giving low voltage to devices and appliances.

If one knows they're in a brown out condition, it's best to manually cut the power to your entire home at the breaker box and leave it that way until full power is restored.

Thanks...I found that interesting information about which I was unaware.:)
 

SandboxGeneral

Moderator emeritus
Sep 8, 2010
26,482
10,051
Detroit
Thanks...I found that interesting information about which I was unaware.:)

Yeah a brown out has tendencies to start structure fires because of compressors and motors on appliances like refrigerators trying to power up, but not getting enough voltage.
 

53kyle

macrumors 65816
Mar 27, 2012
1,282
111
Sebastopol, CA
I have experienced this before, but I am not sure when it happens. There were other times when the macbook simply cold boot.

Something weird happens sometimes. When the battery dies, I plug my charger in, I try to click few keyboard buttons but nothing happens. Naturally I hit the power button, but the reaction I get from the computer as if it was running all the time and now it has shut down (I kind of can hear it spin down) if I hit the power button again it cold boots.

Well, if your battery is giving you false readings, it is possible that it will read the percentage too high and when the battery dies, it won't even read that it was low enough and won't safesleep. But, what you were talking about hitting a few keys on the keyboard after plugging it in, I would listen up close to the computer and make sure that nothing is spinning before hitting the power button.

One last thing, get a new battery.
 

Ledgem

macrumors 68020
Jan 18, 2008
2,034
924
Hawaii, USA
My macbook battery would usually die while I am using it because it gives me false charge readings (10%) but then it shuts down.

If files are damaged, how can I fix them?
My suggestion is to run Disk Utility and "repair disk" on every single hard drive and USB drive that was connected to your computer at the time when the computer suddenly shut off. Usually there will be one or two small problems that are easily corrected; if left unfixed, they can add up and cause major problems later on.

Your primary disk won't allow you to "repair" while the operating system is running. Instead, choose to "verify disk." If it detects problems, you'll need to boot to your recovery partition in order to fix them.

It's worth mentioning that depending on what you or the operating system were doing when the system shut down, it's possible that Disk Utility won't be able to fix every single problem. I'd advise replacing the battery or being overly cautious when you use your computer. If the system seems to shut down randomly when it hits 10% of battery life remaining, stop using it at 15% and suspend or shut it down. For home users who have desktops without a battery, if you frequently encounter power outages, then invest in an uninterruptible power supply (UPS).
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,318
3,716
My suggestion is to run Disk Utility and "repair disk" on every single hard drive and USB drive that was connected to your computer at the time when the computer suddenly shut off. Usually there will be one or two small problems that are easily corrected; if left unfixed, they can add up and cause major problems later on.

Your primary disk won't allow you to "repair" while the operating system is running. Instead, choose to "verify disk." If it detects problems, you'll need to boot to your recovery partition in order to fix them.

It's worth mentioning that depending on what you or the operating system were doing when the system shut down, it's possible that Disk Utility won't be able to fix every single problem. I'd advise replacing the battery or being overly cautious when you use your computer. If the system seems to shut down randomly when it hits 10% of battery life remaining, stop using it at 15% and suspend or shut it down. For home users who have desktops without a battery, if you frequently encounter power outages, then invest in an uninterruptible power supply (UPS).


Thanks, I frequently repair disk like on weekly basis. I won't buy a new battery as my macbook is old ('09) and I do not want to invest a $100 in a new battery.
 

mmomega

macrumors demi-god
Dec 30, 2009
3,879
2,089
DFW, TX
Thanks, I frequently repair disk like on weekly basis. I won't buy a new battery as my macbook is old ('09) and I do not want to invest a $100 in a new battery.

I guess then the next question would be.

Is your data worth more than $100 to you ?
The one thing to remember is, that even if you are backing up with Time Machine or similar backup solutions, if your data gets corrupted at sometime then you will just be backing up corrupted data over and over. The original data may be in there somewhere until you start running low on disk space and the oldest backups get deleted to make room for the new.
 

MacBH928

macrumors G3
Original poster
May 17, 2008
8,318
3,716
So I did a verify disk, and I got something that said files bitmap corrupted. Something about orphan block. Not sure what it is but I did a repair disk and permission and it said the disk is OK now. Are my troubles over?


What are the popular UPS's? or any one will do just fine?
 

BrianBaughn

macrumors G3
Feb 13, 2011
9,637
2,407
Baltimore, Maryland
A UPS may be a great idea if your area suffers from frequent power outages. I don't have a specific model recommendation.

Perhaps, once you have a perfectly working system, you should start using Carbon Copy Cloner to back up to an external drive on a daily basis. If so, you'd have a bootable backup from which you could restore your original hard drive.
 

h9826790

macrumors P6
Apr 3, 2014
16,614
8,546
Hong Kong
Perhaps, once you have a perfectly working system, you should start using Carbon Copy Cloner to back up to an external drive on a daily basis. If so, you'd have a bootable backup from which you could restore your original hard drive.

Agree that CCC is the easiest way to maintain your mac bootable. You can schedule it to clone for you automatically (e.g. everyday). That will make your life much easier if the boot disk fail. The Time Machine is good for backing data, and it can protect you from accidently remove (or even worse, replace) a file. However, it won't allow you to boot, and recover a computer due to failed HDD from TM takes you a loooong time.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.