disklabel recovery

Gal Ben-Haim gbenhaim at gmail.com
Sat Oct 29 13:44:42 PDT 2005


but how do I rebuild the disklabel ?

On 10/29/05, Arne Wörner <arne_woerner at yahoo.com> wrote:
>
> --- Gal Ben-Haim <gbenhaim at 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
>



--
Gal Ben-Haim, gbenhaim at gmail.com


More information about the freebsd-fs mailing list