From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CUL2g-0005n2-AH for qemu-devel@nongnu.org; Wed, 17 Nov 2004 03:19:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CUL2f-0005mf-JH for qemu-devel@nongnu.org; Wed, 17 Nov 2004 03:19:53 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CUL2f-0005mN-DF for qemu-devel@nongnu.org; Wed, 17 Nov 2004 03:19:53 -0500 Received: from [195.110.149.106] (helo=buzz.railnet.it) by monty-python.gnu.org with smtp (Exim 4.34) id 1CUKt0-0000Og-Kj for qemu-devel@nongnu.org; Wed, 17 Nov 2004 03:09:55 -0500 Message-ID: <419B074D.6080700@railnet.it> Date: Wed, 17 Nov 2004 09:09:49 +0100 From: ML 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> <419A2000.1030706@mech.kuleuven.ac.be> In-Reply-To: <419A2000.1030706@mech.kuleuven.ac.be> 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 --- Panagiotis Issaris said the following on 11/16/2004 04:42 PM: > 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. On my newer XP disk images, fdisk seems to report correctly the number of heads and sectors but fails to get the number of cylinders and complains with a "you must set cylinders" message. On my older images, it doesn't seem to be able to guess anything. Hdparm -g exits with a "Value too large for defined data type" message in both cases. Ciao, Piero