Skip to main content

Questions tagged [badblocks]

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

0 votes
0 answers
43 views

How to recover data from unbootable Acer PC drive on Ubuntu?

My ACER PC would not start, so I removed the disk and tried to access it on another PC in Ubuntu 24.04.2, but got this error msg: Error mounting /dev/sdc4 at /media/ubuntu/ACER:wrong fs type,bad ...
Sonja Levorsen's user avatar
1 vote
2 answers
137 views

Does badblock "fix" blocks on an SD card?

I have an old 16GB SD card that started giving I/O errors, known it's gone bad, I dumped all the content to an image file to see what I could restore, and the Disk manager alerted me that 16.1MB were ...
Mauro F.'s user avatar
  • 133
6 votes
1 answer
2k views

Interpreting the output of badblocks: when is it time to replace the MicroSD card?

Context I am running a Raspberry Pi Zero with a Micro SD as it is designed.  However, for this specific application, I cannot use a read-only system as I usually do with a Raspberry Pi. Objective Keep ...
giovi321's user avatar
  • 919
3 votes
1 answer
1k views

I/O errors, but after running badblocks everything works again : how is that possible?

TLDR; HDD seemed damaged. Unable to format partition (mkfs.ext4 I/O errors), even with a newly created GPT table. SMART test shows some errors. I was about to throw the disk away. Before that, out of ...
ChennyStar's user avatar
  • 1,979
1 vote
1 answer
1k views

SSD: `badblocks` / `e2fsck -c` vs reallocated/remapped sectors

The badblocks utility allows one to find bad blocks on a device, and e2fsck -c allows one to add such bad blocks to the bad block inode so that they will not be used for actual data. But for SSD, it ...
vinc17's user avatar
  • 12.5k
0 votes
0 answers
1k views

How to resolve dd error reading?

I have dd error reading # sudo dd if=/dev/sda1 of=backup.img bs=4M status=progress 16478679040 bytes (16 GB, 15 GiB) copied, 154 s, 107 MB/s dd: error reading '/dev/sda1': Input/output error 3928+1 ...
Dims's user avatar
  • 3,465
1 vote
0 answers
246 views

badblocks stuck in a loop?

I'm using a program called badblocks to scan disks for errors, and I'm finding that it sometimes appear to get stuck in a loop. I'm using in read/write mode and by default it tests four patterns. Here'...
jyoung's user avatar
  • 117
0 votes
1 answer
934 views

New HDD: Number of Mechanical Start Failures: 6

I have bought a new HDD. Toshiba P300 2TB; HDWD120UZSVA Data sheet: https://www.toshiba-storage.com/products/toshiba-internal-hard-drives-p300/ To be sure, that this drive is in good health and will ...
Wogehu's user avatar
  • 123
1 vote
0 answers
184 views

ZFS On Linux - recover lacked MBR after physical problem

We had a physical problem in our backup server (we suppose an electrical shock due to the thunderstorm). The system is Linux Debian on a disk and the storage in on a two 4 TB disks RAID-1 ZFS (ZFS On ...
Le Nain Jaune's user avatar
7 votes
3 answers
5k views

Really Remapping Bad Blocks on disk

I have a SATA drive which has a total of 8 bad blocks identified by the badblocks program. Supposedly the drive firmware should be able to remap them and substitute spares. I've run badblocks in -n ...
kmand's user avatar
  • 121
2 votes
0 answers
2k views

How do I determine what files are affected by bad blocks on a disk that uses LUKS and XFS?

Here is my setup: no partition, just LUKS1 and then XFS inside that. To confirm, the disk was set up like so: disk is installed, luksFormat, luksOpen, mkfs.xfs, mount, start using. First of all, what ...
gfdjjrtiejo's user avatar
2 votes
3 answers
2k 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 ...
Damn Vegetables's user avatar
1 vote
0 answers
504 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 ...
Jared Sanchez's user avatar
0 votes
1 answer
450 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 ...
tarabyte's user avatar
  • 4,576
5 votes
1 answer
2k 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 ...
Vlastimil Burián's user avatar

15 30 50 per page
1
2 3 4 5
8