Questions tagged [bad-blocks]

51 questions
23
votes
5 answers

How are SMART selftests related to badblocks?

The smartctl tool allows initiating a long self-test (smartctl -t long /dev/sda). However there's also badblocks that I can run on a drive. How are the two related? If badblocks detects bad blocks, does the drive automatically update its SMART…
Hongli Lai
  • 2,332
19
votes
7 answers

How many SMART sector reallocations indicate problems?

I have a NAS appliance that is just over a month old. It is configured to email me alerts generated from the hard drives' SMART data. After one day, one of the hard drives reported that a sector had gone bad and been reallocated. Over the first…
Jeremy
  • 661
18
votes
2 answers

From bad sector to "damaged file" - did it for Linux/ext3, can I do it for Windows/NTFS?

When a SMART check on a disk reports a bad sector, it is important to be able to identify the file that has the bad sector - and restore it from backups. Below, I show how I did this for my Linux/ext3 VMWARE server - but does anyone know if this can…
ttsiodras
  • 433
  • 1
  • 4
  • 11
15
votes
3 answers

How to use hdparm to fix a pending sector?

SMART is stating one pending sector on of my server's hdd. I've read lot's of articles recommending using hdparm to "easily" force the disk to relocated the bad sector, but I can't find the correct way to use it. Some info from my "smartctl": Error…
Nino
  • 151
10
votes
8 answers

how to use a disk with high reallocated sector count?

After 3 years in 24x7 service a 1TB Seagate Barracuda ES.2 enterprise drive is showing signs of failure. S.M.A.R.T. reallocated sector count is high. Wikipedia article suggests that the drive can still be used for less sensitive purposes like…
9
votes
3 answers

How do SSD fail near end of life?

Let's say a MLC SSD has lasted a very long time and the first cell has hit its last erase cycle and refuses to erase. What happens after that? Does the controller detect that as a bad block and moves to the next one and tries to erase that instead?…
8
votes
2 answers

How to overwrite a very large hard drive (18TB) with random data using shell commands in Linux

I would like to overwrite a very large hard drive (18TB) with random bytes, to then check smart data for reallocated sectors or other errors. Since badblocks has some limitations on number of blocks it will work with in a single run, I have tried…
7
votes
2 answers

How to find files affected by reallocated sectors?

I have a Western Digital RE4 1.5TB that has just reallocated 56 sectors. Reallocated Sectors Count,140,193,193,OK,56,0,Enabled I want to know if it is possible to find out which are the files affected by these reallocated sectors, and if they…
Nick
  • 181
  • 1
  • 4
7
votes
1 answer

find file by block number on ext3 fs on lvm

smartd has detected a bad block on my hard drive and I'd like to know what file does that block belong to. I have ext3 filesystem on a logical volume. Google gave me a lot of tutorials (like this one: http://www.vanderzee.org/bad_blocks_howto) of…
facha
  • 1,428
  • 2
  • 19
  • 27
6
votes
2 answers

Fix RAID 5 with two drives containing bad blocks

Assume the following situation: An administrator was not careful enough maintaining a NAS server (QNAP QTS 4.3.3) using RAID5 and it has already reached a situation in which two (out of four) drives contain bad blocks, however no drive failed…
Dan
  • 171
5
votes
7 answers

Bad byte in one RAM module / Block area of RAM from being used

I have four 512 MB RAM modules in one server. The fourth RAM is showing error for only one bit when I use memtest86+ to test the RAMs. Even when I swap the RAM in fourth slot with some other RAM I still get error in RAM in fourth slot at exact same…
5
votes
1 answer

Windows Data Deduplication: Determine which file/s use a given chunkfile?

Using Windows Server's data deduplication feature: Given a specific chunk file in the chunk store, is it possible to determine which file/s include that chunk? The use case here is that unreadable blocks on the disk can be mapped back to the chunk…
4
votes
1 answer

Reliability of S.M.A.R.T. Selftest

I let smartd check my hard drives regularly. Recently I have been notified about a failed short selftest on one of my hard-drivers. smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.16.0-0.bpo.4-amd64] (local build) Copyright (C) 2002-14, Bruce…
Christian
  • 341
4
votes
2 answers

Badblocks output - Read, Write, Compare errors explanation?

I've been scouring the internet looking for a source on this, but have been unable to find any official documentation about Badblocks - the program that's a part of the standard e2fsprogs. I'm using Badblocks to validate new drives that I buy, and…
Locane
  • 449
4
votes
3 answers

input/output error at clean ext3 partition - how to check what wrong with data block

I have a problem with a file at a ext3 partition on CentOS 5 server (kernel version 2.6.18-164.15.1.el5) with a HP Raid Controller: hpacucli ctrl all show detail Smart Array P410 in Slot 1 Bus Interface: PCI ... HP tool doesn't report any…
Wawrzek
  • 212
1
2 3 4