Hi,
I had to restore some files from a backup but I was unable to find any completely working howto here or on the wiki, which is a pitty imo.
This is my working solution for a vm without LVM (howto for LVM http://alexeytorkhov.blogspot.cz/200...sk-images.html ) :
lzop -x backupname.lzo - extracts vma
vma extract filename.vma targetdir - extracts images in raw and conf file
losetup /dev/loop0 image.raw - mount image
kpartx -a /dev/loop0 - creates partitions, here it was necessary to run aptitude install kpartx
mount /dev/mapper/loop0p1 /mnt/image
Now you can move your files and then unmount everything again.
umount /mnt/image
kpartx -d /dev/loop
losetup -d /dev/loop0
I had to restore some files from a backup but I was unable to find any completely working howto here or on the wiki, which is a pitty imo.
This is my working solution for a vm without LVM (howto for LVM http://alexeytorkhov.blogspot.cz/200...sk-images.html ) :
lzop -x backupname.lzo - extracts vma
vma extract filename.vma targetdir - extracts images in raw and conf file
losetup /dev/loop0 image.raw - mount image
kpartx -a /dev/loop0 - creates partitions, here it was necessary to run aptitude install kpartx
mount /dev/mapper/loop0p1 /mnt/image
Now you can move your files and then unmount everything again.
umount /mnt/image
kpartx -d /dev/loop
losetup -d /dev/loop0