[Top][All Lists]

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

Re: [Qemu-devel] How to extract content of a raw image on host?

From: JonY
Subject: Re: [Qemu-devel] How to extract content of a raw image on host?
Date: Sat, 16 Feb 2008 15:44:15 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Dirk Behme wrote:
JonY wrote:
Dirk Behme wrote:


is there a way to extract the contents of a qemu raw image on (x86 Linux) host without starting QEMU itself? If so, any hint would be quite nice.

I'm looking for anything like the reverse what


seems to do. Extract files/directories from an existing raw image.

qemu-img reports me

 > qemu-img info disk.img
image: disk.img
file format: raw
virtual size: 4.3M (4515328 bytes)
disk size: 4.3M

but what is in it and how to access the content?

Thanks, and sorry if this is a FAQ and I missed the correct search string,



have you tried using a loop back mount?

# mount -o loop disk.img mnt/
mount: You have to specify a file system type
# mount -t raw -o loop disk.img mnt/
mount: unknown file system type „raw“

Sorry if I miss the obvious ;)



"raw" is not really a file system, its just a way of saying the image has a "exact copy of every bit" of what a physical disk would have.

Try, "mount -o loop disk.img mnt/", mount might be able to determine the correct file system.

If it is a hard disk image with partition tables, try opening it with fdisk to confirm so. List down the partitions. Note the offsets

Try something like "mount -o loop,offset=32256 disk.img mnt/"

see here for more details:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]