From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36160 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtjIo-00063W-P2 for qemu-devel@nongnu.org; Sun, 27 Feb 2011 11:17:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtjIj-0003zQ-AG for qemu-devel@nongnu.org; Sun, 27 Feb 2011 11:16:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtjIi-0003zL-T0 for qemu-devel@nongnu.org; Sun, 27 Feb 2011 11:16:53 -0500 Message-ID: <4D6A789F.20503@redhat.com> Date: Sun, 27 Feb 2011 18:15:27 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Stupid question? References: <4D697B97.4000706@fransdb.nl> <4D697D0C.7020708@cse.iitd.ac.in> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: Frans de Boer , Dushyant Bansal , qemu-devel@nongnu.org On 02/27/2011 08:22 AM, Amos Kong wrote: > On Sun, Feb 27, 2011 at 6:22 AM, Dushyant Bansal > wrote: > > On Sunday 27 February 2011 03:45 AM, Frans de Boer wrote: > >> > >> Hi all, > >> > >> This is the only QEMU list, so I put my question her. > >> How can I copy the contents of a "*.raw" image to a real HD partition or > >> vice versa. > >> I often use a virtual image using qemu/kvm to test some OS's and want to > >> migrate them to a HD partition if the time is right. Also, I like to > >> preserve old partitions for future use/reference. > >> > >> Any suggestions? > >> > >> Regards, Frans. > >> > > You can mount it using losetup. > > http://blog.piotrj.org/2009/03/mounting-raw-kvmqemu-image.html > > losetup is fine, can we directly use dd ? > dd words for a raw file; qemu-img works for all qemu supported formats. -- error compiling committee.c: too many arguments to function