Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 17:30:21 +0400
From:      Snow Mountains <snow.mountains.4@gmail.com>
To:        Thomas Mueller <mueller23@insightbb.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Groupping restored partitions into slices
Message-ID:  <CAAHVa8v3Vr7wp-sBYw7rmGfjhYwjAGOzaxndrbSNVJ2GnZ_y6g@mail.gmail.com>
In-Reply-To: <1B.E6.23131.FBAE9905@smtp02.insight.synacor.com>
References:  <1B.E6.23131.FBAE9905@smtp02.insight.synacor.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Thomas, thank you great info (didn't know for GPT). However, I
successfully restored my slices.

I post this method here for someone with similar problem in the future:

* deleted first 2k of data from ad4 using dd if=/dev/zero of=/dev/ad4 count=2

* created fdisk configuration file with three slices; I determined the
size by simply calculating the sum of slice sizes as reported by
scan_ffs;

* then /dev/ad4s1-3 appeared;

* then used scan_ffs on each new slice and used these results to
create three new bsdlabels;

* used gpart info to activate swap partitions in bsdlabel file;

* write you this mail from restored system.

Thank you for all the info.
SergiM



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAAHVa8v3Vr7wp-sBYw7rmGfjhYwjAGOzaxndrbSNVJ2GnZ_y6g>