Skip to main content

Questions tagged [bad-blocks]

A bad block (or sector) is essentially a block that returns an error rather than the data up on reading it.

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
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
42k 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
5k 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
514 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
  • 13.1k
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
-1 votes
2 answers
970 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
  • 13.1k
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
24k 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,052
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
3 votes
0 answers
121 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
2 answers
2k 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
  • 620
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

15 30 50 per page