1 Jul 2008 01:05
Re: "A disk read error occurred"
Jamie Lokier <jamie <at> shareable.org>
2008-06-30 23:05:42 GMT
2008-06-30 23:05:42 GMT
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
RSS Feed