From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDSRR-0002qb-26 for qemu-devel@nongnu.org; Mon, 30 Jun 2008 19:05:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDSRP-0002oB-8V for qemu-devel@nongnu.org; Mon, 30 Jun 2008 19:05:48 -0400 Received: from [199.232.76.173] (port=58616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDSRO-0002ni-Th for qemu-devel@nongnu.org; Mon, 30 Jun 2008 19:05:47 -0400 Received: from mail2.shareable.org ([80.68.89.115]:52517) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KDSRO-0006Or-J6 for qemu-devel@nongnu.org; Mon, 30 Jun 2008 19:05:46 -0400 Received: from jamie by mail2.shareable.org with local (Exim 4.63) (envelope-from ) id 1KDSRK-00068y-Lw for qemu-devel@nongnu.org; Tue, 01 Jul 2008 00:05:42 +0100 Date: Tue, 1 Jul 2008 00:05:42 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] "A disk read error occurred" Message-ID: <20080630230542.GD20187@shareable.org> References: <478c82f00806281242q52a7fa55qcd458c9915e0c5a7@mail.gmail.com> <4867061B.2090309@qumranet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4867061B.2090309@qumranet.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 Avi Kivity wrote: > Alexander (Sasha) Sirotkin wrote: > >For some reason when I try to boot qemu with -hda /dev/sda (or -hda > >/dev/hda), i.e. to use the whole disk, it fails with the above error > >"A disk read error occurred". This happens only on IBM/Lenovo laptops > >(tried a few models), while it works just fine on any desktop I can > >get my hands on. Probably has something to do with bios... > > > > > > Can you add some printfs displaying the sector numbers being read? Some > disks have trouble accessing the last sector. > > Also, an strace can help show the problem. Also, sometimes when booting the BIOS can print a disk read error message, and an appropriate -hdachs will fix it. I found that out when rebooting Windows 2000 after installing it from CD (both in QEMU), on a virtual disk 1GB in size. -- Jamie