wood burning stoves 2.0*
The moose likes General Computing and the fly likes how to fix bad sectors in hard disk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "how to fix bad sectors in hard disk" Watch "how to fix bad sectors in hard disk" New topic
Author

how to fix bad sectors in hard disk

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
Hi All,
i got bad sectors in my hard drive due to them i am not able to use my laptop, can anyone tell me how can i fix them?
i tried hiren boot cd http://jai-fixyourpc.blogspot.in/2011/09/how-to-fix-bad-sectors-in-your-hard.html.
but while performing scan on my hard disk i am getting this error: Uncorrectable CRC or ECC error on read
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

About the only way to reliably fix bad sectors on a hard drive is to run the drive manufacturer's sector verification utility which will examine each sector and relocate bad sectors (thus removing them from the available sector pool). Of run the manufacturer's reformatting utility which reformats the disk (back up first - the disk will contain no data after the reformatting). But even those two steps didn't fix one of my drives - I noticed that both utilities had problems when they were about 98% done with the sector scan. So I resized my partition to avoid the last 2% of the disk and have had no problems since then.

For a laptop, my recommendation is to get another hard drive and use a drive imaging tool to move you existing data to the new drive. Then place the old drive into a USB enclosure and run the tools on that at your leisure. If the old drive is still usable you'll have a convenient backup drive.


JBoss In Action
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 931
well i have also tried seatools. drive manufacture utility, but it was not even able to scanned my drive, it was failed in couple of minutes.
Does low level formatting fix bad sectors?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18124
    
    8

It isn't necessarily possible to fix a bad sector -- for example if there's a scratch on the surface of the disk, that can't be fixed. Especially by software. However the formatting process is supposed to recognize bad sectors and exclude them from the file system. So essentially as far as the operating system is concerned, once that's done they don't exist.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2712
    
    5

Punit Jain wrote:Does low level formatting fix bad sectors?

Well the answer would be no. Low level format, also known as "zero fill drive" writes a 0 to each and every memory location down to byte level.
This will only safely erase all your data, without being able to recover it, ever.
For the bad sector part, the common solution is try to recover data from that sector using specialized software, try to fix the sector, if not fixable, mark it bad.

SCJP, SCWCD.
|Asking Good Questions|
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

Punit Jain wrote:well i have also tried seatools. drive manufacture utility, but it was not even able to scanned my drive, it was failed in couple of minutes.

In that case your drive is probably crashed beyond fixing. Time to by a new disk. Hope you have a recent backup!
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3435
    
  47

My experience is that when bad sectors appear on modern hard disks, it's time for a new one. The disk reserves some space which is used to replace bad sectors that appeared somewhere on the drive, without even notifying the OS (the HDD controller handles that transparently). When the OS detects a bad sector, it usually means the reserved capacity for bad sectors has been already exhausted and the HDD controller cannot conceal the failure. The drive is in all probability already in a bad shape.

I personally haven't seen bad sector for years. The last time one appeared was due to an on-board RAID controller malfunction (as was later determined).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to fix bad sectors in hard disk
 
Similar Threads
JAI ImageIO.read gives IllegalArgumentException
how mark HD bad sector w/o scan over it?
increasing the date in java as whole
Phonecall sound integration
rm: cannot remove : Permission denied