Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Oct 2005 13:40:05 -0700 (PDT)
From:      Arne "Wörner" <arne_woerner@yahoo.com>
To:        Gal Ben-Haim <gbenhaim@gmail.com>, freebsd-fs@freebsd.org
Subject:   Re: disklabel recovery
Message-ID:  <20051029204005.82845.qmail@web30302.mail.mud.yahoo.com>
In-Reply-To: <fac025520510291242k61814c8i9205cad87ca9a4af@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Gal Ben-Haim <gbenhaim@gmail.com> wrote:
> fdisk shows the partition properly (1 partition of the entire
> disk).
>
That is expected, because the partition table should be outside
the partitions...

> I need to rebuild the disklabel from scratch somehow, it was
> only one partition on one slice.
> I have the old layout written..
>
Ok...

Then I would copy the damaged slice to another filesystem.
e. g.:
# dd if=/dev/ad2s1 of=/root/shoot.img

Then I would do a fsck
e. g.:
# fsck /dev/ad2s1a

The fsck should make the file system usable again.
BUT: FSCK IS QUITE RUDE POSSIBLY... Some filenames might be lost,
so that there will be some files in /lost+found (as far as I
understood that procedure).

-Arne



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051029204005.82845.qmail>