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
1answer
34 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 there each disk has partition table etc. and acual partitions. I'm looking to test harddrive for bad sectors and errors. But tools I ...
2
votes
1answer
159 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 ...
1
vote
0answers
17 views

Wipe disk with bad sectors

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 ...
-2
votes
1answer
41 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 ...
0
votes
1answer
32 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 ...
0
votes
0answers
27 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 ...
2
votes
1answer
96 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 ...
2
votes
1answer
228 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 : ...
0
votes
1answer
2k 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 ...
0
votes
0answers
53 views

New CF memory card not empty (random pattern instead of zeros)

I recently bought a 16 GB "Sandisk Ultra" Compact Flash card for my camera. I always do some testing on new storage devices before starting normal use: first some scanning, then maybe a copy of the ...
0
votes
1answer
48 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 ...
1
vote
2answers
96 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
vote
1answer
150 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,...
-1
votes
1answer
99 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
votes
2answers
263 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 ...
1
vote
0answers
280 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, ...
0
votes
1answer
135 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 ...
0
votes
0answers
233 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 ...
1
vote
0answers
62 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/...
0
votes
1answer
198 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 ...
3
votes
2answers
1k 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 ...
2
votes
3answers
1k 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....
0
votes
1answer
466 views

Copy only files that are unaffected by bad sectors

How to copy every file that not affected by bad sector? I've tried rsync: rsync --ignore-errors -a --progress --remove-source-files /media/x/S4T32kbad/ /media/x/w8tnew/ ... but it too slow. I've ...
1
vote
1answer
149 views

badblocks cannot find any badblocks

I have an external USB WD disk (with physical and logical block size 512), which reports self test fail in smart with certain LBA. I tried to use badblocks to locate all the failed sectors/blocks, ...
1
vote
1answer
2k views

ls: reading directory '.': Input/output error

xubuntu, NTFS. When I trying to open directory with files: username@username-hp:/media/username/dir1/dir2/music$ la ls: reading directory '.': Input/output error Also if I open the directory with ...
0
votes
1answer
303 views

f3read - what is the difference between corrupted, changed and overwritten sectors?

I'm using f3 to test hundreds of USB flash memory sticks for errors. Here's an example output from a faulty drive. First writing test files with f3write: Free space: 3.74 GB Creating file 1.h2w ... ...
0
votes
0answers
303 views

e2fsck did no solve the IO error

Unit had observed IO error, hence it was rebooted. As part of the boot-up script, it tries to fix the errors with e2fsck -y option. However, even after reboot it could not correct it. And the error is ...
9
votes
1answer
3k views

Is badblocks trustworthy?

I can't find anything about what badblocks actually considers a bad block. I've read the man page and looked at a bunch of questions on here, but I can't find specifics. Also, how good is badblocks? ...
1
vote
1answer
383 views

Use mdadm as workaround for lack of badblocks support in btrfs

Since btrfs doesn't maintain a list of badblocks, I'm looking for a work-around at a lower layer. (I'm mining burstcoin and don't mind losing a few blocks here and there.) It seems that LVM doesn't ...
6
votes
1answer
3k views

Can btrfs track / avoid bad blocks?

I have a HDD which I don't entirely trust, but still want to use (burstcoin mining, where if I get a bad block in a file, I'll only lose a few cents). How can I tell btrfs to mark certain blocks as ...
2
votes
0answers
563 views

RAID 6 with XFS dealing with bad sectors

I have 7 2tb hdd in a raid 6 attached to a Adaptec 71685 dmesg message says I have bad sectors 2321236720 2321236728 2321236760 2321236792 2321236824 2321236856 2321236864 2329211680 2329212192 ...
-1
votes
1answer
594 views

badblocks source code [closed]

I don't know English but analyzing is little possible. I need the source code badblocks. I hope header file for that too.(ex)com_err.h) I wish to recommend programs tools, too.
1
vote
2answers
1k views

Excluding bad sectors from list when formatting

I am preparing a old HDD for use with my Pi. But it has >36 bad sectors (avoce threshold). So I ran badblocks to investigate which sectors are affected and saved them to a file. The file now contains ...
1
vote
1answer
2k views

e2fsck: bad blocks disapearing!

Gentlemen, I need some fatherly advice about e2fsck: I have a disk that has been getting cranky, and "e2fsck -ccv" was indeed showing bad blocks. However, I repartitioned the disk, and now the same ...
3
votes
1answer
3k views

u-boot how to mark bad blocks

While in U-boot in an arm based board (wb45n), I manually erase and then mark a block bad. U-Boot> nand erase 0x00720000 20000 NAND erase: device 0 offset 0x00720000, size 0x20000 Erasing at ...
1
vote
1answer
543 views

Full Image of internal HDD, drive - dd / dd_rescue - with TrueCrypt [bad sectors] [read error]

Background I had a problem under Windows with ndis.sys [sys don't start] Status: 0xc00000e9 Info: Windows failed to load because a critical system driver... To repair I had to fully decrypt drive [...
0
votes
1answer
179 views

SMART test passed but I can see Hard Disk Broken Sectors in Disk Assesment

I have used shred on my HDD, but in the middle of that, I used Ctrl+C combination accidentally. After that I noticed bad sectors on Disk Assessment. I am using Linux mint 18 as my OS. Using fsck, I ...
1
vote
0answers
62 views

How do I stop Linux from scanning for partitions on a hard drive?

Background: I'm trying to recover data from a dying SATA hard drive. When the drive reads a bad sector, it locks up until the system is power cycled. Linux (Debian) correctly reads the partition ...
2
votes
1answer
1k views

Can I safely run badblocks in read-only mode on a mounted drive?

I have /dev/sda mounted on /, as the root partition. Can I safely run badblocks in read-only mode on this device? Will it show false positives/negatives because it's mounted?
2
votes
1answer
2k views

Partition Errors and Remounts Read-Only when Accessing Specific File

I have a pretty basic system running Ubuntu 16.04 (this question is not specific to Ubuntu, but rather ext4 partitions), 1 HDD, running a few partitions: sda1 - EXT4 - 100G - / sda2 - EXT4 - 723.5G ...
3
votes
1answer
1k views

What are the pros and cons of badblock's two non-destructive tests?

I use badblocks to test my 32GB class-10 microSD card that I use to boot my RPi. I already have a functioning file system on it, so I don't want to scan it with the -w option (destructive read-write ...
1
vote
0answers
867 views

Monitor health of HDD/SSD without S.M.A.R.T

Some hard disk drives (HDDs) and solid state drives (SSDs) do not provide S.M.A.R.T. data. This seems to be especially true of cheap USB HDDs. My question is: on a typical GNU/Linux system, can the ...
2
votes
1answer
4k views

Using badblocks with mkfs -l

mkfs.vfat -c does a simple check for badblocks.badblocks runs multiple passes with different patterns and thus detects intermittent errors that mkfs.vfat -c will not catch. mkfs.vfat -l filename can ...
2
votes
1answer
524 views

Meaning of “mkfs.ext3 -cc” error report

I'm trying to format a supposedly defective hard disk using "mkfs.ext3 -cc /dev/sda1" on a partition that spans over the entire disk. I wish to understand the meaning of the ongoing error report in ...
0
votes
1answer
3k views

Filesystem is reporting a write error on a specific sector even after the partition is moved further

I am facing the following problem: btrfs reports write errors for sector 128 on device /dev/sdd: sd 6:0:0:0: [sdd] Invalid command failure sd 6:0:0:0: [sdd] Result: hostbyte=DID_OK driverbyte=...
3
votes
2answers
4k views

What is the “-rescue” function of Clonezilla and when should I use it?

When running Clonezilla on a NTFS-drive with bad sectors the cloning is interrupted and I get a suggestion from Clonezilla to use the -rescue option to save as much as possible from the damaged drive. ...
0
votes
0answers
473 views

Partition unaccessable - I/O error

In my laptop I have one drive that has been split in several partitions: sda1 swap sda2 vfat sda3 ext4 (home + root) sda5 ntfs (just for files) One day I wanted to move folder from sda5 to sda1 (...
2
votes
0answers
215 views

how can I force hdd to give the bad data of a URE sector / bad sector?

Sadly sometimes a sector of data on a hard disk may get corrupted, which in this context should mean that the data which was written to it (the 512 or 4096 bytes) cannot be reliably read back. ...
4
votes
1answer
318 views

Is there any way to prevent a bad drive from disappearing from /dev?

I'm trying to recover a partition on a bad drive with ddrescue. I run: $ sudo ddrescue -r -1 -v /dev/sdd3 OUT.img dd_rescue_logfile and it seems to do great for a while, but after about an hour, the ...
1
vote
1answer
1k views

Is it safe to interrupt badblocks? [duplicate]

I accidentally ran badblocks on my entire 320 GB disk instead of a single partition: sudo badblocks -s -v -n -f /dev/sda It's been running for 42 hours now. How can I tell when it will be finished? ...