Windows 8 and 8.1 Forums


Fixing Bad Sectors on Hard Drive

  1. #1

    Fixing Bad Sectors on Hard Drive


    I am unable able to load into Windows 8. The automatic repair and chkdsk is taking 3 days and still hasn't fixed the issues.

    I used Ubuntu live USB to backup all the data on my hard drive, however some files failed to be backed up. I did a SMART disk check in Ubuntu and it reported that my drive has bad sectors.

    Is there anyway I can fix the bad sectors to backup the remaining files that failed to transfer?

      My System SpecsSystem Spec

  2. #2


    Posts : 5,360
    7/8/ubuntu/Linux Deepin


    You could try chkdsk /r or spinrite
      My System SpecsSystem Spec

  3. #3


    Posts : 87
    Win 8 and Linux (MINT)


    Use sudo fdisk -l to list all the drives and their partitions. For each drive:

    sudo badblocks -nvs /dev/sdx

    where your hard drive is /dev/sdx. This will perform a non-destructive read/write test on the disk without doing a filesystem check.

    If you don't care about the data, you can do this instead, to do a more thorough scan:

    sudo badblocks -wvs /dev/sdx

    The -w option tells badblocks to write a known pattern, then read back the data to make sure it matches the pattern. It does this 4 times, using the patterns 0xaa, 0x55, 0xff, and 0x00 (alternating 0's and 1's, then all 1's, then all 0's). Note that this will overwrite all data on the drive and wipe out all the partitions, as well.
    If you happen to have a Linux filesystem on the drive, you can check for filesystem errors and run badblocks at the same time.

    First, get the list of all the drives and their partitions:

    sudo fdisk -l

    Then for each partition:

    sudo e2fsck -fcc /dev/sdx#

    Again, /dev/sdx is the hard drive you want to scan. # is the number of the partition (e.g., /dev/sdb1). Specifying c twice will force fsck to run, and will use badblocks to do a non-destructive read-write test. If you just use the c option once, badblocks will do a read-only test.
      My System SpecsSystem Spec

  4. #4


    Austin TX metro area
    Posts : 640
    Windows 7 Pro 64bit [MS blue-disk set]


    majulook, where can I find sudo fdisk for windows? Googling didn't give me a clear download utility URL
      My System SpecsSystem Spec

  5. #5


    Quote Originally Posted by majulook View Post
    Use sudo fdisk -l to list all the drives and their partitions. For each drive:

    sudo badblocks -nvs /dev/sdx

    where your hard drive is /dev/sdx. This will perform a non-destructive read/write test on the disk without doing a filesystem check.

    If you don't care about the data, you can do this instead, to do a more thorough scan:

    sudo badblocks -wvs /dev/sdx

    The -w option tells badblocks to write a known pattern, then read back the data to make sure it matches the pattern. It does this 4 times, using the patterns 0xaa, 0x55, 0xff, and 0x00 (alternating 0's and 1's, then all 1's, then all 0's). Note that this will overwrite all data on the drive and wipe out all the partitions, as well.
    If you happen to have a Linux filesystem on the drive, you can check for filesystem errors and run badblocks at the same time.

    First, get the list of all the drives and their partitions:

    sudo fdisk -l

    Then for each partition:

    sudo e2fsck -fcc /dev/sdx#

    Again, /dev/sdx is the hard drive you want to scan. # is the number of the partition (e.g., /dev/sdb1). Specifying c twice will force fsck to run, and will use badblocks to do a non-destructive read-write test. If you just use the c option once, badblocks will do a read-only test.
    Thanks majulook
    The commands you specified me to run in Linux are to test which blocks are bad on a specific partition. However, it is possible at all to FIX the blocks WITHOUT losing the data. I was able to backup on my data however, few folders within /Users/myusername/Desktop were corrupted. I need to recover the data, it is very important.
      My System SpecsSystem Spec

  6. #6


    Sorry, but you can't "fix" bad sectors (which are hardware issues) using software. I know SpinRite claims to do this, but that claim has been debunked years ago.

    Also, it is useless to provide Linux filesystem commands to "fix" Windows filesystem problems.

    CHKDSK, the most used Windows utility, doesn't "fix" bad sectors, either, it only attempts to find filesystem problems and migrate used block to other, good, sectors.
      My System SpecsSystem Spec

  7. #7


    Yellow Belly
    Posts : 178
    Windows 8.1 with Bing x64


    Would it be worth ofline sector-by-sector imaging or cloning the drive and then accessing the clone or image?
      My System SpecsSystem Spec

  8. #8


    Quote Originally Posted by Mark Phelps View Post
    Sorry, but you can't "fix" bad sectors (which are hardware issues) using software. I know SpinRite claims to do this, but that claim has been debunked years ago.

    Also, it is useless to provide Linux filesystem commands to "fix" Windows filesystem problems.

    CHKDSK, the most used Windows utility, doesn't "fix" bad sectors, either, it only attempts to find filesystem problems and migrate used block to other, good, sectors.
    So does this mean I won't be able to recover the files?
      My System SpecsSystem Spec

  9. #9


    Quote Originally Posted by stringjunky View Post
    Would it be worth ofline sector-by-sector imaging or cloning the drive and then accessing the clone or image?
    How can I do this? Do I just clone the Windows partition or the entire hard drive? I am guessing this would require me to have another hard drive the same size or larger?
      My System SpecsSystem Spec

  10. #10


    Posts : 87
    Win 8 and Linux (MINT)


    Quote Originally Posted by RolandJS View Post
    majulook, where can I find sudo fdisk for windows? Googling didn't give me a clear download utility URL
    This is for LINUX the OP is using a Ubuntu Live USB to run the check and fix
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Fixing Bad Sectors on Hard Drive
Related Threads
Any idea why my SSD is listed as a 'Hard disk drive' instead of 'Solid state drive' as in your screenshots above? I am running W8 Pro x64 RTM from Technet. In Device Manager my SSD shows as a 'Samsung SSD 830 Series SCSI Disk Device'. I wonder if it's being on a Marvell controller might be the...
Can you save to hard drive and One Drive at Same Time?
Hard drive crash enquiry My hard drive recently crashed on my desktop running XP and due to the discontinuation of support for XP, I decided to upgrade with a new motherboard, memory, hard drive etc., now running Win 8.1, which has been working fine so far. My problem is that there is...
Repairing and fixing drive D in Performance & Maintenance
Hello My windows 8 HP laptop keeps getting scanning and repairing drive D 100% complete and just stays there and nothing happens. And sometimes it goes on and it just becomes a black screen... My laptop was shut down for a few weeks and this happened and I need it again now... I got a new laptop...
I'm booting off my SSD which is drive C:\ and I have games and programs on an extra hard drive which was origanally drive H:\ but after a restart it switched to I:\ and when I go into Disk Management to change it Drive H:\ isn't there.
I have a 2TB Western Digital My Book Essentials, it's filled with tons of old photos, movies, docs, games, and I'm scared to think of what else. The SATA to USB connector broke on it, so I took the drive apart and put it inside my computer. I opened up device manager because it wasn't showing up...
So the same issues i had in Windows 8 Release Preview too and i was hoped to be fixed in Windows 8 RTM but still the same! So the issue about HDD is that i'm using two hard drives; one is Western Digital which is primary with Windows 8 installed on it and the other is Hitachi which i use it for...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook