From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 08:50:18 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 051F334C for ; Fri, 2 Nov 2012 08:50:18 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mx1.bjare.net (mx1.bjare.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7DB258FC0A for ; Fri, 2 Nov 2012 08:50:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 1E4285E1FA; Fri, 2 Nov 2012 09:50:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -1.487 X-Spam-Level: X-Spam-Status: No, score=-1.487 tagged_above=-999 required=5 tests=[AWL=-0.645, BAYES_00=-2.599, RCVD_IN_PBL=0.905, RDNS_DYNAMIC=0.1, SPF_SOFTFAIL=0.596, SUBJECT_FUZZY_TION=0.156] Received: from mx1.bjare.net ([127.0.0.1]) by localhost (mx1.bjare.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jJjV6-ZGpGnF; Fri, 2 Nov 2012 09:50:13 +0100 (CET) X-BN-MX1: ja X-BN-MailInfo: BjareNet Received: from bsdpc01.no-ip.org (c-195-216-043-059.ekt.thalamus.net [195.216.43.59]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.bjare.net (Postfix) with ESMTPS id B90815E135; Fri, 2 Nov 2012 09:50:13 +0100 (CET) Message-ID: <50938944.5040709@eskk.nu> Date: Fri, 02 Nov 2012 09:50:12 +0100 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:13.0) Gecko/20120626 Thunderbird/13.0.1 MIME-Version: 1.0 To: Warren Block Subject: Re: My freebsd partition changed by Windows chkdsk References: <50924049.1020400@eskk.nu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 08:50:18 -0000 2012-11-02 04:39, Warren Block skrev: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" I use sysinstall and fdisk to find the disk, and I get Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 256977 257039 ad12s1 4 unknown 22 257040 163702350 163959389 ad12s2 4 NTFS/HPFS/QNX 7 163959390 812813778 976773167 ad12s3 4 NTFS/HPFS/QNX 7 It's ad12s3 that's my freebsd slice gpart show ad12s3 returns gpart: No such geom: ad12s3 How do I proceed? Thanks /Leslie