linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* (SOLVED] Re: [linux-lvm] extracting EXT3 from VG
@ 2007-03-26 16:15 termeau sebastien
  0 siblings, 0 replies; only message in thread
From: termeau sebastien @ 2007-03-26 16:15 UTC (permalink / raw)
  To: LVM general discussion and development

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

2007/3/24, Bryn M. Reeves <breeves@redhat.com>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> termeau sebastien wrote:
> > Hello,
> >
> > I have an hard drive image in a file.
> > If I try to mount it directly using "mount -o loop my_file.img
> > /mnt/my_dd", fdisk reports
> >   mount: unknown filesystem type 'LVM2_member'
> > This image contains a volume group that itself contains 4 logical vol
> > group.
> > lvscan reports:
> >   LogVol00  2.94GB
> >   LogVol03  64MB
> >   LogVol02  256MB
> >   LogVol01  2.31GB
>
> Put the image file on a loop device, then activate the volume group it
> contains:
>
> losetup /dev/loop0 my_file.img
> vgscan
> vgchange -ay <vg name>
>
> Then you should be able to access it as normal. Just dd the file system
> off the LV device node.
>
> To shut it down:
>
> vgchange -an <vg name>
> losetup -d /dev/loop0
>
> Obviously, change loop0 to something else if 0 is already in use.
>
> Kind regards,
>
> Bryn.
>
>
Thank you for your help it works fine :-)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-26 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-26 16:15 (SOLVED] Re: [linux-lvm] extracting EXT3 from VG termeau sebastien

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).