From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Greaves Subject: Re: RAID 5 inaccessible - continued Date: Tue, 14 Feb 2006 17:41:14 +0000 Message-ID: <43F2163A.6030302@dgreaves.com> References: <8b24c8b10602130708p3e2f9a1dh@mail.gmail.com> <8b24c8b10602140035t5ca2e41cv@mail.gmail.com> <17393.42370.394254.464935@cse.unsw.edu.au> <8b24c8b10602140235s7a4ef1fam@mail.gmail.com> <43F1FFE1.2010107@h3c.com> <8b24c8b10602140918s136b5075s@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8b24c8b10602140918s136b5075s@mail.gmail.com> Sender: linux-raid-owner@vger.kernel.org To: Krekna Mektek Cc: Mike Hardy , linux-raid@vger.kernel.org List-Id: linux-raid.ids Krekna Mektek wrote: >I want to rebuilt from the good one and the faulty one. That's why I >wanted to dd the disk to an image file, but it complains it has no >boot sector. > > > >>>>I did the folowing: >>>> >>>>dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img >>>>losetup /dev/loop0 /mnt/hdb1/Faulty-RAIDDisk.img >>>> >>>> You could try doing this again using ddrescue (google if you need to install it): ddrescue dev/hdd1 /mnt/hdb1/Faulty-RAIDDisk.img /mnt/hdb1/Faulty-RAIDDisk.log Then do it again using -r10 (to increase the retries on the faulty sectors) ddrescue -r10 dev/hdd1 /mnt/hdb1/Faulty-RAIDDisk.img /mnt/hdb1/Faulty-RAIDDisk.log This will be much quicker because the log file contains details of the faulty sectors. With luck (mucho luck) you may not even lose data. David --