Re: extracting EXT3 from VG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGBRa/6YSQoMYUY94RAlyzAKCzFAYh3TXtpL0JuQ5RxANO1LahewCeKbz4
/E2z2S6BVx7QyUKJkuV4uek=
=kMMP
-----END PGP SIGNATURE-----

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux