Questions tagged [badblocks]
Corrupted blocks on a filesystem. Blocks are a unit of division on a filesystem.
118 questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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'...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...