Hi,
i found something more:
[QUOTE]
[INDENT=1]yoda wrote:I’ve found a fairly easy way to extract individual files from a partimage image file. These are the steps (Linux):[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]1. create a target image file using dd, e.g.[/INDENT]
[INDENT=1]Code: [URL=‘http://www.partimage.org/forums/viewtopic.php?t=950#’]Select all[/URL][/INDENT]
[INDENT=1]dd if=/dev/zero of=image bs=1024 count=3774771[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]where 3774771 is the number of 1K blocks. You can use “fdisk -l” on the original system to obtain the exact amount. However, I suppose you can obtain the rounded amount from partimage imginfo command and use an overestimated value;[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]2. associate this image with a loopback device, e.g.[/INDENT]
[INDENT=1]Code: [URL=‘http://www.partimage.org/forums/viewtopic.php?t=950#’]Select all[/URL][/INDENT]
[INDENT=1]losetup /dev/loop0 image[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]where loop0 has to be replaced with a higher numbered device (loop1, loop2, etc.) if loop0 is already in use (you can also use the -f option to use the next one available);[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]3. create a mount point, e.g.[/INDENT]
[INDENT=1]Code: [URL=‘http://www.partimage.org/forums/viewtopic.php?t=950#’]Select all[/URL][/INDENT]
[INDENT=1]mkdir mnt[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]4. mount the image from the loopback device, e.g.[/INDENT]
[INDENT=1]Code: [URL=‘http://www.partimage.org/forums/viewtopic.php?t=950#’]Select all[/URL][/INDENT]
[INDENT=1]mount -o ro /dev/loop0 mnt[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]5. and that is! You can now browse the files in the mnt directory.[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]Note that steps 2-4 have to be done as superuser (root).[/INDENT]
[INDENT=1] [/INDENT]
[INDENT=1]Regards,[/INDENT]
[INDENT=1]Rodrigo Ventura[/INDENT]
Hello Yoda
I think there is one step missing, because:
create an empty file
connect it to a loop device
create mountpoint
mount loop device/file to the mountpoint
-> 5) you see an empty filesystem 😉
So between 2) and 4) one has to restore the partimage image to this filesystem… right?[/QUOTE]
Can someone tell if these steps are correct and working?
Greetz X23