Reconstruct disklabel for UFS and GELI volumes

Nikola Lečić nikola.lecic at anthesphoria.net
Thu Feb 7 21:46:25 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

On Thu, 7 Feb 2008 22:30:52 +0100
Ulrich Spoerlein <uspoerlein at gmail.com> wrote:
 
> On Thu, 07.02.2008 at 20:49:10 +0100, Nikola Lečić wrote:
> > > Thanks for all the suggestions so far. Since I can't install any
> > > packages (I'm using the 6.2 fixit cd), how can I calculate the
> > > file system size from the ffsinfo output?
> > 
> > I hate to be boring (since I already suggested the use of
> > sysutils/testdisk), but it would be really helpful to give it a try.
> > Please read this success story (5 mails):
> 
> I would, if installing packages was more easily possible with the
> fixit mode. Looks like I need to take up my own live CD project again.

I was speaking about FreeSBIE. You could run testdisk from memory disk
(as explained there); you would just download 6.2 package, extract it
in virtual ~ and run the binary to scan your disk. It works just fine.

> >   http://lists.freebsd.org/pipermail/freebsd-questions/2007-December/164901.html
> > 
> > Among others things, it contains some notes on how to use packages
> > that are not included in rescue CD and how to recalculate your
> > bsdlabel offsets and other parametres. And yes, with or without
> > GELI your swap will appear just as a hole between "normal"
> > partitions so its dimensions are probably the last thing you will
> > reconstruct.
> 
> Why is there no metadata for the GELI swap? Is it because the 'label'
> command is not used (would make sense to me).

Well, yes; we're speaking here about tools that recognise UFS specific
data. Also, the swap size reported by swapinfo (pstat(8)) is equal to
the actual physical space occupied by swap partition (not sure if
something changes in the case of GELI encrypted swap, but I guess it
doesn't).

> Anyway, I reconstructed my disklabel and everything is back to
> normal. A nice exercise it was, though I'd rather have done it on non
> critical data :)

Nice. :-) Best wishes.
- -- 
Nikola Lečić = Никола Лечић
fingerprint : FEF3 66AF C90E EDC3 D878  7CDC 956D F4AB A377 1C9B

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iQCVAwUBR6t8hPzDP9K2CKGYAQN3YAP+Ppni3vyoTAL0e5yqW+KkVCmKzvZI+O92
2AhMsbWKP7i7Dxgcniq9ZcZyoj0RjAcCY/OEPLgUD4CPXpYhHUBziBA3XH3zKKKR
pepNlqPCe6SqajSKby3Y2kBdNHszoPhOrZ7TZQu8TfKNQ8A/RIfW87C5/SZXwTmb
KRg30nLqjx4=
=phfS
-----END PGP SIGNATURE-----


More information about the freebsd-stable mailing list