From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dzebb-0007A8-NV for qemu-devel@nongnu.org; Mon, 01 Aug 2005 14:01:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DzebY-00078l-Ib for qemu-devel@nongnu.org; Mon, 01 Aug 2005 14:01:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DzebY-00078a-Fv for qemu-devel@nongnu.org; Mon, 01 Aug 2005 14:01:36 -0400 Received: from [65.74.133.11] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dzel1-0006kS-QN for qemu-devel@nongnu.org; Mon, 01 Aug 2005 14:11:24 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Possible bug? Date: Mon, 1 Aug 2005 18:58:46 +0100 References: <42EE5B76.5000702@cs.vu.nl> In-Reply-To: <42EE5B76.5000702@cs.vu.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508011858.46562.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "J.N. Herder" On Monday 01 August 2005 18:27, J.N. Herder wrote: > Hi all, > > I'm having some troubles with QEMU's hard disk images and may have bumped > into a bug. I'm trying to import data into my emulated MINIX, but somehow > it is truncated. > > I successfully created a qemu-img called hda.img of 512 MB and installed > the latest version from MINIX on it. Trying to import files by using the > file as hdb image and reading from /dev/hdb in the emulated MINIX works > perfectly fine for small files. For an import file above 1.5 MB the > following weirdiness happens: The size of the image will be truncated to a whole number of cylinders. You should add padding so the image is a multiple of the cylinder size (depends on drive geometry, but usually 16*63*512 bytes) Paul