Questions tagged [badblocks]

Corrupted blocks on a filesystem. Blocks are a unit of division on a filesystem.

Corrupted blocks on a filesystem. Blocks are a unit of division on a filesystem.

117 questions
66
votes
2 answers

How to interpret badblocks output

The man pages for badblocks do not seem to mention what the three numbers in the output mean in particular: Pass completed, 7 bad blocks found (7/0/0 errors) Pass completed, 120 bad blocks found (0/0/120 errors) I'm guessing it's "Errors while…
Tomalak
  • 1,069
26
votes
1 answer

Is interrupting badblocks risky?

I'm running badblocks to check for bad segments on an external drive, and it's been about an hour and it has not yet finished. Now, I need to go and consider cancelling. Is this somehow risky? Should I avoid this? Clearly, I will need to start…
8
votes
2 answers

badblocks only takes 32-bit integer as start/end values

I have a 4TB drive with a 4096 byte block size. I want to check a very specific set of blocks, around the 700,000,000th block or so for bad sectors. However, badblocks seems to only support int32 as the stop and start block counts, which means that…
2
votes
2 answers

badblocks cannot find any badblocks

I have an external USB WD disk (with physical and logical block size 512), which reports self test fail in smart with certain LBA. I tried to use badblocks to locate all the failed sectors/blocks, but it always finished the test with "Pass…
2
votes
0 answers

how can I force hdd to give the bad data of a URE sector / bad sector?

Sadly sometimes a sector of data on a hard disk may get corrupted, which in this context should mean that the data which was written to it (the 512 or 4096 bytes) cannot be reliably read back. Normally I get a message, informing me about the bad…
2
votes
2 answers

Badblocks on 2TB external USB disk

I'm running badblocks on a 2TB external USB drive (WD Elements) for about 4 days now and it is still running. I initiated the command as follows: /sbin/badblocks -wsv -o badblocks-ext-disk.txt /dev/sdc It's output untill now has been: Checking for…
Ambidex
  • 121
1
vote
0 answers

time estimation for badblocks completion

I recently was trying badblocks and tried- the following thing - $ sudo badblocks -v -s /dev/sda8 Checking blocks 0 to 1300928511 Checking for bad blocks (read-only test): ^C7.81% done, 12:38 elapsed. (0/0/0 errors) Interrupted at block…
shirish
  • 12,356
1
vote
1 answer

What pattern(s) does non-destructive badblocks -n write?

man badblocks says: -n Use non-destructive read-write mode. By default only a non- destructive read-only test is done. This option must not be combined with the -w option, as they are mutually exclusive. This answer…
Tom Hale
  • 30,455
1
vote
1 answer

Is it safe to interrupt badblocks?

I accidentally ran badblocks on my entire 320 GB disk instead of a single partition: sudo badblocks -s -v -n -f /dev/sda It's been running for 42 hours now. How can I tell when it will be finished? Can I interrupt it safely with Ctrl+C?
Sergio
  • 21
0
votes
1 answer

badblocks source code

I don't know English but analyzing is little possible. I need the source code badblocks. I hope header file for that too.(ex)com_err.h) I wish to recommend programs tools, too.
kkknjk
  • 11
-1
votes
2 answers

Allow recovery from interrupted `badblocks -n`

man badblocks says: -n Use non-destructive read-write mode. This answer says: The non-destructive read-write test works by overwriting data, then reading to verify, and then writing the original data back afterwards. Is there any way to…
Tom Hale
  • 30,455