From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KCnuC-0004Jq-9C for qemu-devel@nongnu.org; Sat, 28 Jun 2008 23:48:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KCnuB-0004JQ-LA for qemu-devel@nongnu.org; Sat, 28 Jun 2008 23:48:47 -0400 Received: from [199.232.76.173] (port=42774 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KCnuB-0004JG-Hj for qemu-devel@nongnu.org; Sat, 28 Jun 2008 23:48:47 -0400 Received: from il.qumranet.com ([212.179.150.194]:44282) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KCnuB-0005VN-28 for qemu-devel@nongnu.org; Sat, 28 Jun 2008 23:48:47 -0400 Message-ID: <4867061B.2090309@qumranet.com> Date: Sun, 29 Jun 2008 06:48:43 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] "A disk read error occurred" References: <478c82f00806281242q52a7fa55qcd458c9915e0c5a7@mail.gmail.com> In-Reply-To: <478c82f00806281242q52a7fa55qcd458c9915e0c5a7@mail.gmail.com> 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 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. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.