Date: Sat, 13 Oct 2001 02:20:01 -0600 Subject: Re: [linux-lvm] pv recovery after trashing partition table. Message-ID: <20011013.022001.-448365.3.james.cromie@juno.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=--__JNP_000_3c9a.5eff.0b20 From: Jim Cromie Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: To: adilger@turbolabs.com Cc: linux-lvm@sistina.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ----__JNP_000_3c9a.5eff.0b20 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit again, thanks Andreas, Having read to the end of `man gpart`, I encountered the useful - gpart -vdg /boot/boot.bak which I had lying around (good luck again). The output(s) confirm that my manually fdisk'd partition matches the original. So somehow I managed to corrupt hda4 at about the same time that I blanked the MBR. I dont know how, but Ill accept that theyre causally (not casually) related. I looked a bit at gpart's partition-type-guessing code, it shouldnt be too hard to work out which bytes are failing gpart's guesser. Getting LVM to accept my hacks may be much harder. So how big is an LVM super-block ? I always have the (probably 1-way) fallback - a partion type change, then an fsck to see what it finds. ----__JNP_000_3c9a.5eff.0b20 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable
again, thanks Andreas,
 
Having read to the end of `man gpart`, I encountered the useful -
 
gpart -vdg /boot/boot.bak
 
which I had lying around (good luck again).  The output(s) = confirm=20
that my manually fdisk'd partition matches the original.
 
So somehow I managed to corrupt hda4 at about the same time that<= /DIV>
I blanked the MBR.  I dont know how, but Ill accept that theyre
causally (not casually) related.
 
I looked a bit at gpart's partition-type-guessing code, it=20 shouldnt
be too hard to work out which bytes are failing gpart's=20 guesser.
Getting LVM to accept my hacks may be much harder.
 
So how big is an LVM super-block ?
 
I always have the (probably 1-way) fallback - a partion type change, <= /DIV>
then an fsck to see what it finds.
----__JNP_000_3c9a.5eff.0b20--