Re: Brocken Raid & LUKS
From: Phil Turmel <hidden>
Date: 2013-02-21 13:29:27
From: Phil Turmel <hidden>
Date: 2013-02-21 13:29:27
On 02/21/2013 04:42 AM, stone@heisl.org wrote:
i think this is the right way -> dd if=/dev/zero of=/dev/sdc1 bs=4096 count=1 seek=1073006628 (result of badblocks in my case 48 piece's)?
Yes, but for safety when typing a command line, I always put of= last. Just in case I hit the <enter> key accidentally:
dd if=/dev/zero bs=4096 count=1 seek=1073006628 of=/dev/sdc1
quoted
and this for all badblocks?
Yes. You should double-check the filesystem blocksize--it is usually 4096 but ext4 allows you to change it. "fsck -n" will report the total size of the filesystem in its blocks. Divide that into the total size of the device to get the block size. Phil