Recovering Data from a reformatted drive

Benjamin P. Keating bkeating at teov.org
Thu Feb 26 14:17:57 PST 2004


Charles Swiger wrote:

> On Feb 27, 2004, at 12:27 AM, Benjamin P. Keating wrote:
>
>> I have a hard drive that had lots of important data on it. It was 
>> reformatted and I have no backups (lesson learned). It was a ccd 
>> mirror of two 100gig drives. Once the reformat of this ccd completed 
>> the machine was shut down to prevent writing to this disk even more so.
>
>
> By this you mean, you used ccd to reformat the drive as part of a 
> newly created RAID-1 mirror?
>
> If you just newfs'ed the disk, most of the data blocks will still be 
> intact and can be recovered (to some extent).  However, if you did 
> create a RAID filesystem on the disk, you are out of luck.  The 
> process of creating a RAID-1 or -5 volume involves syncronizing all of 
> the disks, which will overwrite every sector on the drive.
>
> I'm sorry that you lost data.
>
Im not sure if this counts as a RAID configuration. Here is what I did;  
I had a working FreeBSD 4.9 system, powered it down and plugged in the 
two additional IDE 100gig harddrives (what make up the ccd0c device). 
Powered up and did this:

cd /dev/
sudo ./MAKEDEV ccd0
sudo ccdconfig ccd0 128 4 /dev/ad0e /dev/ad1e
sudo ccdconfig -g
sudo vi /etc/ccd.conf
(added "ccd0 128 4 /dev/ad0e /dev/ad1e" to the ccd.conf file)
sudo newfs /dev/ccd0c

I let the newfs command finish (it scrolled a page full of block numbers 
it looked like). I realized this last command is NOT what i wanted about 
.5 seconds after hitting enter. :(  Would this be a RAID configuration? 
I don't think it is, it's a simple mirror


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.



More information about the freebsd-questions mailing list