<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Justin Mitchell wrote:
<blockquote cite="mid:1253872046.18381.22.camel@justin.llw.rokcorp.com"
type="cite"><br>
<blockquote type="cite">
<pre wrap="">If not on to plan B! I can afford to buy a new 1tb hdd tomorrow if I
have too (would rather not, but if it can't be avoided). I was then
thinking it would be possible to recover everything using dd.
My plan is:
Use dd to copy /dev/md0 to the 1tb hdd
Mount the img of /dev/md0
Backup the important data on /dev/mdo to my PC
Recreate the RAID 5 array from scratch (re-format and re-create)
Copy the img of /dev/md0 back to the newly created RAID array
Mount the RAID array and all my data is back where it needs to be?
Would that work?
</pre>
</blockquote>
<pre wrap=""><!---->
no. the filesystem is corrupt, the disks are fine (at last youve yet to show any disk errors)
the dd would just copy the corrupt filesystem to another disk
you still wouldnt be able to mount or fsck it.</pre>
</blockquote>
But if he does a dd copy (or use a utility like
<a class="moz-txt-link-freetext" href="http://www.fsarchiver.org/">http://www.fsarchiver.org/</a> that does compression on free space on the
fly so you don't take an age creating the image if it's largely just
0's) then you have a bit-wise copy you can return to. Then completely
wipe and format the drive (check your SMART info first to be sure that
you're not working with a defective drive) and then "de-archive" the
files back from the archive image.<br>
<br>
You can mess about with how you extract your files, eg
<a class="moz-txt-link-freetext" href="http://www.cgsecurity.org/wiki/TestDisk">http://www.cgsecurity.org/wiki/TestDisk</a>, then without worrying about
corrupting the disk further.<br>
<br>
HTH<br>
<br>
pbhj<br>
</body>
</html>