Questions tagged [bad-blocks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
140 votes
16 answers
29k views

How can I intentionally break/corrupt a sector on an SD card?

I need to test the resilience of some read/write code for some embedded hardware. How might I sacrifice a few SD cards and break several known sectors for a controlled study? The only thing I can ...
Gabe Krause's user avatar
  • 1,317
11 votes
2 answers
41k views

Rescuing a hdd with bad sectors: dd vs gddrescue

Somewhere on the internets I read that gddrescue is superior to dd at least in terms of being able to distinguish between the amount of disk reads performed on a troubled sector. Is this really the ...
XXL's user avatar
  • 1,469
4 votes
2 answers
4k views

Do bad clusters on modern (as of 2020) SSD indicate hardware failure?

I've got a Samsung 970 Evo 2TB SSD that has been working perfectly for a year and a half, under a mostly-read load. Recently, while updating Windows to the 2004 release, the OS got stuck in the ...
Therac's user avatar
  • 175
1 vote
1 answer
488 views

How likely is the last block of a drive to be a bad sector?

This is a follow-up question to this one, where zeroing the disk with dd would give me an error towards the very end of the drive. I then set about trying to determine whether this was a bad sector, ...
Hashim Aziz's user avatar
  • 12.8k
0 votes
2 answers
6k views

Tool to read all blocks from HDD and write it back

I need tool to read each sector(block) from HDD and write it back to same HDD. Disk is big and so it is not possible to use image creation tools (backup/restore). Purpose of it - to avoid/resolve ...
Broomerr's user avatar
  • 116
0 votes
2 answers
3k views

Is it possible to mark or segregate bad blocks on HDD?

Hello I want to know if is it possible to mark bad blocks on HDD for OS to not use them. I don't want to save data written on this blocks, just want to get rid of them. I found some article where ...
Gondil's user avatar
  • 301
-1 votes
2 answers
950 views

Badblocks reports "weird value (4294967295) in do_write" when writing patterns

This is the second time that I'm receiving this error running badblocks, approximately 2 years apart from the last time, and the vast majority of factors from hardware (cables, etc.) to software (the ...
Hashim Aziz's user avatar
  • 12.8k
18 votes
3 answers
18k views

badblocks vs. SMART Extended Self Test

How does a full read/write surface scan by 'badblocks' differ from the built in SMART Extended self test? It seems like they are both full surface scans, so why does it take badblocks -vws 3 days to ...
Robert S. Barnes's user avatar
15 votes
1 answer
11k views

View bad blocks on mounted ext2/ext3/ext4 filesystem

I've ran fsck -c on the (unmounted) partition in question a while ago. The process was unattended and results were not stored anywhere (except the bad block inode). Now I'd like to get bad block ...
Basilevs's user avatar
  • 2,796
4 votes
3 answers
12k views

Mark bad blocks as unusable on NTFS using linux

one of my laptops are using windows and after a certain impact it doesn't boots up anymore, I figured the disk might've been damaged. So I've launced live Kali linux and scanned it with badblocks (...
Ben's user avatar
  • 237
4 votes
6 answers
23k views

How to quickly format a HDD with bad sectors (in linux)?

I have a SATA HDD, which has bad sectors. I do not need the data, and need to format the HDD to create a fresh device. I tried to repair the HDD problem with commands like fsck.ext4 -p /dev/sda1 ...
Googlebot's user avatar
  • 1,042
3 votes
2 answers
1k views

What happens to sectors marked as bad when HDD is repartitioned? [duplicate]

If I have an HDD with some bad sectors and I format the disk (from Windows) or re-partition the disk, will bad sectors still be marked as bad?
realtebo's user avatar
  • 590
3 votes
1 answer
4k views

Bad sectors vs spare/reserve sectors and how the OS and disk interpret them

From what I understand, there are two fundamental ways sectors are marked bad: OS performs IO read/write instruction. The sector is replaced with a spare and marked bad. Disk's low-level instructions ...
user301234's user avatar
3 votes
0 answers
119 views

what physical disk is referenced by Event 7, Disk error "The device, \Device\Harddisk2\DR2, has a bad block." [duplicate]

Possible Duplicate: How do I determine which HD is involved in the Event Viewer? NOT a duplicate well, maybe the general premise is a duplicate, but the linked question is not answered, only has ...
JasonS's user avatar
  • 191
3 votes
1 answer
4k views

Any way to recover a file with bad blocks (CRC error in Windows)?

What I see is this: Windows complains when reading a file because the CRC for it mis-matches its calculated CRC. This means NTFS has a CRC for the file. I expect the offending block/sector can be ...
Camilo Martin's user avatar
2 votes
1 answer
5k views

badblocks is taking ages - what am I doing wrong?

I have a 8TB Seagate Archive drive which has a few bad sectors. I can't afford to replace it yet, though. I'm trying to "fix it" with badblocks for the time being, but it's taking ages: # badblocks -...
stevereds's user avatar
  • 125
2 votes
4 answers
1k views

Are all bad blocks the same on a HDD?

I don't know much about the physics behind bad blocks on a HDD, but I've often seen that a "bad" block turns to good when you overwrite it with something (anything, zeroes will do). I've even written ...
Vilx-'s user avatar
  • 4,205
1 vote
1 answer
28k views

How to fix bad blocks on SSD

I've got 14 bad sectors on my Kingston HyperX SSD. Although any benchmark shows that SMART for this drive is good or 100% on CrystalDiskInfo. Is there any way to erase them? I've tried Vitoria with ...
vmeln's user avatar
  • 233
1 vote
2 answers
5k views

A RAM stick has a few bad blocks. Is there any way I can turn them off, or allocate the bad blocks so other programs cannot use them?

System instability, such certain programs crashing under load, led me to test my memory modules. The bad blocks on the problem stick lie in the range 001CB18000 to 001CB19000. The memory stick has a ...
Mark C's user avatar
  • 253
-1 votes
1 answer
6k views

How do Zero-Fill, Full Format, and CHKDSK fix bad sectors?

I use HD Tune pro error scan to find problems with mechanical hard drives. However, I am confused as to weather these are fixable problems or not. Please clarify weather my statements are accurate: ...
cloneman's user avatar
  • 1,094