Questions tagged [bad-blocks]
A bad block (or sector) is essentially a block that returns an error rather than the data up on reading it.
114
questions
0
votes
1
answer
1k
views
How can I attempt to read bad sectors from the end of the disk, using ddrescue?
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 ...
1
vote
1
answer
1k
views
How to add a sector to the list of badblocks for ext4?
dumpe2fs -b /dev/sdd1
can dump blocks that are known to be bad by ext4.
How do I manually add a block to that list without redoing mkfs ?
1
vote
2
answers
5k
views
Checking a new disk for bad blocks on Linux, does read-only make sense?
When I issue the following command
sudo badblocks -vs -b 4096 -o badsectors2.txt /dev/sdc1
I get as a response
Checking blocks 0 to 1152784944
Checking for bad blocks (read-only test): 72.37% done,...
1
vote
2
answers
682
views
Detecting bad blocks/ sectors on modern (spinning) drives and script to monitor SMART info
I'm currently scanning a number of old drives to detect errors.
If you google detecting bad sectors on a mechanical spinning disk (rather than ssd) you'll usually come across:
windows
chkdsk/r ...
2
votes
1
answer
2k
views
How to interpret S.M.A.R.T and Badblocks results
I have bought a used SSHD ( Seagate Laptop SSHD - ST500LM000-1EJ162 ) on ebay. Regarding to S.M.A.R.T the disk might be damaged somehow, I am not sure. To correctly interpret the S.M.A.R.T values, I ...
0
votes
1
answer
2k
views
I can't change SATA hard disk (working in UDMA) to PIO mode in Linux
I'm trying to disable DMA in my SATA 3.5" hard disk drive to work in PIO mode because for recovering some bad sectors from a failing disk with GNU ddrescue
I am using PartedMagic Linux live CD and I ...
1
vote
1
answer
2k
views
ZFS scrub finds checksum errors, but badblocks and smartctl do not
I have configured a ZFS pool with two drives as a mirror. The operating system is Ubuntu 16.04 and I have been using the zfs 0.6.5 as packaged by the vendor. The drives are 3T WD Green and 3T WD Red (...
-1
votes
2
answers
970
views
Badblocks reports "weird value (4294967295) in do_write" when writing patterns
This is the second time that I'm receiving this error running badblocks, approximately 2 years apart from the last time, and the vast majority of factors from hardware (cables, etc.) to software (the ...
4
votes
1
answer
2k
views
How to start badblocks at a specified portion of the drive
While trying to dd the last few blocks of a 200GB Maxtor IDE hard drive, I run into the following error:
$ dd if=/dev/zero of=/dev/sdc bs=4M status=progress
203901894656 bytes (204 GB, 190 GiB) ...
2
votes
1
answer
570
views
partclone via clonezilla - where are the bad blocks logged?
I've just backed up a partition using clonezilla, which in turn employed partclone. During the backup, several blocks were bad and were skipped (it was in rescue mode). Is there a log of these?
21
votes
1
answer
28k
views
How to test SSDs or NVMe for badblocks'?
With the traditional spinning disks diagnostics is rather easy. If you suspect a drive to be faulty, you can check the SMART values, run a SMART extended test and a badblocks -wsv test. If all three ...
140
votes
16
answers
29k
views
How can I intentionally break/corrupt a sector on an SD card?
I need to test the resilience of some read/write code for some embedded hardware. How might I sacrifice a few SD cards and break several known sectors for a controlled study?
The only thing I can ...
1
vote
2
answers
7k
views
ext4 filesystem still has errors after fsck
Suddenly my ext4 file system fell down into read-only mode.
I've unmounted this disk and tried to repair it, but without any success.
fsck tries to fix something but ends with FILE SYSTEM WAS ...
0
votes
2
answers
1k
views
How to know if bad block is logical or physical?
I cannot read some files from external disk (NTFS system). Windows cannot read from this disk now.
I am just scanning the disk using badblocks (Linux). The program prints a lot of bad blocks.
I ...
0
votes
1
answer
2k
views
Badblocks and fsck say HDD is clean but Linux marks it as read-only
I'm relatively new to Linux so I'm not sure why this is happening.
I have this one drive that Linux always marks it as read-only partition. At first I thought it was just the OS so I did a clean ...