Date: Sat, 29 Oct 2005 22:44:41 +0200 From: Gal Ben-Haim <gbenhaim@gmail.com> To: freebsd-fs@freebsd.org Subject: Re: disklabel recovery Message-ID: <fac025520510291344h1b5c4039m618535a1176229db@mail.gmail.com> In-Reply-To: <20051029204005.82845.qmail@web30302.mail.mud.yahoo.com> References: <fac025520510291242k61814c8i9205cad87ca9a4af@mail.gmail.com> <20051029204005.82845.qmail@web30302.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
but how do I rebuild the disklabel ? On 10/29/05, Arne W=F6rner <arne_woerner@yahoo.com> wrote: > > --- 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=3D/dev/ad2s1 of=3D/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@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fac025520510291344h1b5c4039m618535a1176229db>