Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: CHKDSK zeroes out bad sectors

13 Apr 2012   #1
InquiringMind

Windows 7 Ultimate x64
 
 
CHKDSK zeroes out bad sectors

While using my laptop to load some old training DVDs for archiving, I discovered evidence of a bad sector on my laptop's hard drive (Seagate Momentus 7200.4 SATA 500GB): upon investigating file compare errors, I found one fairly large file (464MB) where, after several tries, everything matched perfectly except the last 16 bytes which displayed three or four variations on the hard drive.

While running Check Disk (at Win7 Ultimate x64 boot-up, initiated from Windows Explorer with the option "Scan for and attempt recovery of bad sectors"), CHKDSK reported a single bad sector -- in the file in question -- and claimed to have fixed it. So far, so good.

After running file compares again, though, I found that CHKDSK had zeroed out the last 32768 bytes. I expected all but the last 16 bytes of the file to be correct; why was any of it zeroed out?

The last time I had such detailed experience with CHKDSK and live data involved MS-DOS and floppy disks, and I'm pretty sure CHKDSK really did recover most or all of the data in question. So this was a surprise. Why couldn't Win7's CHKDSK succeed at "attempt[ing] recovery of bad sectors" and at least read what ordinary utilities could read?

At the very least, this is motivation to be diligent about backups!


My System SpecsSystem Spec
13 Apr 2012   #2
logicearth

Windows 8.1 Pro (x64)
 
 

Keyword "attempt" recovery of bad sectors. Attempt, not guaranteed, attempt. And as it is CHKDSK does not remove data it saves what it can and moves it, if it couldn't move those "32768 bytes" you are concerned about its probably you have bigger issues with your drive then you thought.
My System SpecsSystem Spec
13 Apr 2012   #3
wanchoo

Windows 7 Pro with SP1 32bit
 
 

You are most welcome to Seven Forums InquiringMind.

Now that a bad sector has developed on the laptop's hard drive, you should keep a close watch on it. This is the first sign that it is soon going to need a change.
My System SpecsSystem Spec
13 Apr 2012   #4
InquiringMind

Windows 7 Ultimate x64
 
 

I certainly plan on keeping watch on my hard drive, although the only problem identified so far was this single bad cluster. And I am not worried about the file, which was only a copy to begin with.

My question is still about CHKDSK. If it had "attempted" recovery of the data at least as well as three other utilities I used multiple times to test and investigate the problem, CHKDSK would have succeeded in reading all but 16 bytes -- and those most likely would not have ended up as zeros. The mere fact that the last cluster was entirely zeroed out rather than mostly the correct original data (or even garbage if there were additional read errors because of the recovery attempt), suggests to me that CHKDSK is NOT attempting to recover the data. If not, why make the claim?
My System SpecsSystem Spec
13 Apr 2012   #5
logicearth

Windows 8.1 Pro (x64)
 
 

Why make the claim? Because it does recover data that it can. Again it comes back to "attempt" recovery of bad sectors. Read: Windows Internals, 5th Edition Chapter 11 Page 985, NTFS Bad-Cluster Recovery.

Also, a cluster by default is about 4096 Bytes, When a sector is deemed to be bad, it marks the whole cluster as bad. Clusters are the smallest unit file systems work with. (4K clusters hold about 8 sectors.)
My System SpecsSystem Spec
15 Apr 2012   #6
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Suggest you download Seatools, and create a bootable disc to run on boot. Seatools can often repair bad sectors.

SeaTools for DOS | Seagate

| Seagate

A Guy
My System SpecsSystem Spec
Reply

 CHKDSK zeroes out bad sectors




Thread Tools





Similar help and support threads
Thread Forum
Chkdsk says "bad sectors". Do I need to replace my hard drive?
Here is the log from Chkdsk. Would someone be kind enough to read it and let me know your thoughts? I had problems with my touchpad and cursor behaving erratically on my Dell Inspiron 1440 laptop and it was suggested that I run Chkdsk to see if it's a hard drive failing. I put a piece of screen...
Performance & Maintenance
Chkdsk reports bad sectors/Seatools for Dos (Legacy) Passes Long Test
Hello all, I'm having trouble understanding why I am receiving conflicting results from ChkDsk and SeaTools for Dos. If it makes a difference I have a lenovo y580 ideapad laptop which has both a 32gb ssd and a 1tb hdd. There is some proprietary software called, rapiddrive which virtually...
Hardware & Devices
Chkdsk found and repaired 4 sectors-drive failing?
Chkdsk ran and found 4 unreadable sectors. I'm assuming that it deleted the bad data and rewrote it in another area as win 7 home prem now loads. I have data like pics and custom vids I would be sick to lose. Is this drive going to fail and if so can you recommend my next best course of action?...
Hardware & Devices
Chkdsk /f /r stuck, want to clone w/defective sectors
Hi guys. My 250GB LaCie External hard drive is failing. I tried to copy the data off of it before attempting anything but to no avail (Move operation would not start). So, I started a ChkDsk /f /r but it got stock at 10% on Stage/Step 4. I know it's failing. Windows still show it in "Computer" and...
Backup and Restore
BSOD 0x01e (all zeroes)
This happened both yesterday (3/20/12) and today (3/21). Had several things running (VPN, Outlook, Notepad++, Visual Studio 2010, SQL Server 2008 R2, IE, Chrome) but everything was pretty much idle. All of a sudden, BSOD. Note: the System Health Report says no active AntiVirus but that's not...
BSOD Help and Support
Chkdsk /v 8kb in bad sectors
I made a chkdsk and found errors which were repaired by not allowing the bad fragments to be written on. When I use chkdsk /v it continually shows 8kb in bad sectors. Does anyone know if these are the bad sectors that were sent into limbo or the total bad kb on the hard drive? I am trying to...
Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 15:17.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App