Hi, On Wed, 24 Oct 2007, Stefan Weil wrote:
> Johannes Schindelin schrieb: > > I think I fixed it. Since I am not your regular Windows user (I only > > use Windows when I have to), I cannot tell if it works, though. > > > > It is here: > > http://repo.or.cz/w/qemu/dscho.git?a=shortlog;h=diskgeometry > > > > Any testing (especially the physical drive on Windows < XP) would be > > very much appreciated. ... Ciao, Dscho > > With your patch, W2K will still see a wrong disk size. Funny. I thought that since kazu did the original patch, and kazu is a Windows user, that it worked at _some_ stage. Also I have to note that IOCTL_DISK_GET_DRIVE_GEOMETRY is a Windows 2000 feature, so unfortunately there is really no backwards compatibility to Windows 95/98/ME. > This is caused by the fact that the size of a modern harddisk has > nothing to do with tracks per cylinder or sectors per track - it is not > simply the product of four values. Since it obviously worked in one setting, there might be a chance that it is fixable. Could you be a little bit more specific in what is going wrong? I.e. what is the real size, and what are the four values? > Even without a patch, the current code in CVS HEAD > still allows compilation using MinGW on any Windows. Yes, but a setup that was evidently working before was broken. Ciao, Dscho