From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 03:40:12 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33EB0FF4 for ; Fri, 2 Nov 2012 03:40:12 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id E219F8FC0A for ; Fri, 2 Nov 2012 03:40:11 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id qA23e0IB032127; Thu, 1 Nov 2012 21:40:00 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id qA23e0WU032122; Thu, 1 Nov 2012 21:40:00 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 1 Nov 2012 21:39:59 -0600 (MDT) From: Warren Block To: Leslie Jensen Subject: Re: My freebsd partition changed by Windows chkdsk In-Reply-To: <50924049.1020400@eskk.nu> Message-ID: References: <50924049.1020400@eskk.nu> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 01 Nov 2012 21:40:00 -0600 (MDT) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 03:40:12 -0000 On Thu, 1 Nov 2012, Leslie Jensen wrote: > > > I've replaced my dual boot hard drive with an SSD. > > My hard drive had one 100 GB windows partition and one 300 Gb Freebsd slice > with five partitions (/, /usr, /var, /tmp and /home). > > In order to move my Win7 partition a Norton Ghost program was supplied with > the new disk. > > When trying to clone that partition the process couldn't finish because it > needed a chkdsk command to be executed before cloning. > > I ran a chkdsk c: with the choice of correcting errors. > > Somewhere in that process the chkdsk program touched my freebsd partition in > a way so that it now is recognized as NTFS. > > That I trusted the chkdsk program to do what I told it to do was in > retrospect a bit naive ;-) I do have a backup although it's not as recent as > I would have liked. > > Can you think of any way to perhaps recover the data from the freebsd > partition? If all it did was change the partition type, that should be easy to change back with gpart modify. Untested example below, make a backup of the disk as it is right now first. Clonezilla will make a (large) binary backup. # gpart modify -i2 -t !165 ada0