We are using an IDE compact flash reader, which the system sees as /dev/sda. We need to programmatically determine the actual geometry of the flash chip for lilo purposes, and we have chips of all different sizes. (Surprise! Your 16MB flash can have anywhere from 15M to 24M with all kinds of geometries even when they're exactly the same size.)
The BIOS of the unit correctly determines the geometry, but all of linux's measurements are way off. Isn't there *some* way to find out the *TRUTH*? This is keeping us from automating production. Thanks in advance.
If you require some kind of reward for the answer, please let me know in advance; it's possible we can work something out for a real solution.