Questions tagged [bad-blocks]

49 questions
21
votes
4 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,112
  • 4
  • 22
  • 27
18
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
  • 641
  • 3
  • 11
  • 16
18
votes
1 answer

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
  • 413
  • 1
  • 4
  • 10
13
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
  • 131
  • 1
  • 1
  • 3
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?…
Pyrolistical
  • 892
  • 2
  • 13
  • 20
8
votes
7 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…
Dmitri Chubarov
  • 2,296
  • 1
  • 15
  • 28
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…
Ján Lalinský
  • 262
  • 1
  • 10
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
  • 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,298
  • 2
  • 16
  • 26
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
  • 3
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…
Saurabh Barjatiya
  • 4,643
  • 2
  • 29
  • 34
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
  • 331
  • 1
  • 2
  • 10
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
  • 202
  • 2
  • 12
4
votes
2 answers

Bad sectors, S.M.A.R.T., SpinRite, firmware on platter and drive id questions

Is it possible for S.M.A.R.T. to give false readings (say I was fiddling with lots of recovery programs, transfers, so on and so forth) or is it absolutely a read-only direct correlation to the physical status of a drive? Does SpinRite level 5…
4
votes
4 answers

Hard Disk Bad Sector/Fault Analysis Tool

I have doubt that my hard disk is having problem since few days. I had Windows 7 installed earlier, which was working fine, soon it started giving BSOD (Blue Screen Of Death). I reinstalled Windows 7, but didn't work. I tried installing Win xp SP2,…
user34513
1
2 3 4