You are not logged in.

#1 2009-11-23 23:03:03

poopship21
Member
Registered: 2009-05-13
Posts: 177

mounting a bitwise backup of lvm2 volume

i used dd to create an image of an unmounted lvm2 volume which is approximately 10G in size.  i had various reasons for doing this instead of snapshots (i needed the whole volume) or a file-based backup (i needed to do forensics on corrupted data).  however i am unable to mount this image using standard tools:

$sudo losetup -d /dev/loop0
$sudo losetup /dev/loop0 myimage
$ sudo mount /dev/loop0 mymountpoint
$EXT4-fs (loop0): bad geometry: block count 6553600 exceeds size of device (3184458 blocks)

as you can see, the loop device was newly created on line 2 above and then i was told that this device, which was created using the given image file was too small for the image file (WTF?).  this is an image of an ext4 filesystem being mounted on a directory residing in another ext4 filesystem.
TIA

Offline

Board footer

Powered by FluxBB