Questions tagged [badblocks]
Corrupted blocks on a filesystem. Blocks are a unit of division on a filesystem.
118 questions
0
votes
0
answers
45
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 ...
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 ...
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 ...
1
vote
0
answers
249
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'...
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 ...
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 ...
1
vote
0
answers
515
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 ...
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 ...
1
vote
1
answer
250
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 ...
2
votes
1
answer
2k
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: ...
2
votes
1
answer
786
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 ...
0
votes
1
answer
235
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 ...
1
vote
1
answer
670
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 ...
0
votes
1
answer
238
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
0
votes
1
answer
158
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 ...
0
votes
1
answer
158
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 ...
2
votes
1
answer
8k
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 ...
15
votes
1
answer
44k
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 ...
1
vote
0
answers
106
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 ...
0
votes
1
answer
357
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
...
2
votes
1
answer
3k
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
...
1
vote
1
answer
17k
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 ...
-1
votes
2
answers
623
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 ...
-1
votes
1
answer
521
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 ...
1
vote
0
answers
973
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, ...