Thank you for the heads up, Robin. I've just checked and it seems that they do start from the same sector: /dev/sdg: WDC WD10EADS-65L5B1 /dev/sdh: MAXTOR STM31000340AS root@Adam:/boot# fdisk -l /dev/sd[g-h] Disk /dev/sdg: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdg1 1 121601 976760001 fd Linux raid autodetect Disk /dev/sdh: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdh1 1 121601 976760001 fd Linux raid autodetect There are other disks in the array, but the rest are all WD disks and have a similar structure to the one above. On Wed, Sep 16, 2009 at 1:00 PM, Robin Hill <robin@xxxxxxxxxxxxxxx> wrote: > On Wed Sep 16, 2009 at 11:44:26AM +0200, Matthias Urlichs wrote: > >> On Wed, 2009-09-16 at 12:31 +0300, Majed B. wrote: >> > I have a question which would probably sound stupid: If I have a bad >> > blocks output file from dd_rescue, can I reconstruct a bad sector's >> > data by reading the same sector from all disks (using dd if=/dev/sdx >> > of=./bbfix_#number bs=512 count=1 skip=bb_number-1), then run an >> > normal XOR operation, write zeros to the bad block to force sector >> > remap, then dd the XOR output to the said sector? >> >> Well, of course. Assuming that the disk's sector remap works, which was >> my problem, and that we're talking about RAID5. >> > And also assuming that the array starts from the same sector of each > disk. > > Cheers, > Robin > -- > ___ > ( ' } | Robin Hill <robin@xxxxxxxxxxxxxxx> | > / / ) | Little Jim says .... | > // !! | "He fallen in de water !!" | > -- Majed B. -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html