linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: Jim N Cromie <james.cromie@juno.com>
Cc: linux-lvm@sistina.com
Subject: Re: [linux-lvm] pv recovery after trashing partition table.
Date: Fri, 12 Oct 2001 18:11:38 -0600	[thread overview]
Message-ID: <20011012181138.D27981@turbolinux.com> (raw)
In-Reply-To: <20011012.181856.-303677.1.james.cromie@juno.com>

On Oct 12, 2001  18:18 -0600, Jim N Cromie wrote:
> Miraculously, Ive successfully recovered hda[1-3], by a combination of
> luck,
> a simple partition table (1=vfat, 2=swap, 3=ext2, 4=lvm, on cylinder
> boundaries), good notes (I had the cylinder numbers mostly written down),
> and perseverance with fdisk.  I wrote experimental partition-tables
> untill I was able to mount them.
> 
> SO, WHAT IF ANY ARE MY OPTIONS ?
> 
> 1) Would a carefully considered set of 'dd' commands possibly
> restore it?   I have nothing to lose in hda4 at this point.
> 
> 2) IS IT POSSIBLE THAT DESPITE MY SUCCESS MOUNTING hda 1-3, particularly
> hda3, since thats ext2, (ie a real filesystem, with a real fsck).  Ive
> somehow got the partitions wrong, and thus pvdata is looking in the wrong
> disk sector for its meta-data  ?

Correct.  It is possible that hda3 is larger than it should be, and is
stealing the beginning of hda4.  What you really want to have is "gpart"
which _should_ find the partition tables for you automatically.

Failing that, you could look at "dumpe2fs -h /dev/hda3" to find the
previous size of the filesystem there so you know how big to make it.

Cheers, Andreas
--
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

  reply	other threads:[~2001-10-13  0:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-13  0:18 [linux-lvm] pv recovery after trashing partition table Jim N Cromie
2001-10-13  0:11 ` Andreas Dilger [this message]
2001-10-13 18:40 ` [linux-lvm] pv recovery after trashing partition table. OK - back to normal Jim Cromie
  -- strict thread matches above, loose matches on Subject: below --
2001-10-13  2:45 [linux-lvm] pv recovery after trashing partition table Jim N Cromie
2001-10-13  5:43 ` Andreas Dilger
2001-10-13  2:50 Jim N Cromie
2001-10-13  8:20 Jim Cromie
2001-10-13  8:40 ` Andreas Dilger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011012181138.D27981@turbolinux.com \
    --to=adilger@turbolabs.com \
    --cc=james.cromie@juno.com \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).