Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2002 13:50:20 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Recovering data after fdisk -BI.
Message-ID:  <Pine.NEB.3.96L.1021228134733.53301E-100000@fledge.watson.org>
In-Reply-To: <20021227220537.GA32737@prioris.mini.pw.edu.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 27 Dec 2002, Pawel Jakub Dawidek wrote:

> Hello...
> 
> There is a chance to recover data after:
> 
> 	# fdisk -BI /dev/ad0
> 
> then I've run fdisk from /stand/sysinstall and I've set partitions again
> (I think I remember correct sizes of partitions).
> 
> So now I got /dev/ad0s1 and /dev/ad0s2, I haven't run disklabel yet.
> Erlier there was /dev/ad0s2a and /dev/ad0s2b (swap) and I think I remember
> their sizes as well.
> 
> Please tell me, that there is some way to recover /dev/ad0s2a.

Try:

  http://www.watson.org/~robert/scan_ffs_freebsd4.tgz

This is an adaptation of the OpenBSD scan_ffs(8) tool, which searches for
superblocks and reconstructs a disk label from the results.  It's not
perfect, but actually works surprisingly well.  It recognizes only UFS1
file systems, but could do UFS2 with fairly trivial changes. 

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Network Associates Laboratories



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-fs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1021228134733.53301E-100000>