From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CU5cd-0003Gb-Ab for qemu-devel@nongnu.org; Tue, 16 Nov 2004 10:51:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CU5cc-0003G0-2g for qemu-devel@nongnu.org; Tue, 16 Nov 2004 10:51:58 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CU5cb-0003Fn-PE for qemu-devel@nongnu.org; Tue, 16 Nov 2004 10:51:57 -0500 Received: from [134.58.240.46] (helo=spoetnik.kulnet.kuleuven.ac.be) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CU5TZ-0006rR-P6 for qemu-devel@nongnu.org; Tue, 16 Nov 2004 10:42:38 -0500 Received: from localhost (localhost [127.0.0.1]) by spoetnik.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 3A7E733E6F for ; Tue, 16 Nov 2004 16:42:36 +0100 (CET) Received: from octavianus.kulnet.kuleuven.ac.be (octavianus.kulnet.kuleuven.ac.be [134.58.240.71]) by spoetnik.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 9CAB733F19 for ; Tue, 16 Nov 2004 16:42:35 +0100 (CET) Received: from [127.0.0.1] (srv04.mech.kuleuven.ac.be [134.58.24.40]) by octavianus.kulnet.kuleuven.ac.be (Postfix) with ESMTP id 5F85DAF09C for ; Tue, 16 Nov 2004 16:42:35 +0100 (CET) Message-ID: <419A2000.1030706@mech.kuleuven.ac.be> Date: Tue, 16 Nov 2004 16:42:56 +0100 From: Panagiotis Issaris MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu-img documentation References: <41993485.6060704@bellard.org> <41e41e7a041115150417b7468d@mail.gmail.com> <41995BF4.7020102@bellard.org> <4199B04F.8020307@railnet.it> <419A1A03.9010707@brittainweb.org> In-Reply-To: <419A1A03.9010707@brittainweb.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Hi, Jason Brittain wrote: > ML wrote: > >> --- >> Fabrice Bellard said the following on 11/16/2004 02:46 AM: >> >>> Try my last fix. The important fix is in >>> hw/ide.c:ide_guess_geometry(). I think the problem is that after >>> reboot when installing ide_guess_geometry() returns an invalid >>> geometry because the BIOS translated geometry is stored in the MBR >>> instead of the real hard disk geometry. >>> >>> For the desperate user, I added an option to manually specify the >>> BIOS translation mode. >> >> >> With this fix now I can boot XP images newly created with 0.6.1 but I >> can't boot any longer my older images created with versions < 0.6.1 >> unless I specify hda geometry on the command line. > > > This is going to cause lots of people to not be able to figure out > how to use qemu anymore after an upgrade. For example, even if I > knew that I needed to use the -hdachs option (pronounced "headaches"), > how would I know what geometry numbers to give it? I'm not real > good with this sort of thing, and I haven't found any docs yet that > try to explain it from the perspective of a VM user. I know, I know, > you can't have everything. But, I do think this will cause users > repeated hdachs. :) > I've used "fdisk c.img" and used the reported values as parameters for hdachs. This together with specifying the bios translating mode enabled me to boot old qemu images again. So, I used: "fdisk c.img" Used the p command to print the partition table, which also shows the necessary disk information: 16 heads, 63 sectors/track, 4161cylinders And started qemu: "qemu -hda c.img -hdachs 4161,16,63,none" Worked for me, but I don't know if fdisk is always right. With friendly regards, Takis -- ------------------------------------------------------------------------ Panagiotis Issaris Katholieke Universiteit Leuven Division Production Engineering, Machine Design and Automation Celestijnenlaan 300B panagiotis.issaris@mech.kuleuven.ac.be B-3001 Leuven Belgium http://www.mech.kuleuven.ac.be/pma ------------------------------------------------------------------------