[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] "A disk read error occurred"
From: |
Jamie Lokier |
Subject: |
Re: [Qemu-devel] "A disk read error occurred" |
Date: |
Tue, 1 Jul 2008 00:05:42 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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