From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 14:17:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB59116A4CE for ; Thu, 26 Feb 2004 14:17:57 -0800 (PST) Received: from salo.chubbo.net (unknown [168.75.98.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F9CF43D2F for ; Thu, 26 Feb 2004 14:17:57 -0800 (PST) (envelope-from bkeating@teov.org) Received: (qmail 7938 invoked by uid 79); 26 Feb 2004 22:17:45 -0000 Received: from unknown (HELO teov.org) (bkeating@teov.org@66.92.26.227) by loche.chubbo.net with SMTP; 26 Feb 2004 22:17:45 -0000 Message-Id: <403EE020.1020105@teov.org> Date: Thu, 26 Feb 2004 22:13:52 -0800 From: "Benjamin P. Keating" User-Agent: Mozilla Thunderbird 0.5 (X11/20040223) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Charles Swiger References: <403ED531.5040508@teov.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chubbo.net-Mailscanner-Openprotect-Information: Please contact the ISP for more information X-Chubbo.net-Mailscanner-Openprotect: Found to be clean X-Mailscanner-Mcpcheck: X-Chubbo.net-Mailscanner-Openprotect-Spamscore: s cc: freebsd-questions@freebsd.org Subject: Re: Recovering Data from a reformatted drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 22:17:57 -0000 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.