qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] diskimage HOWTO


From: Kevin Wolf
Subject: Re: [Qemu-devel] diskimage HOWTO
Date: Tue, 25 Aug 2009 09:37:59 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Mulyadi Santosa schrieb:
> On Tue, Aug 25, 2009 at 2:06 PM, Kevin Wolf<address@hidden> wrote:
>> You shouldn't have removed half of my answer. Using kpartx is so much
>> easier than fiddling around with offsets.
> 
> Sorry for that Kevin. I was focusing on losetup, because that's the
> one I am familiar of. Could you kindly demonstrate how to use kpartx
> in this case? Thanks in advance...

You would use "kpartx -a test.img" which creates devices like
/dev/mapper/loop0p1 for each partition. You can work with it like you
would do with losetup and afterwards remove it with "kpartx -d test.img".

But actually Laurent's solution doesn't look too bad either. Didn't know
about it until now.

Kevin




reply via email to

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