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.

115 questions
65
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,059
  • 2
  • 9
  • 16
28
votes
1 answer

How do you use badblocks?

I need to do a destructive (rw) test on a new drive, and a read-only on a drive that fell out of my RAID array. I want to see if it finds problems and how far along it is.
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
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…
please delete me
  • 2,419
  • 5
  • 28
  • 28
23
votes
5 answers

Linux - Repairing bad blocks on a RAID1 array with GPT

The tl;dr: how would I go about fixing a bad block on 1 disk in a RAID1 array? But please read this whole thing for what I've tried already and possible errors in my methods. I've tried to be as detailed as possible, and I'm really hoping for some…
blitzmann
  • 385
  • 1
  • 2
  • 7
20
votes
3 answers

How can I check for bad blocks on an LVM physical volume?

When you're using ext4, you can check for badblocks with the command e2fsck -c /dev/sda1 # or whatever. This will "blacklist" the blocks by adding them to the bad block inode. What is the equivalent of this for an LVM2 physical volume? The…
strugee
  • 14,723
  • 17
  • 73
  • 119
19
votes
2 answers

Can btrfs track / avoid bad blocks?

I have a HDD which I don't entirely trust, but still want to use (burstcoin mining, where if I get a bad block in a file, I'll only lose a few cents). How can I tell btrfs to mark certain blocks as bad (eg from badblocks output)? If I can't pre-mark…
Tom Hale
  • 28,728
  • 32
  • 139
  • 229
17
votes
3 answers

Does a bad sector indicate a failing disk?

My Ubuntu 13.10 system has been performing very poorly over the last day or so. Looking at the kernel logs, it appears that the <1yr old 3TB SATA disk is having issues with a particular sector: Nov 4 20:54:04 mediaserver kernel: [10893.039180]…
MrNorm
  • 343
  • 1
  • 3
  • 7
11
votes
2 answers

Reduce bad block retry / wait times in Ubuntu

How can I reduce the IO wait time and retry times so that the OS doesn't continually try to write to a failing drive? I have an system that I use to make copies of demo content that gets loaned out to customers on to regular SATA desktop hard…
Ryan Sorensen
  • 211
  • 2
  • 4
10
votes
1 answer

Is badblocks trustworthy?

I can't find anything about what badblocks actually considers a bad block. I've read the man page and looked at a bunch of questions on here, but I can't find specifics. Also, how good is badblocks? Should I trust it's results? My company…
Clayton McCray
  • 113
  • 2
  • 6
9
votes
1 answer

How to check entire hard disk for errors and bad sectors

I may be misunderstanding some concepts here, but as far as I know, each disk has a partition table and actual partitions. I'm looking to test a hard drive for bad sectors and errors, but the tools I found to do this are meant for partitions -- not…
Gacek
  • 207
  • 1
  • 2
  • 7
9
votes
1 answer

Does my hard-drive have bad sectors or not?

I got a new drive and I'm confused if smartctl detects bad sectors or not. Both short and extended self-tests completed without error. But the Error Log indicates Uncorrectable error in data for 96 sectors. Here's the smartctl output: smartctl 5.41…
landroni
  • 10,288
  • 12
  • 30
  • 48
8
votes
1 answer

How can I choose optimal values for block size and blocks number for badblocks?

I'd like to test my hard disks with badblocks, but I don't know which values I should use for the block size (-b option) and blocks number (-c option). I randomly tried a few values and it seems they can significantly change the speed of the…
user22304
7
votes
3 answers

Are there error resilient filesystems for Linux?

Windows has a "Resilient FileSystem" since Windows 8. Are there similarly resilient filesystems for Linux? What I expect from such a filesystem is that a bad block won't screw up either files or the journal. I'm no FS geek, so please explain if such…
Camilo Martin
  • 709
  • 8
  • 10
7
votes
1 answer

Print list of bad blocks in NAND flash from user space

Is there any user space tool that can retrieve and dump the list of bad blocks in a NAND flash device? I've checked the mtdinfo command line utility, and also searched /proc and /sys, but couldn't find anything. I am looking for something suitable…
Grodriguez
  • 906
  • 2
  • 11
  • 31
7
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…
Mark Henderson
  • 270
  • 2
  • 11
1
2 3 4 5 6 7 8