2022 Developer Survey is open! Take survey.

Questions tagged [badblocks]

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

Filter by
Sorted by
Tagged with
0 votes
3 answers
44 views

Manually telling EXT4 about bad sectors?

The drive is currently in NTFS. After running chkdsk for hours, I have found the locations of bad sectors (below). I want to reformat the disk in EXT4. I have heard that EXT4 has some sort of metadata ...
user avatar
0 votes
0 answers
19 views

how to locate the root cause of a corrupted ext3 filesystem

I have a 4G Compact Flash card with a 2.5G ext3 partition. The file system has become corrupted. I am not necessarily interested in fixing the file system as identifying exactly what is corrupted in ...
user avatar
1 vote
1 answer
39 views

Does `badblocks` scan for software or hardware failures?

From the manpage: badblocks - search a device for bad blocks but as I try to isolate between software and hardware, I might need a bit more context. Does badblocks scan for software (filesystem) or ...
user avatar
  • 3,646
0 votes
0 answers
29 views

Badblocks -b 4096 finds errors, but badblocks -b 512 and smartctl don't

I got a new external HDD (WD Elements Portable 1TB) and wanted to test it with badblocks. I always used badblocks -wsv -b XXX /dev/sdc First thing I did was trying to find out the blocksize, so I ...
user avatar
  • 1
0 votes
0 answers
22 views

What is a reliable and accurate way of reporting flash memory bad blocks?

USB flash drives even though commonly referred to as "flash" are not handled by the MTD subsystem. The Flash Translation Layer (FTL) takes care of wear-leveling and bad blocks for example. ...
user avatar
  • 111
0 votes
0 answers
22 views

File I/O redirection help in Bash for running badblocks into gzip and monitor with zcat [duplicate]

I am running this on a 10 TB bad drive, so the log grows out of proportions in an hour or so. This was my idea, not working until I kill the badblocks: badblocks -v -b 4096 -c 98304 -w -s /dev/disk/by-...
user avatar
4 votes
1 answer
281 views

Speeding up `badblocks` by tweaking its `-c` switch

I have just tried upon tweaking the badblocks utility to use more RAM and possibly achieve a bit higher performance. The exact command I am running is (without HDD's S/N): badblocks -v -b 4096 -c ...
user avatar
0 votes
1 answer
237 views

What does command do: `badblocks -svn /dev/sda`? does it just report the bad blocks?

This command: badblocks -svn /dev/sda What does it do? Does it just report the bad blocks? Or does it somehow handle the bad blocks so that I don't need to be worried about them? I read the manual by ...
user avatar
  • 1,315
0 votes
1 answer
37 views

Query detected badblocks from NTFS

When creating an ntfs partition with mkfs.ntfs, it does zeroing and badblocks scanning by default. But unlike e2fsck -fccky it does not output how many badblocks it actually found. I would like to get ...
user avatar
  • 395
2 votes
1 answer
67 views

hard drive read throughput terrible after running badblocks, recoverable?

I have a collection of new drives, a friend recommended I run badblocks on the new drives before using them. I ran badblocks on some of the new drives before imaging them badblocks -v -s -w -b 4096 -...
user avatar
  • 3,844
0 votes
0 answers
45 views

fsck returned no errors but badblocks found bad blocks

Using fsck I have tried sudo fsck /dev/sdc1, sudo fsck -n /dev/sdc1, and sudo fsck -f /dev/sdc1. They all returned archive_0: clean, 11/61054976 files, 4114691/244189952 blocks except when I used the -...
user avatar
0 votes
0 answers
23 views

Hardware damage through e2fsprogs (badblocks and e4defrag)?

I used the aforementioned tools considerable often, compared to never, in the recent time. They were invoked on my HDD for virtualization and yet i had to buy a third one. The current died after ...
user avatar
  • 739
0 votes
1 answer
246 views

What is my hard drive physical sector size? fdisk, smartctl etc.. give different answers

The harddrive is connected with an external enclosure via USB3.0. $ sudo smartctl -a /dev/sdb === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 3.5 Device Model: ...
user avatar
  • 267
0 votes
2 answers
122 views

Deleted files reappear after shutdown

I currently have a problem with the disk on which is mounted my partition. From a recovery partition the df command tells me that the memory of the main partition is 100% occupied and indeed there are ...
user avatar
0 votes
0 answers
107 views

Uncorrectable_Error_Cnt and UDMA_CRC_Err0r_Count on an SSD

I have an Intel 530 SSD and when I check it with smartctl I see that I have 71 Uncorrectable_Error_Cnt and 10 UDMA_CRC_Error_Cnt. I understand that the UDMA errors are not serious so I am more ...
user avatar
1 vote
1 answer
132 views

badblocks and mkfs.ext4

I've ran badblocks on a disk /dev/sdc and now I want to use the saved file with badblocks as an argument to mkfs.ext4 -l on a partition. Block size used in both commands are the same. But I'm ...
user avatar
2 votes
1 answer
121 views

How to attest that my USB hard disk is really defective or not?

A few years ago, I bought a 500GB Essentiel B external USB hard drive from Boulanger (a multimedia store in France). Since then I have had 2 failures of the order of 1x / 2 years which seem to lose ...
user avatar
0 votes
1 answer
59 views

Avoid damaged block in ext4

I am running $ uname -a Linux myhostname 4.14.15-041415-generic #201801231530 SMP Tue Jan 23 20:33:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ...
user avatar
  • 4,493
0 votes
2 answers
560 views

Ignore bad sector on ext4 file system without formatting?

UDisk shows the assessment on my disk Disk is OK, 19 bad sectors (24° C / 75° F) This number has remained unchanged for one years long, so I guess my disk is not going to fail, but bad sectors cause ...
user avatar
1 vote
1 answer
309 views

Can I recover a 500GB Seagate Momentus with bad sectors?

I've received a Seagate 2.5" 5400rpm 500gb HDD that was throwing up a Boot configuration error post some windows updates. I've tried the following on it and nothing seems to work: First step: I ...
user avatar
1 vote
0 answers
1k views

How ZFS deals with bad sectors?

I have a disk with a couple of bad sectors. I've used badblocks to check which sectors were faulty. dd could not write zeroes to them and smartctl -t long /dev/sdx has failed. I know that you can ...
user avatar
  • 363
0 votes
1 answer
100 views

How can we check bad blocks in a certain directory

What utility, and how its uses, to check if there's bad blocks in a specific directory
user avatar
0 votes
1 answer
32 views

isolate and rule out some defect blocks

How to isolate and rule out some defect blocks or sector of HDD to keep it functional as well as if it has no defect ?
user avatar
0 votes
1 answer
46 views

is my thumbdrive dead?

I got a 16GB Sandisk thumbdrive which was "locked" recently while transfering data, and now I can't do anything to the drive, only able to read the remain data. below here are some attempt ...
user avatar
0 votes
1 answer
158 views

If dd zero does not "format" my disk what should i do?

I got a softbricked/hardbricked 1TB WD Passport HDD which happened when transfering a suspected 11GB PS3 game file from my mac.As for repairing, My mac cannot do anything with the HDD, so I'm trying ...
user avatar
0 votes
1 answer
94 views

Recover large file which contains a few bad blocks

I have an SSD with LVM with one LV dedicated to a Win7 VM .vdi file of 80Gb. The underlying fs is ext4. After installing a new SSD and setting up the new LV's in migrating, the copy from the old SSD ...
user avatar
  • 4,325
2 votes
1 answer
795 views

Repairing Bad Blocks on Linux RAID5 Array - Used Drives

TL;DR: Are the second-hand drive that I've purchased, safe to use for a copy of my backup NAS? I bought four Western Digital 3TB Red HDDs second-hand and have put them into a spare microserver that I ...
user avatar
  • 21
0 votes
1 answer
3k views

How to interpret these smartctl results? Possible solutions?

Do I need to dump my SATA hard disk, based on the following smartctl results? I was frequently getting filesystem errors during boot time and even fsck failed to repair it last time. Then I used a ...
user avatar
0 votes
0 answers
115 views

can't start gnome due to bad blocks

I just updated my Arch distribution. But now when I try to log in nothing happens and the below output gets written to the logs. I assume that GNOME can't be started becuase some files it needs live ...
user avatar
5 votes
1 answer
13k views

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 ...
user avatar
  • 165
2 votes
1 answer
2k views

Using dd to detect bad sectors

Before I sell an old HDD I completely read and write the disk to verify that it has no bad sectors. I always did writing like this: dd if=/dev/zero of=/dev/sdb bs=100M status=progress But my ...
user avatar
  • 321
1 vote
0 answers
98 views

Wipe disk with bad sectors [duplicate]

I'm trying to wipe a bad disk using dd with the following command sudo dd if=/dev/zero of=/dev/sda status=progress, but it exits prematurely and outputs the following: 13160186368 bytes (13 GB, 12 ...
user avatar
  • 603
-2 votes
1 answer
119 views

I wanted to fix my hard drive bad sectors but it keep saying I/O error inreturn

So, I was messing up the Windows paging value and accidentally set it to 30Gb and made my PC blue screen. Then I can no longer boot into Windows or GNU/Linux (I have dual boot setup). Luckily I still ...
user avatar
  • 3
0 votes
1 answer
82 views

RAID1 recovery process skipping bad blocks

I have a RAID1 array with one sligtly damaged disk /dev/sdb. I put a fresh hard disk /dev/sda into this array in order to mirror sdb (then I’m gonna replace sdb with a fresh HDD). # cat /proc/mdstat ...
user avatar
1 vote
0 answers
144 views

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 ...
user avatar
  • 10.8k
2 votes
1 answer
1k views

dd if=/dev/zero leaves drive contents in-tact? Bad USB stick?

I thought I could nuke all partitions of a drive by using dd if=/dev/zero of=/dev/sdX. In the past this has always worked for me, but in this case it is not working as expected. #check the partitions ...
user avatar
2 votes
1 answer
2k views

mdadm RAID5 with bad sectors and bad blocks

I have a 4 disk RAID5 setup with mdadm in Ubuntu 16.04. sdb : good sdc : 8 bad sectors according to SMART, 8 pending, 4 reported errors sdd : bad blocks present according to mdadm --examine sde : ...
user avatar
  • 41
1 vote
1 answer
11k views

How to fix bad magic number - Superblock on Linux

I'm running a dual boot system with Windows 7 and Puppy Linux Ubuntu based "Bionic" installed on a separate partition of my main drive. Completely separate from that I have a 1TB Western Digital ...
user avatar
0 votes
1 answer
107 views

badblocks fails to spot corrupting disk controller

I have file corruption problem on a HDD (the SDD in the same computer works fine): for i in {1..10}; do dd if=/dev/zero of=zeroes_$i.dat bs=512 count=4M done md5sum zeroes_* yields the correct ...
user avatar
  • 109
1 vote
2 answers
356 views

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 ...
user avatar
  • 24.6k
1 vote
1 answer
379 views

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,...
user avatar
  • 24.6k
-1 votes
1 answer
238 views

how to identify bad block or disk problem

we want to identify bad block or disk problem by the following umount /grid/sdd badblocks -n -vv /dev/sdd Checking for bad blocks in non-destructive read-write mode From block 0 to 20971519 Checking ...
user avatar
  • 10.9k
0 votes
2 answers
679 views

Does gparted make good use of badblocks lists?

Suppose there's a hard drive /dev/sda, and both that: /dev/sda1 is a single ext4 partition taking up the whole disk, and it's mostly empty of data. dumpe2fs -b /dev/sda1 outputs the badblocks ...
user avatar
  • 6,776
1 vote
0 answers
539 views

Coping with bad sectors on RAID disk

I have a RAID 1 of 2 hard drives managed with mdadm. Today, one of them failed. I figured out that this is because of bad sectors in /dev/sdb. According to badblocks, these sectors are affected: 1028, ...
user avatar
  • 2,955
0 votes
1 answer
472 views

badblocks: Resource busy while trying to determine device size

I am trying to run bad blocks on macOS High Sierra 10.13.6. I installed bad blocks using macports. I keep encountering errors when attempting to run it and I am not sure how to even get bad blocks ...
user avatar
  • 79
0 votes
0 answers
556 views

External HDD failure due to bad blocks

My external HDD failed, I searched on the internet and found that it may have been caused by bad blocks. I therefore ran sudo badblocks -vs -b 4096 -c 64 /dev/sdb1 > ~/Downloads/badsectors.txt in ...
user avatar
1 vote
0 answers
97 views

Generate gddrescue log file from badblocks list?

I have a list of badblocks. How do I generate a gddrescue mapfile/logfile from it? Assuming that the sector size is known. This is the reverse way of Generating dead LBA list from gddrescue mapfile/...
user avatar
  • 1,600
0 votes
1 answer
472 views

Differentiate bad logical and physical blocks? (list seperately)

The tool badblocks can give a list of unreadable LBA's, including logical errors I guess. How can I differentiate between logical (soft) bad blocks and physical (hard) bad blocks? List logical and ...
user avatar
  • 1,600
3 votes
2 answers
2k views

ext4-fs: bad geometry: block count exceeds size of device

I have 2TB disk that I use in notebook. This disk was formatted as ext4 and It works fine in notebook, but when I attach it to desktop (via sata-usb adapter), I am unable to mount it due to following ...
user avatar
  • 33
2 votes
3 answers
3k views

List bad blocks and affected files

I made a full disk image from a 4 to 5 year old laptop HDD. That HDD was in a laptop that was carried often to places, so, over the years, it has probably experienced physical stresses to some degree....
user avatar
  • 1,600