From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mfri7-0007Py-7S for qemu-devel@nongnu.org; Tue, 25 Aug 2009 04:48:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mfri2-0007LS-At for qemu-devel@nongnu.org; Tue, 25 Aug 2009 04:48:58 -0400 Received: from [199.232.76.173] (port=43876 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mfri1-0007L8-7u for qemu-devel@nongnu.org; Tue, 25 Aug 2009 04:48:53 -0400 Received: from an-out-0708.google.com ([209.85.132.249]:20504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mfri0-00007b-Oa for qemu-devel@nongnu.org; Tue, 25 Aug 2009 04:48:52 -0400 Received: by an-out-0708.google.com with SMTP id c38so1031021ana.37 for ; Tue, 25 Aug 2009 01:48:51 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <4A9245EA.9030108@redhat.com> <4A938D63.8020906@redhat.com> <4A9394D7.6070603@redhat.com> Date: Tue, 25 Aug 2009 16:48:51 +0800 Message-ID: Subject: Re: [Qemu-devel] diskimage HOWTO From: Bai Shuwei Content-Type: multipart/alternative; boundary=00504501702f564ee00471f3670a List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mulyadi Santosa Cc: Kevin Wolf , qemu-devel@nongnu.org --00504501702f564ee00471f3670a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Kevin: I am not familiar the kpartx too. this is the result, I think I should rebuild my kernel to support device-mapper :( weslab:/home/baishw/crosscompile/qemu/xtratum# kpartx -l rootfs /proc/misc: No entry for device-mapper found Is device-mapper driver missing from kernel? Failure to communicate with kernel device-mapper driver. /proc/misc: No entry for device-mapper found Is device-mapper driver missing from kernel? Failure to communicate with kernel device-mapper driver. Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel driver loop1p1 : 0 128457 /dev/loop1 63 On 8/25/09, Mulyadi Santosa wrote: > > On Tue, Aug 25, 2009 at 2:37 PM, Kevin Wolf wrote: > > > 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 > > > > Thanks for the kind example, Kevin. Couple nice lessons I got today :) > Not bad to me too as well > > -- > regards, > > Mulyadi Santosa > Freelance Linux trainer > blog: the-hydra.blogspot.com > -- Love other people, as same as love yourself! Don't think all the time, do it by your hands! Personal URL: http://dslab.lzu.edu.cn:8080/members/baishw/ E-Mail: baishuwei@gmail.com or baishuwei@dslab.lzu.edu.cn --00504501702f564ee00471f3670a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, Kevin:
=C2=A0=C2=A0 I am not familiar the kpartx too. this is the result, I t= hink I should rebuild my kernel to support device-mapper :(
=C2=A0
weslab:/home/baishw/crosscompile/qemu/xtratum# kpartx -l rootfs
/p= roc/misc: No entry for device-mapper found
Is device-mapper driver missi= ng from kernel?
Failure to communicate with kernel device-mapper driver.=
/proc/misc: No entry for device-mapper found
Is device-mapper driver mis= sing from kernel?
Failure to communicate with kernel device-mapper drive= r.
Incompatible libdevmapper 1.02.27 (2008-06-25)(compat) and kernel dri= ver
loop1p1 : 0 128457 /dev/loop1 63
=C2=A0


=C2=A0
On 8/25/09, = Mulyadi Santosa <mulyad= i.santosa@gmail.com> wrote:
On Tue, Aug 25, 2009 at 2:37 PM,= Kevin Wolf<kwolf@redhat.com>= wrote:

> 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 e= ither. Didn't know
> about it until now.
>
> Kevin>

Thanks for the kind example, Kevin. Couple nice lessons I got = today :)
Not bad to me too as well

--
regards,

Mulyadi Santosa
F= reelance Linux trainer
blog: t= he-hydra.blogspot.com



-= -
Love other people, as same as love yourself!
Don't think all the tim= e, do it by your hands!

Personal URL: http://dslab.lzu.edu.cn:8080/members/baishw/=
E-Mail: baishuwei@gmail.com or <= a href=3D"mailto:baishuwei@dslab.lzu.edu.cn">baishuwei@dslab.lzu.edu.cn=
--00504501702f564ee00471f3670a--