Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [badblocks]

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

0
votes
1answer
23 views

How to fix bad magic number - Superblock on Linux

Ask Question 0 Hi Im 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 ...
0
votes
0answers
27 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
22 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
1answer
43 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
49 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
63 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
132 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 ...
0
votes
0answers
101 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
85 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
125 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 ...
0
votes
0answers
33 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
67 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 ...
2
votes
2answers
609 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
2answers
490 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
265 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
77 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, ...
0
votes
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
186 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
225 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 ...
8
votes
1answer
2k 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
278 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 ...
5
votes
1answer
2k 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 ...
1
vote
0answers
446 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
480 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.
0
votes
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
1k 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
396 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
146 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
52 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
822 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?
3
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 ...
2
votes
1answer
680 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
724 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 ...
1
vote
1answer
3k 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
444 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=...
2
votes
1answer
2k 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
355 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
197 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. ...
3
votes
1answer
246 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
794 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? ...
1
vote
2answers
74 views

Is it possible to burn a live image to a damaged pendrive?

I have a 16G pendrive that has some bad blocks: # f3read /media/morfik/224e0447-1b26-4c3e-a691-5bf1db650d21 SECTORS ok/corrupted/changed/overwritten Validating file 1.h2w ... ...
1
vote
1answer
584 views

fixing an Ubuntu install on a flash memory with defective blocks

I've recently bought a cheap mini-PC with an ARM SOC and a 8GB builtin flash memory. I've flashed the Ubuntu Trusty image on the internal NAND but after a while i've started noticing random file ...
2
votes
1answer
588 views

What data transfer / write speeds are to be expected for a badblock destructible write test?

I have purchased a new HDD for my backups. Before entrusting the device with the job of keeping my data safe I want to make sure that it is in good condition. The drive is a new internal 3.5 inch SATA ...
2
votes
1answer
2k views

How can I choose optimal values for block size and blocks number for badblocks?

I'd like to test my hard disks with badblocks, but I don't know which values I should use for the block size (-b option) and blocks number (-c option). I randomly tried a few values and it seems they ...
0
votes
1answer
478 views

How to image certain portions of hard drive only

I have a failed hard drive which I need to extract data from. My dd kung fu is failing me right now. I know that the drive is failing at sector 60515007 to 60517093 (512b per sector), and multiple ...
6
votes
1answer
2k views

Print list of bad blocks in NAND flash from user space

Is there any user space tool that can retrieve and dump the list of bad blocks in a NAND flash device? I've checked the mtdinfo command line utility, and also searched /proc and /sys, but couldn't ...
1
vote
2answers
4k views

badblocks utility keeps reporting “invalid last block”

I'm trying to run badblocks on a drive with a single partition. The drive contains a FreeBSD file system on it. I boot up using a Linux live USB drive. The drive is unmounted. The output of fdisk -...
2
votes
3answers
2k views

How to write a pattern to a device to use it with badblocks with -t test_pattern option

I recently bought a 4TB hard disk and I want to do a read-write badblocks test on this before I start using it. Since running badblocks with -w option would take ages for 4TB, I've thought to first ...