> > can you just set sec2cyl=1? > > This wouls probably do the trick. But the code is clean and setting just > this is not---to my taste. > > The ideal would be to simply patch the existing with changed values (no > need to be efficient for 4 * 16 bytes), and leave clearly alone values > set by others. > > And to verify the magic signature for, at least, the active partition > (it would have spot the problem).
the code assumes c/h/s. and if it (libdisk) can't find the geometry, it makes stuff up. that seems like a dubious assumption. not very clean at all. i was thinking that setting cyc2cyl=1 should cleanly remove this feature. it could then be reenabled with a command-line flag if necessary for some really ancient h/w. - erik