Talk:Identify damaged files

From ArchWiki
Jump to: navigation, search

Exact numbers

the exact number to use in the seek - how is this arrived at - is it a block number directly from the badblocks output? Is it calculated from those block numbers?

To make the harddrive transparently map out the badblock with a spare good sector you will have to simply write zeros to the bad block using the dd command as root. Remember that with this command you have to work with the same block size as your filesystem and the block as to be relative to the partition the filesystem is on and NOT the harddrive as a whole:
dd if=/dev/zero of=/dev/sdxy bs=4096 count=1 seek=2269012

and this piece: " NOT the harddrive as a whole:"

are there directions somewhere on how to do this adjustment? —This unsigned comment is by Sanjeev K Sharma (talk) 15:29, 30 August 2015‎. Please sign your posts with ~~~~!

Btrfs section may need updating

My btrfs scrub gave the following warning:

BTRFS warning (device sda1): i/o error at logical 3147743232 on dev /dev/sda1, physical 4229873664, root 5, inode 1209, offset 200704, length 4096, links 1 (path: some/poor/file)

As you can see, there is no "sector" field as wiki currently has. Gandalf3 (talk) 20:05, 13 May 2018 (UTC)