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