Questions tagged [bad-blocks]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

How to make ddrescue rescue unreadable files along with rsync run when you backup files, when they exist only at the source?

How to make ddrescue rescue unreadable files along with rsync run when you backup files, when they do exist only at the source? I think that major programs that work on backup disks must "merge&...
Elias Estatistics's user avatar
8 votes
2 answers
2k views

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 ...
Ján Lalinský's user avatar
1 vote
1 answer
258 views

HDD bad sector marking through LUKS2 layer (dm-crypt) + ZFS

If having 2x LUKS-encrypted HDDs with a ZFS mirror pool on top of the dm-crypt mapper devices: what happens if one of my HDDs encounters an error and the OS recognizes a sector as bad ? Will this bad ...
Vortex's user avatar
  • 13
0 votes
1 answer
306 views

Recover data from broken RAID 1 drive

I need to save files from a Buffalo NAS Linkstation with two physical drives that is not working anymore (2TB each, Raid 1). Error message says: The bad sectors in the hard drive may have reached a ...
peterpetersonling's user avatar
0 votes
1 answer
287 views

iowait Bound Server - Load Calculations & Process Scheduling

I have a script I'm writing that runs badblocks against a disk shelf full of drives and I'm trying to understand the server load that develops and at what point the server load is critical in this ...
Zenonk's user avatar
  • 56
1 vote
0 answers
500 views

ddrescue - retry bad sectors starting from the end of the disk

How can I attempt to read bad sectors from the end of the disk, using ddrescue? I have dynamic volumes and the LDR is kept at the end of the disk, unlike MBR. I remember that I've tried --reverse but ...
Nick's user avatar
  • 181
-3 votes
1 answer
445 views

fsck -n /dev/nandb giving errors . how to solve fsck errors [closed]

I want to know how to solve this error? help me out!! INPUT "fsck -n /dev/nandb" OUTPUT fsck from util-linux 2.25.2 e2fsck 1.42.12 (29-Aug-2014) Warning! /dev/nandb is mounted. /dev/nandb ...
niranjan pawar's user avatar
1 vote
1 answer
768 views

Current Pending Sector S.M.A.R.T

Hello I have a Linux Server mounted with BTRFS in RAID-1 and I would like that someone more expert than me could solve my doubts. I have 3 HDD of 6TB each, in one of them every so often smartd detects ...
Santiago Maturana Arce's user avatar
6 votes
2 answers
1k views

Fix RAID 5 with two drives containing bad blocks [closed]

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 ...
Dan's user avatar
  • 171
1 vote
3 answers
779 views

What if I don't replace failing disk in Raid1

I have a home server on Synology DS716+ running Raid1. Currently Disk1 S.M.A.R.T. status is Failing and also Bad Sector Count displays 2. So obviously I should replace this hard drive, but I am ...
callmebob's user avatar
  • 143
-1 votes
1 answer
3k views

Many slow sectors on HDD

After 7 years of using my Western Digital Caviar Black WD1002FAEX-00Z3A0 1Gb HDD looks like this: https://i.stack.imgur.com/5Bcpq.jpg I did this Victoria test after experiencing some glitches while ...
koroveo's user avatar
  • 17
-2 votes
1 answer
91 views

Is there a file system that mirrors data and reallocate avoiding bad blocks automatically? [closed]

Let me explain it better here... I have a 1 TB HDD with bad blocks, I know that it will degrade until stop, but I still want to keep using it. So, my question is: Is there any file system capable of ...
Wagner Bertolini Junior's user avatar
3 votes
3 answers
6k views

Which drive in RAID has bad sectors?

I have 4 physical drives in a single virtual drive using an LSI MegaRaid SAS controller. It seems (at least) one of the drives has bad sectors because: io errors occur when attempting to back up some ...
James's user avatar
  • 325
1 vote
1 answer
2k views

Amazon EC2 Snapshot corrupt

The snapshots for one of our AWS volumes are corrupt. We use these snapshots as backup, and in the past they have been a great help. (NB: This is not our only backup method!) A corrupt snapshot is ...
SPRBRN's user avatar
  • 571
1 vote
1 answer
882 views

SMART vs badblocks, who is right?

I have and semi-old hdd (magnetic one, not ssd) and I intended to use it as system drive for my new NAS. So I've run SMART selftest on it and it ended with status "Completed: read failure". However, ...
graywolf's user avatar
  • 187
4 votes
1 answer
1k views

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] ...
Christian's user avatar
  • 341
3 votes
2 answers
8k views

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 ...
Locane's user avatar
  • 429
3 votes
1 answer
374 views

When does a Raid restore redundancy after a broken sector is flagged as defective?

What happens when I flag a sector on a hdd in a RAID setup as `defective (GLIST) ? Will the data be written to the replacement sector right away or does this depend on the actual setup/settings (...
Benedikt Haug's user avatar
-1 votes
1 answer
4k views

My production server has bad blocks, now what?

My server has crashed for Nth time in a couple of months, so I decided to do a badblocks test. I have used fsck to detect and mark badblocks, and it has indeed detected some. If I am correct, this ...
blueFast's user avatar
  • 4,220
1 vote
2 answers
687 views

Is HD, SSD or SD card cloning a good practice?

Cloning is very convenient if multiple identical systems need to be created. But I have the following concern. As far as I know during formatting of file system and even during it's use a bad disk ...
Linas's user avatar
  • 19
4 votes
3 answers
5k views

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 ...
Wawrzek's user avatar
  • 212
0 votes
0 answers
113 views

Why are bad superblocks happening

I have Dell MD1000 storage that has 3x 2TB sata hdds (RAID 0, will move to RAID 6 soon) and 90% of time I am reading from it 40-60MBps via webserver. When I want to restart machine I simply stop ...
Wiggler Jtag's user avatar
2 votes
1 answer
782 views

Is my hard disk failing?

I've just had the hard disk on my server replaced. It was part of a RAID 1 array. The sdb1 partition keeps failing every few hours now. # cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [...
Elijah Paul's user avatar
1 vote
2 answers
1k views

Currently unreadable sectors on RAID 5 linux drive

I have every 30 minutes smartd messages on /var/log/messages: smartd[3588]: Device: /dev/sdc, 176 Currently unreadable (pending) sectors This drive (sdc) is part of RAID 5 configured with mdadm. ...
Abraham's user avatar
  • 73
7 votes
2 answers
3k views

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 ...
Nick's user avatar
  • 181
0 votes
1 answer
1k views

Badblocks not displaying "Pass completed" after finishing

This is the command I am running to test a HDD with badblocks: badblocks -b 4096 -c 98304 -w -s /dev/sda1 The output is: [root@localhost liveuser]# badblocks -b 4096 -c 98304 -w -s /dev/sda1 ...
sa555's user avatar
  • 144
7 votes
1 answer
2k views

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: ...
facha's user avatar
  • 1,368
0 votes
2 answers
3k views

ext4 on faulty disks. How to avoid remount read-only?

The Problem: I'm in charge for a Hadoop cluster of 44 nodes. We have 1.5TB WD Green Drives with (quite unknown) the Load Cycle Count problem. These disks work fine but as they get older they show an ...
kei1aeh5quahQu4U's user avatar
0 votes
2 answers
189 views

Hard drive errors: probably 2 bad sectors and nothing is working

All started with bsod from WindowsXP: unmountable boot volume. Then I tried ubuntu and Palimpsest. SMART status was OK (2 bad sectors), but all test failed on "reading system" (I don't know if I ...
Ari's user avatar
  • 131
24 votes
5 answers
18k views

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, ...
Hongli Lai's user avatar
  • 2,222
0 votes
1 answer
383 views

Forcing a SCSI HDD to rewrite a damaged sector

For a SATA/PATA HDD, this would be the normal procedure: http://www.sjvs.nl/?p=12 But a customer of mine has an old server with actual SCSI drives. I have tried re-writing the sector with dd to no ...
Alastair Irvine's user avatar
1 vote
1 answer
2k views

Does my server have bad blocks or not?

My server crashed today. It switched the /sda8 device (/home) to read only and the log said "ext3_xattr_block_get: inode 590080: bad block 6" From rescue mode (something my hosting provider offers ...
user32381's user avatar
  • 207
1 vote
1 answer
891 views

Linux mdadm RAID5 data recovery with one drive failed, one drive failing

Improbably I had two drives fail in the same Raid5 array within 2 weeks of one another. Which means the array is dead. Yes yes hot spares not being lazy about replacing the failed drive I know. But ...
cecilkorik's user avatar
14 votes
3 answers
35k views

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 ...
Nino's user avatar
  • 141
1 vote
1 answer
2k views

BAD stripes in controller and windows utility to remap bad blocks

Ok, here is my story. I have 3 disks raid 5, one of the disks made a few surface errors and I didn't know. I tried to repair the corrupted database table in mysql and the machine froze on write. I ...
Jerry2's user avatar
  • 171
2 votes
2 answers
7k views

Bad Blocks Exist in Virtual Device PERC H700 Integrated

I have a DELL server with PERC H700 Integrated controller. I've made RAID5 with 12 harddrives and the virtual device is in Optimal state, but I receive such errors under linux: sd 0:2:0:0: [sda] ...
neoX's user avatar
  • 141
8 votes
7 answers
41k views

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 ...
Dima Chubarov's user avatar
0 votes
1 answer
3k views

Maintain RAID to keep it healthy - data scrub

I want to be prepaired the best to keep my linux sw-raids healthy. So I know it's very important to maintain the data on a RAID to keep it readable in event of disk failure. If not, an URE could ...
Mose's user avatar
  • 654
0 votes
1 answer
901 views

seagate faulty replacement hard drive

My Seagate hard disk got bad sectors and wasn't usable any more. Seagate's SeaTools utility also indicates that. It was under warranty; so I returned that in Seagate SeaCare center and got a ...
Mandar's user avatar
  • 111
18 votes
1 answer
5k views

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 ...
ttsiodras's user avatar
  • 413
0 votes
1 answer
562 views

Raid 1 Mirror - weird data loss for 1 month

I have been running windows software RAID 1 (mirror) on Windows 2008 R2 for a while and recently I experienced something very odd, hope someone can help explaining and share your view. Yesterday (Mar ...
userb00's user avatar
  • 103
2 votes
1 answer
195 views

Check Drives Before Installation: Is Badblocks Good Enough?

I wanted to know what people do to test drives before installing them in a RAID. I saw badblocks. Would write-mode, prior to installing the filesystem be sufficient in your minds?
songei2f's user avatar
  • 1,934
1 vote
1 answer
1k views

How hazardaous is leaving IBM RAID in bad stripes mode?

One of disks in our RAID 1 configuration gone bad, and caused the whole logical disk to become in bad stripes mode. We replaced the bad disk with a new one and complete the rebuild, but the logical ...
SyRenity's user avatar
  • 3,179
2 votes
1 answer
2k views

IBM ServeRAID bad stripes and synchronize

After one of the drives in our IBM RAID gone, we bought a new one and replaced it. The rebuilding went fine, but now we see "Bad stripes" reported for the logical disk. Moreover, some data can not be ...
SyRenity's user avatar
  • 3,179
4 votes
2 answers
1k views

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 ...
Christopher Galpin's user avatar
4 votes
4 answers
2k views

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, ...
user avatar
0 votes
1 answer
4k views

How do I stop bad block errors in the event viewer when the RAID software reports no errors?

Our Dell PowerEdge 2950 server has 4 SAS disks in a RAID 5 array on a Dell PERC 6/i SCSI card. We are running Windows 2003 SBS R2 - 32 bit. SP2. The device, \Device\Harddisk0, has a bad block. ...
Kez's user avatar
  • 448
5 votes
7 answers
2k views

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 ...
Saurabh Barjatiya's user avatar
9 votes
3 answers
4k views

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 ...
Pyrolistical's user avatar
19 votes
7 answers
15k views

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 ...
Jeremy's user avatar
  • 651