Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

HDD Bad Sectors question...

It happened like 3 months ago I had to shut down (via force shutdown i.e. holding the power button for over 3 seconds) my Mac after the system became un responsive during an empty trash operation. Then while running apple software update Windows (running Windows via bootcamp) it also locked up (it like completely froze no mouse movement at all). I would like to know if that created a bad sector in my HDD by doing this forced shutdown procedure. I reinstalled Mac OS X just to avoid any problems down the road after the forced shutdown.

Again the question is: Does a forced shutdown can create a bad hard drive sector?

Also, is there a way to recover bad HDD sectors? Disk Utility perhaps?

Thank You for your time.

2.53GHz Core i5 MacBook Pro 15" (Mid-2010), Mac OS X (10.6.4), 500gb HDD @ 7200rpm, 4gb 1067mhz ddr3 ram, Intel HD + Nvidia 330m 256mb

Posted on Oct 20, 2010 6:20 PM

Reply
31 replies

Oct 21, 2010 1:36 PM in response to Trisha K

Hi Trish!

Always use the one for the current version you have installed. If possible use the disc with the same sub-version you have installed. This is not always possible. If you bought SL when it first came out then your disc installs 10.6. If you buy today you will likely get one that installs 10.6.4. But the major version is 10.6. I'm using SL in this example but the same goes for whichever major version of OS X you have installed.

Oct 21, 2010 2:07 PM in response to Kappy

Kappy,

When you are doing a clean install of OSX, does the installer rewrites the OS Files in the same place where the older OS files where? Is that similar to the "empty trash" option that deletes the link to the file but the file remains in the hard drive until that area gets written over? I know that "secure empty trash" deletes the file link and the file itself by passing the head over the location of the file in the HDD surface multiple times.

Oct 21, 2010 2:17 PM in response to Kappy

I absolutely agree that using a forced shutdown can indeed lead to all sorts of data corruption and logical disc errors.

But, just in light of the original post, I do maintain that it should not lead to any actual hardware issues (e.g. disc damage from a head crash). My understanding is that the final machine power down is handled by EFI Firmware code. Pressing and holding the power button does bypass all of the OS shutdown processes - all the things you mention (caches, temp directories/files and so forth) - but the hardware still powers down normally, which should mean the hard drive heads parking properly and so forth.

I just think the op was given incorrect and bad advice. There is no reason to think that a forced shutdown will or has caused any hardware issues or physically bad sectors to their hard drive. A forced shutdown bypasses the OS and software parts of the process, but the hardware is still "normally" power off - in other words, from a hardware shutdown point of view, it is not at all akin to yanking the plug, but allows things like hard drives to shut down properly and gracefully.

Logical errors and data corruption, if they are not automatically fixed by system checks and so forth during the boot cycle, will be evident at the next boot cycle, and can usually be fixed with software tools as already mentioned.

Oct 21, 2010 2:18 PM in response to vea1083

No. The installer writes the new system onto empty space on the drive, so you need to have sufficient free space for the installation. It then examines what third-party apps need to be moved, finds the support files and moves them, and moves your entire Home folder. System preferences are also moved. Then the old system is removed.

The process is much like an Archive and Install except that no archived system is retained.

Oct 21, 2010 2:35 PM in response to Michael Black

I would not expect it would lead to mechanical damage but I wouldn't rule it out given the circumstances. Any time there's an abnormal shutdown there's a risk of damage to the drive assuming the drive wasn't already damaged and caused the lockup. Although modern hard drives are pretty resistant to physical damage it still can happen. The heads don't park properly then bad things may happen. Modern drives are supposed to autopark the heads when they lose power, but no doubt there's at least one time when they don't.

The person advising the OP probably overstated the situation perhaps looking to get the sale of a new drive and some service fees, but that's not necessarily the case. He/she may just be poorly informed - a condition that is often the case with the Genius Bar geniuses. Many are pretty dumb. User uploaded file

If there is no real data corruption and the drive is OK, one expects that the system will restore the last known good state using the journal. The real benefit of using a journaled filesystem.

Oct 21, 2010 4:55 PM in response to Kappy

So even if I erased the disk before installing by clicking the "erase" button in disc utility, the reinstalled OS will be placed somewhere else in the dirve?

Let's see this primitive diagram:

Orginal state of drive before reinstalling OSX:

-----OS original install-----)--------Free Space------

The above is a diagram of the OS in logical sequence.

State of the hard drive after the reinstall (just clicking the "erase" button in Disk Utility):

-----Free Space formerly used by original OS)----OS current Install----)----Free Space------

OS is put elsewhere while the original OS file links have been deleted but the files itself are still in the drive and left to be overwritten until that space needs to be reused by newer files.

Doesn't the installer do the following when you click "erase" and then reinstall:



-----New OS re-install Over the old OS installation-----)---------Free Space--------

I hope this helps to see if I uderstood your post.

Oct 21, 2010 6:16 PM in response to vea1083

No. If you erase the drive then files are installed in empty space,. But that wasn't what you originally asked. You need to be consistent with the question you ask or be more precise about what you are asking.

There are two potential situations 1. You are installing onto a freshly formatted drive; 2. You are reinstalling on a drive that already has an installed system. Got the picture? In the former situation there are no files to overwrite or replace because they've been erased. In the second scenario you are reinstalling and replacing an existing system. The new system is added then the old system is removed.

Oct 21, 2010 6:46 PM in response to Kappy

Kappy wrote:
No. If you erase the drive then files are installed in empty space,. But that wasn't what you originally asked. You need to be consistent with the question you ask or be more precise about what you are asking.

There are two potential situations 1. You are installing onto a freshly formatted drive; 2. You are reinstalling on a drive that already has an installed system. Got the picture? In the former situation there are no files to overwrite or replace because they've been erased. In the second scenario you are reinstalling and replacing an existing system. The new system is added then the old system is removed.



So my drive looks like this right if I just went and skipped the "erase" step in disk utility while reinstalling Snow Leopard?

-----Free Space formerly used by original OS)----OS current Install----)----Free Space------

Anyhow, when I clicked "erase" on disc utility did I formatted the drive? I remember that I had to rename the drive back to Macintosh HD. So if I refformatted the drive, it should place the re written files in the same place as their old counterparts did, Making it look like this:

-----New OS re-install Over the old OS installation-----)---------Free Space--------

Right?

Thank You. Please excuse my inconsistence on questions, hope I am not bothering, again my excuses if this post again drifted away from the main question.

Oct 21, 2010 6:55 PM in response to vea1083

If you opened Disk Utility in the OS X installer before installing, selected your hard drive, clicked on the Erase tab in the DU main window and clicked on the Erase button, saw the drive disappear from the Desktop for a few moments, watched a progress bar, then announce the process was successful, and the disk icon reappeared, then you erased the drive prior to installing.

The newly installed OS files will be written to drive by the installer. Most likely in the same place as before (I don't know why that would be important.) However, the new system is not installed "over the old OS installation" because the old installation was erased. Maybe for you this is a terminology confusion. When you say "over" that means "over writing" which is not what is actually taking place if you install on a freshly formatted drive because there isn't anything to "over write."

Technically when files are erased only the drive's directory is actually modified. The files themselves still reside on the media but now there's no way to know where they are or in what order. If you Zero a drive during reformatting that writes zeroes to every byte on the drive wiping any trace of the old files because then all the data are overwritten with zeroes. Now, if this is what you are thinking, then you understand it correctly.

Oct 22, 2010 6:57 AM in response to Kappy

http://www.youtube.com/watch?v=z0K-mD8rAyA

This is a Youtube tutorial of how to do a clean re-install of Mac OS X 3 months ago. You can go ahead and forward to the 3 minute mark of the video, there the step of erasing the Macintosh HD with disk utility is shown, and that's similar to what I did with my macbook pro when I reinstalled OSX. Based on this video did I deleted my old OS files as you expected? When I did that same procedure on my MacBook, my apps and settings were completely gone, as I said earlier, I had to reinstall all my apps that were not included in the OSX Disc (such as iLife and other third party software).

Thank You.

Oct 22, 2010 2:40 PM in response to vea1083

vea1083 wrote:
So OSX installed like if it was in a new HDD? (based on your answer I think it did) I clicked on the Macintosh HD icon to erase the drive, as the person did in the tutorial not in the Hard Drive icon (the one with the drive factory name and on top of the Macintosh HD).

Thank You.

Kappy,

Did you read my last post? I quoted it...

HDD Bad Sectors question...

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.