linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Allan Wolfe" <allan.wolfe@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] disk recovery - mounting external USB lvm2 volume
Date: Mon, 16 Jul 2007 21:28:01 -0500	[thread overview]
Message-ID: <ca3f4a240707161928y94deabr15839a6b6eb554ef@mail.gmail.com> (raw)
In-Reply-To: <20070716014007.GA31102@bdmcc-us.com>

[-- Attachment #1: Type: text/plain, Size: 2854 bytes --]

Thanks Brian.  This is starting to make sense.  The Fedora 7 and the old FC6
both are named the defaults.  Here is the result from the vgchange:

$ sudo vgchange -a y
  2 logical volume(s) in volume group "VolGroup00" now active
  2 logical volume(s) in volume group "VolGroup00" now active

Digging around in the man pages, it looks to me as though I will need to
rename the active/current volume using vgrename command, change the
/etc/fstab to the new name and then follow on with mounting the old volume
using the old default volume.

Am I on the right track?  Thanks for your help.

On 7/15/07, Brian McCullough <bdmc@bdmcc-us.com> wrote:
>
> On Sun, Jul 15, 2007 at 08:30:40PM -0500, Allan Wolfe wrote:
> >
> > $ sudo mount -t ext3 /dev/sdb2 /media/other
> > mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
> >       missing codepage or other error
> >       In some cases useful info is found in syslog - try
> >       dmesg | tail  or so
> >
> > Disk /dev/sdb: 40.0 GB, 40007761920 bytes
> > 255 heads, 63 sectors/track, 4864 cylinders, total 78140160 sectors
> > Units = sectors of 1 * 512 = 512 bytes
> >
> >   Device Boot      Start         End      Blocks   Id  System
> > /dev/sdb1   *          63      208844      104391   83  Linux
> > /dev/sdb2          208845    78140159    38965657+  8e  Linux LVM
> >
> >
> > I could use some help in understanding how to get the drive mounted
> since
> > it was originally an lvm2 volume with ext3 filesystem laid on top of it.
>
>
> Allan,
>
> You said it right there.  Also, the fdisk output shows you something
> too.
>
> As you can see, the disk partition type is "LVM" and, in fact, when
> mount looks at that partition to try and determine what file system type
> to mount, all it sees is LVM, which mount doesn't understand.
>
> Just before I give you the answer, what were the names of your VG and LV
> in the old system?  If they conflict with the present system, does it
> run LVM disks as well, you will have problems mounting even with what I
> tell you.
>
> In any case, if you issue "vgchange -a y" at your command line, the LVM2
> system in your current machine will rescan all attached disk-like
> devices and find your USB disk's LVM partition.  If the name doesn't
> conflict with something in your system already, you can then go ahead
> and mount the Logical Volumes that are found, just as you tried with the
> Physical Volume, /dev/sdb2.
>
> That is a rather short version of the explanation, so if it is "clear as
> mud," feel free to ask again, and several people here will be able to
> help you with your FC6 system.
>
>
> Hope that helps,
> Brian
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

[-- Attachment #2: Type: text/html, Size: 4033 bytes --]

  reply	other threads:[~2007-07-17  2:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16  1:30 [linux-lvm] disk recovery - mounting external USB lvm2 volume Allan Wolfe
2007-07-16  1:40 ` Brian McCullough
2007-07-17  2:28   ` Allan Wolfe [this message]
2007-07-17  3:12     ` Brian McCullough
2007-07-18  1:41       ` Allan Wolfe
2007-07-18 10:30         ` Bryn M. Reeves
2007-07-31 14:29           ` Allan Wolfe

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=ca3f4a240707161928y94deabr15839a6b6eb554ef@mail.gmail.com \
    --to=allan.wolfe@gmail.com \
    --cc=linux-lvm@redhat.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).