Page 1 of 1

Finding disk geometry

Posted: Sat Dec 26, 2009 7:53 pm
by AUsername
Hello there I have a *.vhd (generated by Windows) that I'm trying to use in Boch but I don't know how to find the geometry.

The VHD is exactly 134218240 bytes large.

The following values is what I gave Bochs:
Cyl: 260
Heads: 16
SPT: 63

Boch complains that these values are incorrect. However I do not know how to find disk geometry properly, I got this values by using bximage to create a 128MB image (but the size is off by 0.03MB of the Window's image)

So my question is how do I find disk geometry properly?

Re: Finding disk geometry

Posted: Sun Dec 27, 2009 4:34 am
by Combuster
RTFM - Bochs doesn't support VirtualPC images as of yet.

Re: Finding disk geometry

Posted: Sun Dec 27, 2009 7:21 am
by pcmattman
(but the size is off by 0.03MB of the Window's image)
VHD images have metadata as well as the actual binary data. You need to use something like qemu-img to convert from the VHD file to a flat binary IMG file.